#28 Fix Portscan.py default case

병합
carlos.garcia stefan.schmidt/fix-portscan-offbyone 에서 SPIN/master 로 1 commits 를 머지했습니다 6 년 전
Stefan Schmidt 코멘트됨, 6 년 전

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.
이 풀리퀘스트가 성공적으로 머지되었습니다!
로그인하여 이 대화에 참여
레이블 없음
Bug
마일스톤 없음
담당자 없음
참여자 1명
로딩중...
취소
저장
아직 콘텐츠가 없습니다.