Port Scanner
- 2 Devlogs
- 1 Total hours
A basic port scanner built in python without using any AI.
A basic port scanner built in python without using any AI.
Added a scan counter which shows live number of ports scanned/total ports to be scanned.
Added hyperthreading using ThreadPoolExecutor for faster scanning.
Fixed minor bugs, added a README.md file and changed a lot of strings to formatted strings (f-strings) so that the code does not looks scuffed.
Now I am planning to add command line arguments using argparse for target, port range, worker count, timeout and verbose mode.
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.