Add some batch files for dev/malware analysis work

This commit is contained in:
Michael Campagnaro 2022-10-26 15:26:20 -04:00
parent ee3aa1a046
commit 6965090c6f
5 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,21 @@
@echo off
if exist %1\* (
echo directory
for /F "delims=" %%f in ('dir /b /s %1') do (
:: skip folders
if not exist "%%~f\" (
java -jar %DEV_TOOLS%\PortexAnalyzer.jar -p "%%~f_PortexAnalyzer_Report.png" -o "%%~f_PortexAnalyzer_Report.txt" "%%~f" | more
)
)
) else (
if exist "%~1_PortexAnalyzer_Report.txt" (
del "%~1_PortexAnalyzer_Report.txt"
)
if exist "%~1_PortexAnalyzer_Report.png" (
del "%~1_PortexAnalyzer_Report.png"
)
java -jar %DEV_TOOLS%\PortexAnalyzer.jar -p "%~1_PortexAnalyzer_Report.png" -o "%~1_PortexAnalyzer_Report.txt" "%~1" | more
start notepad "%~1_PortexAnalyzer_Report.txt"
start rundll32 "C:\Program Files (x86)\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen %~1_PortexAnalyzer_Report.png
)

View File

@ -0,0 +1,4 @@
@echo off
cd %DEV_TOOLS%\SysinternalsSuite
start %DEV_TOOLS%\ResourceHacker.exe "%~1"

12
bin/file-sigcheck.bat Normal file
View File

@ -0,0 +1,12 @@
@echo off
cd %DEV_TOOLS%\SysinternalsSuite
if exist %1\* (
echo Run on a file
) else (
if exist "%~1_Report.txt" (
del "%~1_Report.txt"
)
sigcheck.exe /a "%~1" > "%~1_sigcheck_report.txt"
start notepad "%~1_sigcheck_report.txt"
)