{"id":13845979,"url":"https://github.com/knownsec/ct","last_synced_at":"2025-06-19T00:08:41.278Z","repository":{"id":37487081,"uuid":"433363167","full_name":"knownsec/ct","owner":"knownsec","description":"简单易用的域名爆破工具","archived":false,"fork":false,"pushed_at":"2023-09-28T08:04:07.000Z","size":1315,"stargazers_count":102,"open_issues_count":1,"forks_count":20,"subscribers_count":9,"default_branch":"main","last_synced_at":"2024-11-21T19:38:55.509Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knownsec.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,"publiccode":null,"codemeta":null}},"created_at":"2021-11-30T09:09:30.000Z","updated_at":"2024-08-16T18:05:36.000Z","dependencies_parsed_at":"2024-02-21T10:58:27.875Z","dependency_job_id":null,"html_url":"https://github.com/knownsec/ct","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/knownsec/ct","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knownsec%2Fct","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knownsec%2Fct/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knownsec%2Fct/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knownsec%2Fct/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knownsec","download_url":"https://codeload.github.com/knownsec/ct/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knownsec%2Fct/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260654686,"owners_count":23042679,"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-08-04T17:04:14.778Z","updated_at":"2025-06-19T00:08:36.253Z","avatar_url":"https://github.com/knownsec.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"ct 是一款使用 rust 语言进行开发，并且基于 ZoomEye 域名查询以及利用域名字典进行子域名爆破的工具，同时在最终爆破完成后， 自动生成 Windows/*nix 下的可执行脚本。 脚本内容为自动将相应的的.gv 文件转化成为相应的\n.png 文件，graphviz 下载安装请参见 [graphviz](https://graphviz.org/download/)\n支持在Windows/Linux/Mac上使用。\n\n## 编译环境构建\n\n*nix 编译环境执行如下指令即可安装：\n\n```\ncurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh\n```\nWindows 编译环境安装请下载[rustup-init.exe](https://static.rust-lang.org/rustup/dist/i686-pc-windows-gnu/rustup-init.exe)并执行。\n\n\n## 使用\n\n从[releases](https://github.com/knownsec/ct/releases \"releases\")下载二进制文件。\n\n```\nct 1.0.9\nAutor: rungobier@knownsec 404 team \u003crungobier@gmail.com\u003e\nCollect information tools about the target domain.\n\nUSAGE:\n    ct_win64.exe [FLAGS] [OPTIONS] [domain]\n\nFLAGS:\n    -E                Extended analysis domain\n    -T                Network upload speed test.\n    -Z                Do not use zoomeye data\n    -C, --cidr        Convert the IP related to the target domain name to cidr for extended search. Default is false.\n    -h, --help        Prints help information\n    -i, --info        Get ZoomEye account base info\n    -q, --query-ip    Use zoomeye to query ip information\n    -V, --version     Prints version information\n\nOPTIONS:\n        --init \u003capikey\u003e                Initialize the ZoomEye api key\n    -s, --dns-dict \u003cdns-file\u003e          DNS Server list in a textual file.\n                                       file example...\n                                       8.8.8.8\n                                       1.1.1.1\n                                       ...\n    -d, --domain-dict \u003cdomain-file\u003e    Domain dict list in a file.\n                                       file example....\n                                       www\n                                       mail\n                                       dev\n                                       ...\n    -F \u003cfilter-domains\u003e                Extended filter domain list.\n                                       Example of extended filtering domain name list:\n                                       knownsec.com,jiasule.com,365cyd.com...\n        --query-num \u003cquery-num\u003e        Maximum number of zoomeye query. Default query number 100\n    -t, --threads \u003cthread-num\u003e         Maximum number of threads. Default number $CPU_NUM\n    -w, --work-dir \u003cwork-dir\u003e          Directory to save the results of tasks. Default\n                                       [/tmp|$DESKTOP]/YYYYmmddHHMM_$DOMAIN\n\nARGS:\n    \u003cdomain\u003e    Target domain name\n\n```\n\n### 常用命令\n\n```\nZoomEye apikey 初始化\nct --init 62EC1239-xxxx-xxxxx-xxxx-e45291301ee\n\n开启扩展搜索\nct -E \n\n过滤域名，域名之间以,分隔\nct -F\n\n查看ZoomEye账号信息\nct -i\n\n上行网络测速 (使用了speedtest库)\nct -T\n\n利用zoomeye的域名查询进行的懒人模式 默认每账号每天2万条查询结果\nct baidu.com\n\n使用域名字典爆破\nct -d domain_dict.txt baidu.com\n\n使用指定dns域名解析服务器及字典进行爆破(不使用ZoomEye数据加-Z，默认不加为合并) 字典路径需要带完整路径\nct -Z -d domain_dict.txt -s dns.txt baidu.com\n```\n\n## 域名以及IP关系图形生成\n\n*nix\n\n```bash\ncd /tmp/202111301212_baidu.com\nchmod +x convert2png.sh\n./convert2png.sh\nls *.png\n```\n\nWindows\n\n```bat\ncd C:\\Users\\rungobier\\Desktop\\202111301212_baidu.com\nconvert2png.bat\ndir *.png\n```\n\n最终生成的效果图如下：\n\n![域名维度](./images/domain_graph.gv.svg)\n\n## 编译\n\n```bash\ngit clone https://github.com/knownsec/ct\ncd ct\ncargo build --release\n./target/release/ct \n```\n\n## 写在最后\n\n感谢微信 BSD小恶魔群 中同为BSD爱好者 flw 协助完善代码。\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknownsec%2Fct","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknownsec%2Fct","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknownsec%2Fct/lists"}