Skip to content

Instantly share code, notes, and snippets.

@seanosullivanuk
Created December 21, 2021 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanosullivanuk/29a01e7581bf49c06b4e1f570016dedd to your computer and use it in GitHub Desktop.
Save seanosullivanuk/29a01e7581bf49c06b4e1f570016dedd to your computer and use it in GitHub Desktop.
Qualys Log4JScanner, PDQ Deploy script
:: This is a script I've set up in PDQ Deploy. Be sure to run this as administrator.
:: Also, not my best work... but it does work.
:: Replace servername and hiddenshare$ with your own UNC path info
set host=%COMPUTERNAME%
copy "\\servername\hiddenshare$\Log4JResults\Log4jScanner.exe" "%userprofile%\AppData\Roaming\Log4jScanner.exe"
"%userprofile%\AppData\Roaming\Log4jScanner.exe" > "\\servername\hiddenshare$\Log4JResults\Results\%host%.txt"
del "%userprofile%\AppData\Roaming\Log4jScanner.exe"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment