Welcome to the Async Port Scanner, a blazing-fast, lightweight, and deliciously simple port scanner built with Python and asyncio! ๐ This project is designed to help you scan ports asynchronously with up to 1000 parallel tasks at once. It's like ordering 1000 pizzas ๐ at the same timeโefficient and satisfying! ๐
- Asynchronous Scanning: Uses Python's
asynciofor super-fast port scanning. Think of it as cooking multiple dishes at once! ๐ณ - Customizable Port Range: Specify the starting and ending ports to scan exactly what you need. ๐ฏ
- Efficient Task Management: Limits to 1000 parallel tasks at a time to avoid overloading your system. ๐ ๏ธ
- User-Friendly Input: Interactive prompts guide you through entering the target IP and port range. ๐งโ๐ณ
- No Dependencies: Uses only Python's standard libraryโno extra ingredients required! ๐ฅ
git clone https://github.com/bitkeyhash/Async-Port-Scanner.git && cd Async-Port-ScannerMake sure you have Python 3.8 or higher installed. Then install dependencies (if any):
pip install -r requirements.txtNote: This script uses only Python's standard library, so no additional libraries are required! ๐
Fire up the scanner by running:
python aps.pyYou'll be prompted to enter:
- The target IP address (e.g.,
192.168.1.1) - The starting port (e.g.,
1) - The ending port (e.g.,
65535)
The script will then scan all ports in the specified range and display which ones are open! ๐ณ๏ธ
Welcome to the Async Port Scanner!
Enter the target IP address: 192.168.1.1
Enter the starting port (e.g., 1): 20
Enter the ending port (e.g., 100)
Scanning IP: 192.168.1.1 from port 20 to 100...
[OPEN] Port 22 is open on 192.168.1.1
[OPEN] Port 80 is open on 192.168.1.1
Scan complete!
This script requires Python 3.8+.
Install Python dependencies (if needed) using:
pip install -r requirements.txtHereโs how this tasty scanner operates:
-
Asynchronous Magic:
- Uses
asyncioto handle multiple connections simultaneously. - Limits concurrency to 200 tasks using a semaphore (
asyncio.Semaphore)โlike having only so many burners on your stove! ๐ฅ
- Uses
-
Port Scanning:
- Attempts to connect to each port in the specified range.
- If successful, it reports the port as "open." Otherwise, it silently skips closed ports.
-
Interactive Input:
- Prompts you for the target IP address and port range.
- Validates inputs to ensure everything is within proper limits (ports between
1-65535).
- You're hungry for speed โก.
- You want something lightweight with no unnecessary dependencies ๐ฅ.
- You love Python and want an easy-to-understand script ๐.
- You need a quick tool for network troubleshooting or ethical hacking ๐.
Got some spicy ideas ๐ถ๏ธ? Found a bug ๐? Feel free to contribute!
- Fork this repository ๐ด.
- Create a new branch (
git checkout -b feature/my-feature). - Commit your changes (
git commit -m "Add my feature"). - Push your branch (
git push origin feature/my-feature). - Open a pull request ๐.
This project is licensed under the MIT Licenseโbecause sharing is caring! โค๏ธ Feel free to use, modify, and distribute this script as you like.
This tool is intended for ethical purposes only ๐โalways ensure you have permission before scanning any network or device.
Now go ahead and scan responsibly... Bon appรฉtit! ๐ฝ๏ธ
Let me know if you'd like me to tweak anything further or add more flair! ๐