beddinao/port_scanner

GitHub: beddinao/port_scanner

一款支持多种扫描模式与自定义 TCP 标志位的 Linux 端口扫描工具,用于探测目标主机端口状态并识别潜在服务。

Stars: 0 | Forks: 0

# *`port_scanner`* ``` - 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. ``` ## 用法 ``` $ 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 ``` ## 选项 ``` --help prints this help screen and exit --verbose display incoming/outgoing packets --scan one or multiple scans: SYN | NULL | FIN | XMAS | ACK | UDP dafault: all --flags custom scan by setting the tcp flags header manually [syn, ack, rst, fin, psh, urg] example: --flags syn ack --source-ip source ip address to use this options disables looking up an interface address responses from target will come to this one --source-port source port to use default: random --seq tcp header: sequence number default: random --ack-seq tcp header: acknowledgment number default: 0 --speedup number of parallel threads to use max: 255 default: number of threads == number of ports --interface name of the interface to use default: enp0s3 mandatory if this interface is not present/active ``` ## 示例输出 ``` $ 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] ``` ## 要求 - linux - root 权限 ## 即将推出的功能 - OS 指纹识别。 - 简化的版本检测。 - 用于多主机扫描的配置文件。
标签:Go语言, 客户端加密, 插件系统, 数据泄露防护, 数据统计, 程序破解, 端口扫描, 网络安全, 网络探测, 隐私保护