Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gill-singh-a/port-scanner
Scans for Open ports in the given IPv4 Targets using TCP Protocol
https://github.com/gill-singh-a/port-scanner
multiprocessing network port-scanner ports python python-3 scanner scapy socket tcp
Last synced: about 1 month ago
JSON representation
Scans for Open ports in the given IPv4 Targets using TCP Protocol
- Host: GitHub
- URL: https://github.com/gill-singh-a/port-scanner
- Owner: Gill-Singh-A
- Created: 2023-04-10T19:51:23.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-31T19:06:05.000Z (5 months ago)
- Last Synced: 2024-07-31T23:08:28.285Z (5 months ago)
- Topics: multiprocessing, network, port-scanner, ports, python, python-3, scanner, scapy, socket, tcp
- Language: Python
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Port Scanner
Scans for Open ports in the given IPv4 Targets using TCP Protocol## Requirements
Language Used = Python3
Modules/Packages used:
* scapy
* socket
* os
* datetime
* optparse
* pickle
* multiprocessing
* colorama
* timeInstall the dependencies:
```bash
pip install -r requirements.txt
```
## port_scanner.py
### Input
* '-t', "--target": IP Address/Addresses of the Target/Targets to scan Ports (seperated by ',')
* '-p', "--port": Port/Ports (seperated by ',') to scan
* '-s', "--port-range": Range of Ports to scan (seperated by '-', start-stop)
* '-d', "--timeout": Timeout for Single Port Scan
* '-l', "--load": Load Targets from a file
* '-r', "--read": File to read a Previous Scan Result
* '-w', "--write": Dump the output to a File (Optional)### Output
The Program will display the Number of : Scaned Ports, Open Port and Close Ports, List of Open Ports and time taken to scan for each target.
If the write argument is provided, it will dump the data of scan into a file named as the argument provided.
If the read argument is provided, it will read the dump file of a previous scan.
## scapy_port_scanner.py
This program requires root privileges. It is good for scanning a large amount of Hosts. It sends SYN Packets parallely and sniffs the incomming packet using a daemonic thread.
### Input
* '-t', "--target": IP Address/Addresses of the Target/Targets to scan Ports (seperated by ',')
* '-i', "--interface" : Interface to use
* '-p', "--port": Port/Ports (seperated by ',') to scan
* '-s', "--port-range": Range of Ports to scan (seperated by '-', start-stop)
* '-l', "--load": Load Targets from a file
* '-T', "--timeout": Timeout for Single Port Scan
* '-r', "--read": File to read a Previous Scan Result
* '-w', "--write": Dump the output to a File (Optional)### Output
The Program will display the Number of : Scaned Ports, Open Port and Close Ports, List of Open Ports and time taken to scan for each target.
If the write argument is provided, it will dump the data of scan into a file named as the argument provided.
If the read argument is provided, it will read the dump file of a previous scan.