Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luijait/gonet-scanner
Golang network scanner with arp discovery and own parser
https://github.com/luijait/gonet-scanner
arp golang hacking networking nmap parser pentesting portscanner scanports security
Last synced: about 15 hours ago
JSON representation
Golang network scanner with arp discovery and own parser
- Host: GitHub
- URL: https://github.com/luijait/gonet-scanner
- Owner: luijait
- License: lgpl-2.1
- Created: 2022-02-02T19:39:09.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-10T04:35:58.000Z (over 2 years ago)
- Last Synced: 2023-03-09T08:41:50.119Z (over 1 year ago)
- Topics: arp, golang, hacking, networking, nmap, parser, pentesting, portscanner, scanports, security
- Language: Go
- Homepage:
- Size: 8.01 MB
- Stars: 65
- Watchers: 5
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GO/NET Scanner
---
---
# ScreenShots
---
# Install
```
chmod +x install.sh
./install.sh [as root]
```---
# Usage
```
[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 : Allports TCP Scan
go run scannerport.go Default Scan 0-1024 ports
go run scannerport.go -ar 192.168.0.1/24 : ARP Ping Scan ALL local Subnet
go run scannerport.go -pr
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)
```---
# Add Ports To Banner Grabbing
Go to file `ports.go`
```
func Ports() map[int]string {
//Based in well known ports
ports := map[int]string{
1: "echo",
9: "WOL",
20: "ftp data",
21: "ftp control",
22: "ssh",
23: "telnet",
25: "smtp",
43: "whois",
49: "TACACS",
53: "DNS",
67: "BOOTP",
69: "TFTP",
70: "Gopher",
71: "NETRJS",
80: "http",
81: "TorPark",
82: "TorPark",
88: "Kerberos",
110: "POP3",
115: "sFTP",
143: "imap",
220: "imap3",
123: "NTP",
135: "RPC",
443: "https",
445: "Microsoft-ds, Samba",
465: "SMTP over TLS",
514: "Syslog",
520: "RIP",
521: "RIPng",
540: "UUCP",
543: "klogin",
544: "kshell",
587: "submission",
993: "IMAP over TLS",
995: "POP3 over TLS",
1433: "Microsoft SQL Server",
3306: "MySQL",
3389: "rdp",
5432: "postgres",
6667: "irc",
25565: "minecraft server",
}
return ports
```
Just add port number & name of service
Example:
Add git
```
9418: "git",
```---
# Contributors
Made by @luijait
Thanks to @ajaniramon for help in this project!