MCPcopy Index your code
hub / github.com/Kisesy/gscan_quic

github.com/Kisesy/gscan_quic @v4.12

Chat with this repo
repository ↗ · DeepWiki ↗ · release v4.12 ↗ · + Follow
45 symbols 102 edges 8 files 10 documented · 22%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

gscan-quic

一个 IP 可用性扫描工具

当前支持

  • [x] QUIC
  • [x] SNI
  • [x] TLS
  • [x] PING
  • [ ] SOCKS4/SOCKS4A/SOCKS5

简单说明

因为支持多种类型的IP扫描, 所以 IP 段文件是分开放的.

比如 quic 的IP段文件是 iprange_quic.txt, tls 的就是 iprange_tls.txt

其他类型的都可以在 config.json 文件里看到

IP段文件格式如下:

# 下面几种都是支持的, 遇到错误IP格式是会跳过的

1.9.23.0            
1.9.23.0/24
1.9.0.0/16

1.9.22.0-1.9.23.0/24

1.9.22.0/24-1.9.33.0/24

1.9.22.0-255
1.9.22.0-1.9.22.0
1.9.22.0-1.9.22.255
1.9.22.0-1.9.33.255

1.9.22.111-1.9.22.111    会自动精简成 1.9.22.111
1.9.22.0/24-1.9.22.0/24  会自动精简成 1.9.22.0/24

# 支持 ipv6 格式

2001:db8::1
2001:db8::1/128

# 支持 gop 的 "xxx","xxx" 和 goa 的 xxx|xxx 格式

"1.9.22.0", "1.9.22.1","1.9.22.2",
1.9.22.0|1.9.22.1|

# IP段也是会自动去重的

1.9.22.0-255
1.9.0.0/16
1.9.22.0-255
1.9.22.0/24
1.9.22.0-255
1.9.22.0-1.9.22.100
1.9.22.0-1.9.22.255
1.9.0.0/16
3.3.3.0/24
3.3.0.0/16
3.3.3.0-255
1.1.1.0/24
1.9.0.0/16
# 上面几个经过去重只会留下
3.3.0.0/16
1.9.0.0/16
1.1.1.0/24

注意:

  • 默认是有输出个数限制的, 可以设置配置文件里的 RecordLimit

  • 在扫描过程中是可以中断的, 只要按 Ctrl+C 就可以中断, 扫过的IP是会保留的

  • 扫描IP段是随机的

  • 如果IP段是 xx|xx 或 "xxx","xxx" 格式的, 那么一行的字节加起来大小不能超过4MB, 如有超过, 必须分行, 否则会跳过这一行

配置说明

参考 config.json 文件

每次更新时最好覆盖掉 config.json 文件

支持 gop 形式的个人配置 config.user.json, 所以为了防止每次修改, 可以自己新建一个.

下载

到 https://github.com/Kisesy/gscan_quic/releases 下载编译好的

感谢

改自 yinqiwen 大神的 https://github.com/yinqiwen/gscan 在此感谢

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Marshal
called by 3
ping.go
randInt
called by 3
util.go
RecordSize
called by 2
scan.go
Pinger
called by 2
ping.go
getScanConfig
called by 2
gscan.go
randomChoice
called by 2
util.go
randomHost
called by 2
util.go
pathExist
called by 2
util.go

Shape

Function 27
Method 10
Struct 6
FuncType 1
Interface 1

Languages

Go100%

Modules by API surface

ping.go14 symbols
scan.go10 symbols
util.go9 symbols
gscan.go6 symbols
iprange.go3 symbols
tls.go1 symbols
sni.go1 symbols
quic.go1 symbols

For agents

$ claude mcp add gscan_quic \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact