Pārlūkot izejas kodu

Modifiy/remove some inline comments

dustin.born 6 gadi atpakaļ
vecāks
revīzija
3e4ba4ba80
2 mainītis faili ar 5 papildinājumiem un 4 dzēšanām
  1. 5 3
      code/Attack/MembersMgmtCommAttack.py
  2. 0 1
      code/ID2TLib/Statistics.py

+ 5 - 3
code/Attack/MembersMgmtCommAttack.py

@@ -108,8 +108,12 @@ class MembersMgmtCommAttack(BaseAttack.BaseAttack):
             # presence of NAT at the gateway of the network
             Param.NAT_PRESENT: ParameterTypes.TYPE_BOOLEAN,
 
-            # the base PCAP for the TTL distribution
+            # whether the TTL distribution should be based on the input PCAP
+            # or the CAIDA dataset
             Param.TTL_FROM_CAIDA: ParameterTypes.TYPE_BOOLEAN,
+
+            # whether the destination port of a response should be the ephemeral port 
+            # its request came from or a static (server)port based on a hostname
             Param.BOTNET_DST_PORT_CALCULATION: ParameterTypes.TYPE_BOOLEAN,
 
             # information about the interval selection strategy
@@ -396,8 +400,6 @@ class MembersMgmtCommAttack(BaseAttack.BaseAttack):
 
             :param bot_configs: the existing bot configurations
             """
-            # Mapping IP to ASN: http://www.team-cymru.org/IP-ASN-mapping.html
-            # Why not assign TTLs for unknown IPs like this?
 
             def get_ip_ttl_distrib():
                 """

+ 0 - 1
code/ID2TLib/Statistics.py

@@ -1263,7 +1263,6 @@ class Statistics:
 
                 # compute plot data
                 for i, row in enumerate(result):
-                    print(row)
                     addr1, addr2 = "%s:%d" % (row[0], row[1]), "%s:%d" % (row[2], row[3])
                     # adjust the justification of strings to improve appearance
                     len_max = max(len(addr1), len(addr2))