#28 Fix Portscan.py default case

已合併
carlos.garcia 6 年之前 將 1 次代碼提交從 stefan.schmidt/fix-portscan-offbyone合併至 SPIN/master

As briefly discussed in the meeting, the default case (when not specifying any parameters) in the portscan-attack only scanned 891 ports instead of the 1000 it was supposed to. The problems I found are two off-by-one errors in line 101 and 102: when using range(0,9) the generated numbers don't include the nine, the same goes for the array slicing. This resulted in 9*99=891 packets being generated instead of 1000.

As briefly discussed in the meeting, the default case (when not specifying any parameters) in the portscan-attack only scanned 891 ports instead of the 1000 it was supposed to. The problems I found are two off-by-one errors in line 101 and 102: when using range(0,9) the generated numbers don't include the nine, the same goes for the array slicing. This resulted in 9*99=891 packets being generated instead of 1000.
該合併請求已經成功合併!
Sign in to join this conversation.
未選擇標籤
Bug
未選擇里程碑
未指派成員
1 參與者
正在加載...
取消
保存
尚未有任何內容