|
@@ -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)
|
|
|
|