chmod +x install.sh
./install.sh [as root]
ARP Discovery -ar CIDR -s: Scan ports in all hosts discovered -ap: Scan to 65535 Ports -pr MINPORT MAXPORT: Define Port Range to Scan -1000: Scan Top 1000 ports (like nmap) -t: Set Timeout (in milliseconds) [EXAMPLES] go run scannerport.go -ap <IP>: Allports TCP Scan go run scannerport.go <IP> Default Scan 0-1024 ports go run scannerport.go -ar 192.168.0.1/24 <IP>: ARP Ping Scan ALL local Subnet go run scannerport.go <IP> -pr <MINPORT> <MAXPORT> go run scannerport.go -ar 192.168.1.1/24 -s go run scannerport.go -1000 192.168.1.1 go run scannerport.go -t 100 192.168.1.1 Example: go run scannerport.go -ar 192.168.1.1/24 (will send an arp ping to every host of net to discover if is it up) Example: go run scannerport.go google.com -1000 (Will resolve google.com + Will scan top 1000 ports) Example: go run scannerport.go 192.168.0.1 -pr 100 3000 (will scan every port in these range you must put first minor port)">
[ARGUMENTS]-ar CIDR: ARP Discovery
-ar CIDR -s: Scan ports in all hosts discovered
-ap: Scan to 65535 Ports
-pr MINPORT MAXPORT: Define Port Range to Scan
-1000: Scan Top 1000 ports (like nmap)
-t: Set Timeout (in milliseconds)
[EXAMPLES]
go run scannerport.go -ap <IP>: Allports TCP Scan
go run scannerport.go <IP> Default Scan 0-1024 ports
go run scannerport.go -ar 192.168.0.1/24 <IP>: ARP Ping Scan ALL local Subnet
go run scannerport.go <IP> -pr <MINPORT> <MAXPORT>
go run scannerport.go -ar 192.168.1.1/24 -s
go run scannerport.go -1000 192.168.1.1
go run scannerport.go -t 100 192.168.1.1
Example: go run scannerport.go -ar 192.168.1.1/24 (will send an arp ping to every host of net to discover if is it up)
Example: go run scannerport .go google.com -1000 (Will resolve google.com + Will scan top 1000 ports)
Example: go run scannerport.go 192.168.0.1 -pr 100 3000 (will scan every port in these range you must put first minor port)
Thanks to @ajaniramon for help in this project!