|
@@ -50,7 +50,7 @@ class FTPWinaXeExploit(BaseAttack.BaseAttack):
|
|
most_used_ip_address = self.statistics.get_most_used_ip_address()
|
|
most_used_ip_address = self.statistics.get_most_used_ip_address()
|
|
|
|
|
|
# The most used IP class in background traffic
|
|
# The most used IP class in background traffic
|
|
- most_used_ip_class = Util.handle_most_used_outputs(self.statistics.process_db_query("most_used(ipClass)"))
|
|
|
|
|
|
+ most_used_ip_class = Util.handle_most_used_outputs(self.statistics.get_most_used_ip_class())
|
|
attacker_ip = self.generate_random_ipv4_address(most_used_ip_class)
|
|
attacker_ip = self.generate_random_ipv4_address(most_used_ip_class)
|
|
self.add_param_value(atkParam.Parameter.IP_DESTINATION, attacker_ip)
|
|
self.add_param_value(atkParam.Parameter.IP_DESTINATION, attacker_ip)
|
|
self.add_param_value(atkParam.Parameter.MAC_DESTINATION, self.generate_random_mac_address())
|
|
self.add_param_value(atkParam.Parameter.MAC_DESTINATION, self.generate_random_mac_address())
|
|
@@ -98,7 +98,7 @@ class FTPWinaXeExploit(BaseAttack.BaseAttack):
|
|
# Create random victim if specified
|
|
# Create random victim if specified
|
|
if self.get_param_value(atkParam.Parameter.IP_SOURCE_RANDOMIZE):
|
|
if self.get_param_value(atkParam.Parameter.IP_SOURCE_RANDOMIZE):
|
|
# The most used IP class in background traffic
|
|
# The most used IP class in background traffic
|
|
- most_used_ip_class = Util.handle_most_used_outputs(self.statistics.process_db_query("most_used(ipClass)"))
|
|
|
|
|
|
+ most_used_ip_class = Util.handle_most_used_outputs(self.statistics.get_most_used_ip_class())
|
|
ip_victim = self.generate_random_ipv4_address(most_used_ip_class, 1)
|
|
ip_victim = self.generate_random_ipv4_address(most_used_ip_class, 1)
|
|
mac_victim = self.generate_random_mac_address()
|
|
mac_victim = self.generate_random_mac_address()
|
|
|
|
|