Using mshta call to run JS or vbs

Time:2021-6-14

Under the command line:

Copy codeThe code is as follows:
mshta javascript:window.execScript(“msgBox(‘hello youniao’):window.close”,”vbs“); 
mshta vbscript:window.execScript(“alert(‘hello youniao’);”,”javascript”)