Default command classes

class tuoni.ExecutionNew(proc_name='notepad.exe', suspended=True, ppid=None, username=None, password=None)[source]

Execution context ‘NEW’ helper class

class tuoni.ExecutionExisting(pid)[source]

Execution context ‘EXISTING’ helper class

class tuoni.TuoniCommandBof(bof_file, method='go', inputArgs=None, inputArgsEncoding=None, inputAsBytes=None, pack_format=None, pack_args=None)[source]

Default command type “bof” helper class

class tuoni.TuoniCommandCd(dir)[source]

Default command type “cd” helper class

class tuoni.TuoniCommandDie[source]

Default command type “die” helper class

class tuoni.TuoniCommandLs(dir, depth=1)[source]

Default command type “ls” helper class

class tuoni.TuoniCommandCmd(command, stdin=None, outputEncoding=None)[source]

Default command type “cmd” helper class

class tuoni.TuoniCommandJobs[source]

Default command type “jobs” helper class

class tuoni.TuoniCommandProclist[source]

Default command type “ps” helper class

class tuoni.TuoniCommandRun(cmdline, output=True, stdin=None, unicode=None, outputEncoding=None)[source]

Default command type “run” helper class

class tuoni.TuoniCommandPowershell(command=None, stdin=None, outputEncoding=None)[source]

Default command type “powerhsell” helper class

class tuoni.TuoniCommandSleep(sleep_time, sleep_random)[source]

Default command type “sleep” helper class

class tuoni.TuoniCommandTokenSteal(pid)[source]

Default command type “token-steal” helper class

class tuoni.TuoniCommandTokenDeleteAll[source]

Default command type “token-del-all” helper class

class tuoni.TuoniCommandTokenDelete(nr)[source]

Default command type “token-add” helper class

class tuoni.TuoniCommandTokenList[source]

Default command type “token-list” helper class

class tuoni.TuoniCommandTokenMake(username, password)[source]

Default command type “token-make” helper class

class tuoni.TuoniCommandTokenUse(nr)[source]

Default command type “token-use” helper class

class tuoni.TuoniCommandRm(filepath, execution_conf=None)[source]

Default command type “rm” helper class

class tuoni.TuoniCommandDownload(filepath, execution_conf=None)[source]

Default command type “download” helper class

class tuoni.TuoniCommandUpload(filepath, data, execution_conf=None)[source]

Default command type “upload” helper class

class tuoni.TuoniCommandCp(source, destination, execution_conf=None)[source]

Default command type “cp” helper class

class tuoni.TuoniCommandMv(source, destination, execution_conf=None)[source]

Default command type “mv” helper class

class tuoni.TuoniCommandMkdir(dirpath, execution_conf=None)[source]

Default command type “mkdir” helper class

class tuoni.TuoniCommandSocks5(port, execution_conf=None)[source]

Default command type “socks5” helper class

class tuoni.TuoniCommandConnectTcp(host, port, execution_conf=None)[source]

Default command type “connect-tcp” helper class

class tuoni.TuoniCommandexecuteAssembly(executable, parameters, execution_conf=None)[source]

Default command type “execute-assembly” helper class

class tuoni.TuoniCommandInject(shellcode, execution_conf=None)[source]

Default command type “inject” helper class

class tuoni.TuoniCommandProcinfo(execution_conf=None)[source]

Default command type “procinfo” helper class

class tuoni.TuoniCommandScreenshot(execution_conf=None)[source]

Default command type “screenshot” helper class

class tuoni.TuoniCommandSpawn(payloadId, encrypted_communication=True, execution_conf=None)[source]

Default command type “spawn” helper class

class tuoni.TuoniCommandJumpService(payloadId=None, copyMethod=None, copyPath=None, target=None, servicePath=None, serviceName=None, serviceDisplayName=None, cleanup=None, username=None, password=None, execution_conf=None)[source]

Default command type “jump-service” helper class

class tuoni.TuoniCommandJumpWinrm(payloadId=None, copyMethod=None, copyPath=None, target=None, executablePath=None, customPowershell=None, username=None, password=None, execution_conf=None)[source]

Default command type “jump-winrm” helper class

class tuoni.TuoniCommandJumpWmi(payloadId=None, copyMethod=None, copyPath=None, target=None, cmdline=None, username=None, password=None, execution_conf=None)[source]

Default command type “jump-wmi” helper class

class tuoni.TuoniCommandJumpSsh(payloadId=None, copyMethod=None, copyPath=None, target=None, cmdline=None, username=None, password=None, privateKeyPEM=None, privateKeyPassword=None, execution_conf=None)[source]

Default command type “jump-ssh” helper class

class tuoni.TuoniCommandReverseShellCommunication(input)[source]

Default command type “reverse-shell-communication” helper class