Browse Source

- Fixes returning the wrong packet count from DDoSAttack

Patrick Jattke 7 years ago
parent
commit
77b92b4881
1 changed files with 2 additions and 1 deletions
  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