├── .gitignore
├── .idea
├── .gitignore
├── modules.xml
├── synScan.iml
└── vcs.xml
├── README.md
├── core
└── core.go
├── dist
├── masscan_darkwin
├── masscan_linux
└── masscan_windows.exe
├── go.mod
├── go.sum
├── imgs
├── img.png
├── img_2.png
└── img_3.png
└── main
└── masscan.go
/.gitignore:
--------------------------------------------------------------------------------
1 | # Binaries for programs and plugins
2 | *.dll
3 | *.so
4 | *.dylib
5 |
6 | # Test binary, built with `go test -c`
7 | *.test
8 |
9 | # Output of the go coverage tool, specifically when used with LiteIDE
10 | *.out
11 |
12 | # Dependency directories (remove the comment below to include it)
13 | # vendor/
14 |
--------------------------------------------------------------------------------
/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # 默认忽略的文件
2 | /shelf/
3 | /workspace.xml
4 | # 基于编辑器的 HTTP 客户端请求
5 | /httpRequests/
6 | # Datasource local storage ignored files
7 | /dataSources/
8 | /dataSources.local.xml
9 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.idea/synScan.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # synScan
2 | GoLang 全端口 **syn** 扫描
3 | 自定义TCP/IP头
4 | syn扫描需要监听网卡,如果报错可能是权限问题
5 |
6 |
7 | ```
8 | sudo ./masscan [ip] [rate] // rate不填默认1500 速率取决于网络和网卡太大容易丢包
9 | ```
10 |
11 |
12 | ### MacOs
13 | 
14 |
15 | ### Centos
16 | 
17 |
18 | ### Windows
19 | 
20 |
--------------------------------------------------------------------------------
/dist/masscan_darkwin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zijiei/synScan/f89e0b3d2a7e21443748ca315dc25268f79f6561/dist/masscan_darkwin
--------------------------------------------------------------------------------
/dist/masscan_linux:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zijiei/synScan/f89e0b3d2a7e21443748ca315dc25268f79f6561/dist/masscan_linux
--------------------------------------------------------------------------------
/dist/masscan_windows.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zijiei/synScan/f89e0b3d2a7e21443748ca315dc25268f79f6561/dist/masscan_windows.exe
--------------------------------------------------------------------------------
/go.mod:
--------------------------------------------------------------------------------
1 | module Scanner
2 |
3 | go 1.17
4 |
5 | require (
6 | github.com/google/gopacket v1.1.19
7 | github.com/kirinlabs/HttpRequest v1.1.1
8 | github.com/phayes/freeport v0.0.0-20180830031419-95f893ade6f2
9 | )
10 |
11 | require golang.org/x/sys v0.0.0-20190412213103-97732733099d // indirect
12 |
--------------------------------------------------------------------------------
/go.sum:
--------------------------------------------------------------------------------
1 | github.com/google/gopacket v1.1.19 h1:ves8RnFZPGiFnTS0uPQStjwru6uO6h+nlr9j6fL7kF8=
2 | github.com/google/gopacket v1.1.19/go.mod h1:iJ8V8n6KS+z2U1A8pUwu8bW5SyEMkXJB8Yo/Vo+TKTo=
3 | github.com/kirinlabs/HttpRequest v1.1.1 h1:eBbFzpRd/Y7vQhRY30frHK3yAJiT1wDlB31Ryzyklc0=
4 | github.com/kirinlabs/HttpRequest v1.1.1/go.mod h1:XV38fA4rXZox83tlEV9KIQ7Cdsut319x6NGzVLuRlB8=
5 | github.com/phayes/freeport v0.0.0-20180830031419-95f893ade6f2 h1:JhzVVoYvbOACxoUmOs6V/G4D5nPVUW73rKvXxP4XUJc=
6 | github.com/phayes/freeport v0.0.0-20180830031419-95f893ade6f2/go.mod h1:iIss55rKnNBTvrwdmkUpLnDpZoAHvWaiq5+iMmen4AE=
7 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
8 | golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
9 | golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
10 | golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
11 | golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
12 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859 h1:R/3boaszxrf1GEUWTVDzSKVwLmSJpwZ1yqXm8j0v2QI=
13 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
14 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
15 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
16 | golang.org/x/sys v0.0.0-20190412213103-97732733099d h1:+R4KGOnez64A81RvjARKc4UT5/tI9ujCIVX+P5KiHuI=
17 | golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
18 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
19 | golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
20 | golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
21 |
--------------------------------------------------------------------------------
/imgs/img.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zijiei/synScan/f89e0b3d2a7e21443748ca315dc25268f79f6561/imgs/img.png
--------------------------------------------------------------------------------
/imgs/img_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zijiei/synScan/f89e0b3d2a7e21443748ca315dc25268f79f6561/imgs/img_2.png
--------------------------------------------------------------------------------
/imgs/img_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zijiei/synScan/f89e0b3d2a7e21443748ca315dc25268f79f6561/imgs/img_3.png
--------------------------------------------------------------------------------
/main/masscan.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import (
4 | "Scanner/core"
5 | "fmt"
6 | "time"
7 | )
8 |
9 | func main() {
10 | StratTimestap := int32(time.Now().Unix())
11 | core.Execute()
12 | time.Sleep(1 * time.Second)
13 | fmt.Printf("用时:%d 秒\n", int32(time.Now().Unix())-StratTimestap)
14 | }
15 |
--------------------------------------------------------------------------------