Question: j Part 1 : PortScanner Detector Task: Create a tool that records and analyzes first - contact connection requests ( to ) within a LAN,
j Part : PortScanner Detector
Task: Create a tool that records and analyzes firstcontact connection requests to within a LAN, including selfinitiated scans.
Data Management: Use a Python dictionary to log these firstcontact requests with their timestamps. Entries older than minutes should be continuously cleared.
Analysis: Calculate the "fanout rate" for each source IP which is defined as the rate of establishing firstcontact connections. Calculate this rate over three intervals: per second, per minute, and per minutes.
Detection Criteria: A source IP is flagged as a port scanner if its fanout rate exceeds any of the following thresholds: per second, per minute, or per minutes.
Output: For each detected port scanner, display the source IP average fanout rates, and the specific reason for detection.
Example Output:
A scanner detected on source IP x
avg. fanout per sec: y avg fanout per min: z fanout per min: d
reason for detection: fanout rate per sec must be less than
Part : PortScanner Update
Task: Modify the port scanner developed in Lab to accept a waiting time in milliseconds between each scan to different destinations. Also, enhance it to scan a range of network addresses CIDR notation
Functionality: The updated scanner should adhere to the specified waiting time between consecutive scans.
Part : Testing Environment Setup
Configuration: Utilize two Kali VMs one original, one copy in the same LAN Designate one VM for defense and the other for attacks.
Execution: Run the PortScanner Detector on the defense VM and execute the updated port scanner on the attack VM under five different waiting times msssss Collect your results under each of these five scenarios.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
