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

28 lines
No EOL
684 B
PostScript

@include "DropboxAPI.epm";
# script to wrap the DropboxAPI from a command-line EP script.
# usage: script DrobboxWrapper.eps "option" "rest of options"...
if ($argc < 2) {
echo "need arguments";
return false;
}
if ($argv[1] == "CopyLocalFileNewName") {
CopyLocalFileToDropbox($argv[2], $argv[3], $argv[4]);
} else
if ($argv[1] == "CopyLocalFile") {
CopyLocalFileToDropbox($argv[2], $argv[3]);
} else
if ($argv[1] == "AppendFilePickName") {
AppendFileInDropbox($argv[2], $argv[3], $argv[4]);
} else
if ($argv[1] == "AppendFileDefaultName") {
AppendFileInDropbox($argv[2], $argv[3]);
} else {
echo "Bad arguments";
return false;
}
return true;