mgeeky-Penetration-Testing-.../red-teaming/code-exec-templates/wscript-shell-code-exec.vbs

14 lines
309 B
Plaintext

'
' This script uses classic WScript.Shell Run method to
' execute given command in a hidden window (second param = 0)
'
' Mariusz B. / mgeeky, <mb@binary-offensive.com>
' (https://github.com/mgeeky)
'
command = "notepad.exe"
With CreateObject("WScript.Shell")
.Run command, 0, False
End With