Started building a basic port scanner in python to learn about networks, ports and stuff.
P.S. i’m building it without using any AI.
I built a really basic script as of now which uses the socket python library to connect to the given port range.
If a connection succeeds then the port is open, if refused then it is closed and if times out then it is filtered out by a firewall.
I also added if else statements to see that the user input ports stay between 1 and 65535.
Also used try and except statements to handle errors gracefully and give out a message.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.