Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cyal1/host_scan
这是一个用于IP和域名碰撞匹配访问的小工具,旨意用来匹配出渗透过程中需要绑定hosts才能访问的弱主机或内部系统。https://github.com/fofapro/Hosts_scan implement in Go
https://github.com/cyal1/host_scan
Last synced: 21 days ago
JSON representation
这是一个用于IP和域名碰撞匹配访问的小工具,旨意用来匹配出渗透过程中需要绑定hosts才能访问的弱主机或内部系统。https://github.com/fofapro/Hosts_scan implement in Go
- Host: GitHub
- URL: https://github.com/cyal1/host_scan
- Owner: cyal1
- Created: 2021-01-14T13:41:47.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-30T07:35:21.000Z (over 2 years ago)
- Last Synced: 2024-08-05T17:31:39.535Z (4 months ago)
- Language: Go
- Homepage:
- Size: 38.6 MB
- Stars: 114
- Watchers: 2
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- awesome-hacking-lists - cyal1/host_scan - 这是一个用于IP和域名碰撞匹配访问的小工具,旨意用来匹配出渗透过程中需要绑定hosts才能访问的弱主机或内部系统。https://github.com/fofapro/Hosts_scan implement in Go (Go)
README
## 这是一个用于IP和域名碰撞匹配访问的小工具,旨意用来匹配出渗透过程中需要绑定hosts才能访问的弱主机或内部系统。
## install
```bash
git clone https://github.com/cyal1/host_scan.gitcd host_scan
go build host_scan.go
go install .
```
## usage`hostscan -i ip.txt -d host.txt`
It will be skipped If the line starts with `#` or `//` in ip.txt/host.txt
Before use host_can, recommend `sort -u ip.txt -o ip_uniq.txt`
```
Usage of hostscan:
-d string
Host/Domain list file (required)
-fc string
Filter by comma separated of status code (example '403,404')
-fl string
Filter by comma separated of content-length (example '133,14213')
-fs string
Filter by string in response, support for regex (example '(?i)(nginx|table)')
-i string
IP list file (required)
-output string
Output file
-paths string
Comma separated paths (example '/api/v1,/api/v2') (default "/")
-redirect
Follow redirects
-suffix string
Append a suffix to each line of the host list
-threads int
Threads/Goroutine number (default 50)
-timeout int
Request timeout (default 8)
-ua string
User-Agent string (default "Mozilla/5.0(Linux;U;Android2.3.6;zh-cn;GT-S5660Build/GINGERBREAD)AppleWebKit/533.1(KHTML,likeGecko)Version/4.0MobileSafari/533.1MicroMessenger/4.5.255")
```![效果图](https://raw.githubusercontent.com/cyal1/host_scan/master/test.jpg)
## TODO
CIDR support
结果去重## Reference
https://github.com/fofapro/Hosts_scan