PORT_SCANNER
Code
- initial ICMP ping: performs an ICMP ping to verify host connectivity before scanning.
- scans like nmap: Perform SYN, ACK, FIN, NULL, XMAS, and UDP scans.
- custom TCP flags: specify custom TCP flags combinations using the --flags option.
- service detection: tries to identify potential services by comparing ports and transport protocols
to the Service Name and Transport Protocol Port Number Registry.
usage
$ pscan [OPTIONS] TARGET PORT(S)
target: ip address of the target host or its FQDN
ports: a single port number or a range in the syntax xx-xx
1024 is the max number of ports
options
dafault: all
example:
this options disables looking up an interface address
responses from target will come to this one
default: random
default: random
default: 0
max: 255
default: number of threads == number of ports
default: enp0s3
mandatory if this interface is not present/active
example output
$ pscan --scan SYN ACK scanme.nmap.org 80-90
Configurations:
Target Ip-Address: 45.33.32.156
Source Ip-Address: x.x.x.x
Using Interface: enp0s3
......................
icmp_echo request sent..
icmp_echoreply echo.id=64936, icmp_seq=65
Host State: Up
......................
No of Ports to scan: 11
No of threads: 11
Using known services database: database/services
Scans to be performed: SYN ACK
Scanning...
......................
Scan took 0.015029 secs
IP address: 45.33.32.156
Open ports:
Port Service Name (if applicable) Results [Conclusion]
80 http SYN(Open) ACK(Unfiltered) [Open]
Closed/Filtered/Unfiltered ports:
Port Service Name (if applicable) Results [Conclusion]
81 hosts2-ns SYN(Closed) ACK(Unfiltered) [Closed]
82 xfer SYN(Closed) ACK(Unfiltered) [Closed]
83 mit-ml-dev SYN(Closed) ACK(Unfiltered) [Closed]
84 ctf SYN(Closed) ACK(Unfiltered) [Closed]
85 mit-ml-dev SYN(Closed) ACK(Unfiltered) [Closed]
86 mfcobol SYN(Closed) ACK(Unfiltered) [Closed]
87 priv-term-l SYN(Closed) ACK(Unfiltered) [Closed]
88 kerberos-sec SYN(Closed) ACK(Unfiltered) [Closed]
89 su-mit-tg SYN(Closed) ACK(Unfiltered) [Closed]
90 dnsix SYN(Closed) ACK(Unfiltered) [Closed]
requirements
upcoming features
- OS fingerprinting.
- Simplified Version detection.
- Configuration file for multiple host scanning