Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
No-Github committed Jul 2, 2022
1 parent 86dd3cd commit 1de2ed6
Show file tree
Hide file tree
Showing 11 changed files with 86 additions and 24 deletions.
110 changes: 86 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# ones

可用于多个网络资产测绘引擎 API 的命令行查询工具
可用于多个网络资产测绘引擎 API 的命令行查询工具,写个2个版本,一个 go 版本,一个 bash shell 脚本的版本

---

## 开始

### go 版本使用

**1. 下载**
```bash
wget -O ones https://f8x.io/ones && mv --force ones /usr/local/bin/ones && chmod +x /usr/local/bin/ones
```
-[releases](https://github.com/ffffffff0x/ones/releases) 进行下载

**2. 创建配置文件**

将下方字段中的 key 改为你自己的,如果不填就保留默认的 xxxx
```bash
tee /root/ones.conf <<-'EOF'
tee ones.conf <<-'EOF'
{
"fofa_email": "[email protected]",
"fofa_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
Expand All @@ -28,46 +28,108 @@ tee /root/ones.conf <<-'EOF'
EOF
```

- zoomeye API-KEY
- https://www.zoomeye.org/profile
- ![](./assets/img/6.png)
**3. 使用**

- shodan API-KEY
- https://account.shodan.io/
- ![](./assets/img/7.png)
```bash
ones -help
```

- quake API-KEY
- https://quake.360.cn/quake/#/personal
- ![](./assets/img/8.webp)
ones 支持以下选项
```bash
Usage:
ones [flags]

INPUT:
-fofa string
-quake string
-zoom string (还没适配好)
-shodan string (还没适配好)
-hunter string
-chaos string

OUTPUT:
-json string
-txt string

CONFIGURATIONS:
-num int

OPTIMIZATIONS:
-format string
```

- hunter API-KEY
- https://hunter.qianxin.com/home/userInfo
- ![](./assets/img/9.png)
---

### bash shell 版本使用

**1. 下载**
```bash
wget -O ones https://f8x.io/ones && mv --force ones /usr/local/bin/ones && chmod +x /usr/local/bin/ones
```

**2. 创建配置文件**

将下方字段中的 key 改为你自己的,如果不填就保留默认的 xxxx
```bash
tee /root/ones.conf <<-'EOF'
{
"fofa_email": "[email protected]",
"fofa_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"zoom_key": "xxxxxxxx-xxxx-xxxxx-xxxx-xxxxxxxxxx",
"shodan_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"quake_key": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"hunter_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"chaos_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
EOF
```

**3. 初始化环境**
```bash
ones -init
```

> 注意 : 初始化不会安装 [chaos](https://github.com/projectdiscovery/chaos-client) ,请自行安装
**4. 使用**

```bash
ones -help

ones -fofa 'app="tomcat"' 100
ones -quake 'tomcat' 100
ones -zoom 'tomcat' 100
ones -shodan 'tomcat' 100
ones -hunter 'tomcat' 100
ones -chaos 'ffffffff0x.com'
```

**效果**
---

![](./assets/img/1.png)
## API-KEY 的获取

> 注意 : 初始化不会安装 [chaos](https://github.com/projectdiscovery/chaos-client) ,请自行安装
- fofa API-KEY
- https://fofa.info/api
- ![](./img/10.png)

- zoomeye API-KEY
- https://www.zoomeye.org/profile
- ![](./img/6.png)

![](./assets/img/2.png)
- shodan API-KEY
- https://account.shodan.io/
- ![](./img/7.png)

![](./assets/img/3.png)
- quake API-KEY
- https://quake.360.cn/quake/#/personal
- ![](./img/8.webp)

![](./assets/img/4.png)
- hunter API-KEY
- https://hunter.qianxin.com/home/userInfo
- ![](./img/9.png)

![](./assets/img/5.png)
- chaos API-KEY
- https://chaos.projectdiscovery.io/

---

Expand Down
Binary file removed assets/img/1.png
Binary file not shown.
Binary file removed assets/img/2.png
Binary file not shown.
Binary file removed assets/img/3.png
Binary file not shown.
Binary file removed assets/img/4.png
Binary file not shown.
Binary file removed assets/img/5.png
Binary file not shown.
Binary file added img/10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes

0 comments on commit 1de2ed6

Please sign in to comment.