{"id":18551801,"url":"https://github.com/0xbug/biu-cli","last_synced_at":"2025-04-09T22:31:39.651Z","repository":{"id":85573466,"uuid":"368460055","full_name":"0xbug/biu-cli","owner":"0xbug","description":null,"archived":false,"fork":false,"pushed_at":"2021-08-06T13:57:10.000Z","size":21,"stargazers_count":15,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-24T12:56:16.482Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xbug.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2021-05-18T08:42:25.000Z","updated_at":"2025-02-25T05:06:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"a727e464-4020-456f-b33e-f0942066387e","html_url":"https://github.com/0xbug/biu-cli","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xbug%2Fbiu-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xbug%2Fbiu-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xbug%2Fbiu-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xbug%2Fbiu-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xbug","download_url":"https://codeload.github.com/0xbug/biu-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248123627,"owners_count":21051504,"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":[],"created_at":"2024-11-06T21:10:24.287Z","updated_at":"2025-04-09T22:31:39.644Z","avatar_url":"https://github.com/0xbug.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 构建\n```shell\ngo mod download\ngo build -o biu-cli cmd/biu-cli.go\n```\n\n## 初始化配置\n访问个人中心-\u003e安全设置 生成新的API密钥\n\n```shell\nbiu-cli -ak API密钥 -host biu地址(https://x.x.x.x)\n```\n## 进阶配置\n\n```shell\nBIU_AK=\"API密钥\"\nBIU_HOST=\"biu地址\"\nBIU_PORTS=\"新建项目使用的端口范围\"\nTYC_COOKIE=\"查询icp时用到天眼查的Cookie\"\n```\n\n## 使用\n - 查询IP\n```shell\nbiu-cli -ip 1.1.1.1\nbiu-cli -ip 1.1.1.1/24\n```\n\n - 查询多个IP或域名\n```shell\ncat ip.txt|biu-cli -s\n```\n - 进入查询模式\n```shell\nbiu-cli -s\n```\n - 查看已有项目\n```shell\nbiu-cli\n```\n - 创建项目\n```shell\nbiu-cli -pnew 项目名称\n```\n - 添加目标到已有项目中\n```shell\ncat ip.txt|biu-cli -pid 项目ID\ncat domain.txt|biu-cli -pid 项目ID\n```\n\n- 查询备案并添加到已有项目中\n```shell\nbiu-cli -icp xx公司 -pid 项目ID\n```\n\n\n- 查询备案并创建项目\n```shell\nbiu-cli -icp xx公司 -pnew 项目名称\n```\n\n\n - 配合 https://opendata.rapid7.com/sonar.https/ 使用\n\n```shell\nhttps://stedolan.github.io/jq/download/ 安装jq\nzgrep 'exmaple.com' 2021-04-19-1618794424-https_get_443.json.gz|jq -r '.ip'|biu-cli -pid 项目ID\nzgrep 'BeiJing Baidu Netcom Science Technology' 2021-04-19-1618794424-https_get_443.json.gz|jq -r '.ip'|biu-cli -pid 项目ID\n```\n\n - 配合 https://opendata.rapid7.com/sonar.fdns_v2/ 使用\n```shell\nzgrep '\\.example.com\"' 2021-01-30-1611965078-fdns_a.json.gz|jq -r '.name'|biu-cli -pid 项目ID\nzgrep '\\.example.com\"' 2021-01-30-1611965078-fdns_a.json.gz|jq -r '.value'|biu-cli -pid 项目ID\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xbug%2Fbiu-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xbug%2Fbiu-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xbug%2Fbiu-cli/lists"}