You are browsing as a guest. Sign up (or log in) to start making projects!

Port Scanner

  • 2 Devlogs
  • 1 Total hours

A basic port scanner built in python without using any AI.

Open comments for this post

32m 46s logged

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.

0
0
3
Open comments for this post

23m 22s logged

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.

0
0
1

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…