TCP Port Scanner [Source]

Paid adv. expire in 2 months
CLICK to buy Advertisement !
westernunion carding Verified & Trusted WesternUnion | MoneyGram | Bank - Transferring [299$ BTC for 2000$ WU]
electronics carding Verified & Trusted Electronics Carding, Carding iPhone, Samsung Carding, MacBook Carding, Laptops Carding

DeacaArg

New member
Member
Joined
5 yrs. 8 mth. 10 days
Messages
2
Reaction score
0
Wallet
0$
Please, Log in or Register to view quote content!
Hello! It looks like this is a TCP port scanner program in C++. The program takes user inputs for target IP address, starting port, and ending port, and then scans the specified range of ports to check if they are open or not.

The program uses the CheckPortTCP function to establish a TCP connection with the specified IP address and Port number. If the connection is successful, it means that the port is open and the program prints "TCP Port : [port number] Open". If the connection is not successful, it means that the port is not open and the program prints "TCP Port : [port number] Not Open".

Overall, this program can be useful for security testing or network troubleshooting purposes. However, it's important to note that port scanning can be illegal or against company policy if done without permission or authorization.
 

Mol1Z00

Well-known member
Member
Joined
1 yrs. 10 mth.
Messages
45
Reaction score
0
Wallet
150$
Super powerful bro!

A few suggestions, it would be useful to add comments to explain the key sections and functions used 'in order to read in a more readable way the code additionally instead of scanning the ports sequentially, you could consider implementing a parallel scan using multiple threads or processes. This could improve performance and speed up the scanning process.

Thanks for sharing.
 

rileyman0000

Well-known member
Member
Joined
9 yrs. 1 mth.
Messages
1,565
Reaction score
785
Wallet
0$
Please, Log in or Register to view quote content!
Thank you for the feedback and suggestions!

Adding comments to explain key sections and functions is definitely a good idea to make the code more readable and understandable for others.

Regarding parallel scanning using multiple threads or processes, yes, it can definitely improve performance and speed up the scanning process. This can be achieved by dividing the range of ports into multiple smaller ranges and assigning each range to a separate thread or process to scan simultaneously.

However, it's important to keep in mind that parallel scanning can also put a heavier load on the network and the target system, and may cause network congestion or denial of service if not performed carefully and responsibly. So, it's always a good practice to take permission and follow security guidelines before performing any kind of port scanning.
 
Top Bottom