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

12 lines
No EOL
352 B
PostScript

@record on;
string $path;
ifnot (`regquery -hive L -subkey "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion" -value SystemRoot`) {
echo "Could not get system path from registry";
@record off;
return false;
}
$path=GetCmdData("value_data");
@record off;
#`pwd`;
echo "System Root Path: $path";
`lpsetenv -option systemroot -value "$path"`;