Write a program to recognize port scanning on a specific host. Recognize the scan by analyzing the host’s trace file and/or the TCP dump file. Output the range of ports scanned and the duration of the scan. Describe the scan; was it sent at regular intervals, for example? What type of scan occurred? What was the time interval?
Also, Extend the program to recognize a port scan in real-time? Capture the packets associated with the scan. Measure the performance of the program. Produce an output log for the program, which contains information about the captured packets.