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

14 lines
313 B
Plaintext
Raw Normal View History

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