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

27 lines
No EOL
580 B
PostScript

#-------------------------------------------------------------------------------
# File: dirsurvey.eps
# Description: Does a dir; the only thing different is the name
#
#-------------------------------------------------------------------------------
bool $badParams = false;
string $args="";
string $arg;
int $i=1;
while ($i < sizeof($argv)) {
$arg=split(" ", $argv[$i]);
ifnot ($arg == $argv[$i]) {
$arg="\"$argv[$i]\"";
}
if ($args == "") {
$args=$arg;
} else {
$args="$args $arg";
}
$i++;
}
bool $success=`dir $args`;
return $success;