blob: 50571b4a2a7e42a9c2418617972d00f00cb2b63b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
ohxmap: The Internet Scanner
## 说明
配合ohmydns使用的探测端代码,基于xmap魔改
## 使用
### 源码编译
准备环境:
```shell
sudo apt-get install build-essential cmake libgmp3-dev gengetopt libpcap-dev flex byacc libjson-c-dev pkg-config libunistring-dev
```
1.
``` shell
cmake .
```
2.
``` shell
make -j4
```
3.
``` shell
make install
```
### docker
也可以利用dockerfile生成docker镜像,在仓库文件夹下执行:
``` shell
docker build -t hdk/xmap -f Dockerfile .
```
### 运行
参数配置含义可参考[xmap](https://github.com/idealeer/xmap)
本代码在xmap的基础上修改了dst-ip模式下的域名生成规则,以满足和ohmydns配套使用。如下展示了使用docker镜像运行ohxmap进行IPv4-IPv6 DNS关联挖掘的配置参数示例
``` shell
docker run -dit --net=host --name=xmap --restart=always hdk/xmap -4 -x 32 -p 53 -M dnsx -O json --output-fields="saddr,clas" --output-filter="success = 1 || success = 0" -P 1 --probe-args="dst-ip:recurse:text:TXT,ipv4.n64.top" -R 8000 -o result.txt
```
|