Created
December 21, 2021 09:11
-
-
Save seanosullivanuk/29a01e7581bf49c06b4e1f570016dedd to your computer and use it in GitHub Desktop.
Qualys Log4JScanner, PDQ Deploy script
This file contains 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
:: 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