I am trying to write a small script in Python 2.7 using "dpkt" wrapper library to parse the sample PCAP file.
I did write successfully specific checks for the NULL scans such as if seq = 0 and flags not set, but how do I do that for the half-open scan attempts?
I tried to do something like :
if SYN and RST flags are set
print "Half-open" scan detected
But the above logic is not picking up the connections from the example PCAP file with half-open connections.
Are there any additional checks I need to do?