{"id":13842001,"url":"https://github.com/ffffffff0x/ones","last_synced_at":"2025-08-20T12:31:46.474Z","repository":{"id":41266844,"uuid":"454348707","full_name":"ffffffff0x/ones","owner":"ffffffff0x","description":"可用于多个网络资产测绘引擎 API 的命令行查询工具","archived":false,"fork":false,"pushed_at":"2023-09-14T08:27:03.000Z","size":446,"stargazers_count":179,"open_issues_count":1,"forks_count":19,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-12-07T06:50:18.597Z","etag":null,"topics":["ffffffff0x","fofa","fofa-cli","hunter","osint","quake","shodan","zoomeye"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ffffffff0x.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-02-01T10:44:04.000Z","updated_at":"2024-11-04T02:38:27.000Z","dependencies_parsed_at":"2024-02-06T00:45:20.972Z","dependency_job_id":"2544bf2f-615d-4711-b601-6ac30a985e13","html_url":"https://github.com/ffffffff0x/ones","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffffffff0x%2Fones","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffffffff0x%2Fones/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffffffff0x%2Fones/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffffffff0x%2Fones/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ffffffff0x","download_url":"https://codeload.github.com/ffffffff0x/ones/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230423563,"owners_count":18223435,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ffffffff0x","fofa","fofa-cli","hunter","osint","quake","shodan","zoomeye"],"created_at":"2024-08-04T17:01:25.729Z","updated_at":"2024-12-19T11:12:31.335Z","avatar_url":"https://github.com/ffffffff0x.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cbr\u003e\n  \u003cimg src=\"./img/banner.png\" width=\"300px\" alt=\"ones\"\u003e\n\u003c/h1\u003e\n\n可用于多个网络资产测绘引擎 API 的命令行查询工具,写个2个版本,一个 go 版本,一个 bash shell 脚本的版本\n\n---\n\n## 开始\n\n### go 版本使用\n\n**1. 下载**\n- 从 [releases](https://github.com/ffffffff0x/ones/releases) 进行下载\n\n**2. 创建配置文件**\n\n将下方字段中的 key 改为你自己的,如果不填就保留默认的 xxxx\n```bash\ntee ones-config.json \u003c\u003c-'EOF'\n{\n  \"fofa_key\": [\n    \"changme@163.com:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n  ],\n  \"zoom_key\": [\n    \"xxxxxxxx-xxxx-xxxxx-xxxx-xxxxxxxxxx\"\n  ],\n  \"shodan_key\": [\n    \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n  ],\n  \"quake_key\": [\n    \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx\"\n  ],\n  \"hunter_key\": [\n    \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n  ],\n  \"chaos_key\": [\n    \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n  ]\n}\nEOF\n```\n\nones 支持加载多密钥配置,格式如下\n```bash\n{\n  \"fofa_key\": [\n    \"changme@163.com:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n    \"changme2@163.com:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n  ],\n  \"zoom_key\": [\n    \"xxxxxxxx-xxxx-xxxxx-xxxx-xxxxxxxxxx\",\n    \"xxxxxxxx-xxxx-xxxxx-xxxx-xxxxxxxxxx\"\n  ],\n  \"shodan_key\": [\n    \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n    \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n  ],\n  \"quake_key\": [\n    \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx\",\n    \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx\"\n  ],\n  \"hunter_key\": [\n    \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n    \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n  ],\n  \"chaos_key\": [\n    \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n    \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n  ]\n}\n```\n\n**3. 支持选项**\n\n```bash\nones -help\n```\n\nones 支持以下选项\n```bash\nUsage:\n    ones [flags]\n\nINPUT:\n    -fofa string        fofa 查询\n    -quake string       quake 查询\n    -zoom string        zoomeye 查询 (不支持json导出)\n    -shodan string      shodan 查询 (不支持json导出)\n    -hunter string      huneter 查询\n    -chaos string       chaos 查询\n\nOUTPUT:\n    -json string        导出 json 格式 (源格式,无处理)\n    -txt string         导出 txt 格式 (ip:port 格式,经过处理)\n\nCONFIGURATIONS:\n    -num int            查询数量 (默认100)\n```\n\n**4. 使用**\n\n查询案例,fofa 查询 tomcat,只查询20个,默认输出\n```bash\n./ones -fofa 'app=\"APACHE-Tomcat\"' -num 20\n```\n\n![](./img/11.png)\n\nfofa 查询 tomcat,只查询15个,输出 json 格式的数据到 output123.json 中\n```bash\n./ones -fofa 'app=\"APACHE-Tomcat\"' -num 15 -json output123.json\n```\n\n![](./img/12.png)\n\nquake 查询 shiro ,查询10个,输出 txt 格式的数据到 output321.txt 中,输出 json 格式的数据到 output123.json 中\n```bash\n./ones -quake 'app:\"Shiro权限管理系统\"' -num 10 -txt output321.txt -json output123.json\n```\n\n![](./img/13.png)\n\n同时查询 fofa 和 quake 的 shiro ,输出 txt 到 all.txt 中 (注意: 查询多个引擎时,不可导出为 json)\n```bash\n./ones -fofa 'app=\"APACHE-Shiro\"' -quake 'app:\"Shiro权限管理系统\"' -txt all.txt\n```\n\n![](./img/14.png)\n\n---\n\n### bash shell 版本使用\n\n**1. 下载**\n```bash\nwget -O ones https://f8x.io/ones \u0026\u0026 mv --force ones /usr/local/bin/ones \u0026\u0026 chmod +x /usr/local/bin/ones\n```\n\n**2. 创建配置文件**\n\n将下方字段中的 key 改为你自己的,如果不填就保留默认的 xxxx\n```bash\ntee /root/ones.conf \u003c\u003c-'EOF'\n{\n  \"fofa_email\": \"changme@163.com\",\n  \"fofa_key\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n  \"zoom_key\": \"xxxxxxxx-xxxx-xxxxx-xxxx-xxxxxxxxxx\",\n  \"shodan_key\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n  \"quake_key\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx\",\n  \"hunter_key\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n  \"chaos_key\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n}\nEOF\n```\n\n**3. 初始化环境**\n```bash\nones -init\n```\n\n\u003e 注意 : 初始化不会安装 [chaos](https://github.com/projectdiscovery/chaos-client) ,请自行安装\n\n**4. 使用**\n\n```bash\nones -help\n\nones -fofa 'app=\"tomcat\"' 100\nones -quake 'tomcat' 100\nones -zoom 'tomcat' 100\nones -shodan 'tomcat' 100\nones -hunter 'tomcat' 100\nones -chaos 'ffffffff0x.com'\n```\n\n---\n\n## API-KEY 的获取\n\n- fofa API-KEY\n    - https://fofa.info/api\n    - ![](./img/10.png)\n\n- zoomeye API-KEY\n    - https://www.zoomeye.org/profile\n    - ![](./img/6.png)\n\n- shodan API-KEY\n    - https://account.shodan.io/\n    - ![](./img/7.png)\n\n- quake API-KEY\n    - https://quake.360.cn/quake/#/personal\n    - ![](./img/8.webp)\n\n- hunter API-KEY\n    - https://hunter.qianxin.com/home/userInfo\n    - ![](./img/9.png)\n\n- chaos API-KEY\n    - https://chaos.projectdiscovery.io/\n\n---\n\n## License\n\n[Apache License 2.0](https://github.com/ffffffff0x/name-fuzz/blob/main/LICENSE)\n\n---\n\n## Special Thanks\n\nSpecial thanks to [JetBrains](https://www.jetbrains.com) for their support to this project.\n\n[![](./img/JetBrains.png)](https://www.jetbrains.com)\n\n---\n\n\u003e create by ffffffff0x\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fffffffff0x%2Fones","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fffffffff0x%2Fones","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fffffffff0x%2Fones/lists"}