hposton / python-for-cybersecurity

This repository holds the Python scripts discussed in the Infosec Institute's Python for Cybersecurity learning Path
GNU General Public License v3.0
324 stars 200 forks source link

Running PortScan.py generates errors #3

Open poldi171254 opened 2 years ago

poldi171254 commented 2 years ago

Running PortScan for week 2 of the course doesn't work

Screenshot from 2022-06-16 11-49-00

hposton commented 2 years ago

Hey, can you provide a packet capture from trying it and it not working? It looks like you got a non-TCP packet in response. I can add some error-handling code to that, but I'd be interested in seeing what you received that caused the issue.

poldi171254 commented 2 years ago

Given that is the second week on this course I don't know how to this

malizd commented 1 year ago

IP and TCP are undefined nor imported in Part 2.1 PortScan.py Quick fix has a long list of suggestions but which one should be picked?