Explorar o código

- Fixes returning the wrong packet count from DDoSAttack

Patrick Jattke %!s(int64=8) %!d(string=hai) anos
pai
achega
77b92b4881
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      code/Attack/DDoSAttack.py

+ 2 - 1
code/Attack/DDoSAttack.py

@@ -193,4 +193,5 @@ class DDoSAttack(BaseAttack.BaseAttack):
         self.attack_end_utime = last_packet.time
 
         # return packets sorted by packet time_sec_start
-        return pkt_num, path_attack_pcap
+        # pkt_num+1: because pkt_num starts at 0
+        return pkt_num + 1, path_attack_pcap