Streamlining

pull/3/head
Thorsten Sick 3 years ago
parent 725db17cf6
commit e1e6617a5e

@ -82,7 +82,7 @@ class NmapPlugin(AttackPlugin):
cmd = f"cd {pg};"
for t in targets:
cmd += f"nmap {t.getip()};"
cmd += f"nmap {t.get_ip()};"
res += self.attacker_run_cmd(cmd) or ""

@ -29,7 +29,7 @@ class NmapSneakyPlugin(AttackPlugin):
pg = self.get_attacker_playground()
cmd = f"cd {pg};"
for t in targets:
cmd += f"sudo nmap -T1 -F -D RND:5 -f --randomize-hosts {t.getip()};"
cmd += f"sudo nmap -T1 -F -D RND:5 -f --randomize-hosts {t.get_ip()};"
res += self.attacker_run_cmd(cmd) or ""

@ -31,7 +31,7 @@ class NmapStresstestPlugin(AttackPlugin):
cmd = f"cd {pg};"
for t in targets:
cmd += f"nmap -T5 --min-parallelism 100 --max-scan-delay 1 {t.getip()};"
cmd += f"nmap -T5 --min-parallelism 100 --max-scan-delay 1 {t.get_ip()};"
res += self.attacker_run_cmd(cmd) or ""

Loading…
Cancel
Save