Forráskód Böngészése

Experimental IP-Block

Denis Waßmann 6 éve
szülő
commit
4aec11101b
1 módosított fájl, 2 hozzáadás és 0 törlés
  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)