Explorar o código

Experimental IP-Block

Denis Waßmann %!s(int64=6) %!d(string=hai) anos
pai
achega
4aec11101b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      code/Attack/MembersMgmtCommAttack.py

+ 2 - 0
code/Attack/MembersMgmtCommAttack.py

@@ -521,6 +521,8 @@ class MembersMgmtCommAttack(BaseAttack.BaseAttack):
             reuse_count_external = int(reuse_percent_total * reuse_percent_external * number_external_ids)
             existing_external_ips = sorted(pcapops.get_existing_external_ips(reuse_count_external))
             remaining = len(external_ids) - len(existing_external_ips)
+
+            for external_ip in existing_external_ips: ipgen.add_to_blacklist(external_ip)
             new_external_ips = sorted([ipgen.random_ip() for _ in range(remaining)])
             add_ids_to_config(sorted(external_ids), existing_external_ips, new_external_ips, bot_configs, idtype="external", router_mac=router_mac)