# portScan **Repository Path**: phil-fly/portScan ## Basic Information - **Project Name**: portScan - **Description**: 端口扫描器 - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-07-28 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ``` [root@localhost portScan]# ./portScan -h $$\ $$$$$$\ $$ | $$ __$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$ / \__| $$$$$$$\ $$$$$$\ $$$$$$$\ $$ __$$\ $$ __$$\ $$ __$$\\_$$ _| \$$$$$$\ $$ _____|\____$$\ $$ __$$\ $$ / $$ |$$ / $$ |$$ | \__| $$ | \____$$\ $$ / $$$$$$$ |$$ | $$ | $$ | $$ |$$ | $$ |$$ | $$ |$$\ $$\ $$ |$$ | $$ __$$ |$$ | $$ | $$$$$$$ |\$$$$$$ |$$ | \$$$$ |\$$$$$$ |\$$$$$$$\\$$$$$$$ |$$ | $$ | $$ ____/ \______/ \__| \____/ \______/ \_______|\_______|\__| \__| $$ | $$ | \__| Usage of ./portScan: -file Use file mode to specify ip address . -full Scan all TCP and UDP ports in full scan mode. The default is off. By default, only common TCP ports are scanned. -ip string IP to be scanned, supports three formats: 192.168.0.1 192.168.0.1-8 192.168.0.0/24 -p string Port to be scanned, supports three formats: 80 22,80 22-65535,21 -t int Maximum number of threads (default 10000) ``` ## 使用说明: ### 文件指定扫描ip列表: ``` ./portScan --file -ip ip.txt -p 1-65535 -t 1000 ``` ### ip.txt 示例: ``` [root@localhost portScan]# cat ip.txt 192.168.0.1-8 192.168.0.0/24 ``` ### 不使用文件方式: ``` ./portScan -ip 192.168.0.21-100 -p 1-65535 -t 1000 ``` ## 输出: ``` 192.168.0.92:111 opend 192.168.0.92:22 opend 192.168.0.92:3306 opend 192.168.0.92:7001 opend 192.168.0.97:80 opend 192.168.0.97:22 opend 192.168.0.97:8080 opend ``` ## 免责声明 本工具仅面向**合法授权**的企业安全建设行为,如您需要测试本工具的可用性,请自行搭建靶机环境。 在使用本工具进行检测时,您应确保该行为符合当地的法律法规,并且已经取得了足够的授权。**请勿对非授权目标进行扫描。** 禁止对本软件实施逆向工程、反编译、试图破译源代码等行为。 **如果发现上述禁止行为,我们将保留追究您法律责任的权利。** 如您在使用本工具的过程中存在任何非法行为,您需自行承担相应后果,我们将不承担任何法律及连带责任。 在安装并使用本工具前,请您**务必审慎阅读、充分理解各条款内容**,限制、免责条款或者其他涉及您重大权益的条款可能会以加粗、加下划线等形式提示您重点注意。 除非您已充分阅读、完全理解并接受本协议所有条款,否则,请您不要安装并使用本工具。您的使用行为或者您以其他任何明示或者默示方式表示接受本协议的,即视为您已阅读并同意本协议的约束。