{"id":13843680,"url":"https://github.com/ph4ntonn/Behold3r","last_synced_at":"2025-07-11T19:33:13.148Z","repository":{"id":112955585,"uuid":"209761218","full_name":"ph4ntonn/Behold3r","owner":"ph4ntonn","description":"👻Behold3r -- 收集指定网站的子域名，并可监控指定网站的子域名更新情况，发送变更报告至指定邮箱","archived":false,"fork":false,"pushed_at":"2020-01-03T08:59:17.000Z","size":9378,"stargazers_count":35,"open_issues_count":0,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-05T17:38:35.328Z","etag":null,"topics":["cybersecurity","information","pentest-tool","pentesting","python","redis","redteam","security-tools","subdomain","subdomain-scanner"],"latest_commit_sha":null,"homepage":"","language":"Python","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/ph4ntonn.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":"2019-09-20T10:04:08.000Z","updated_at":"2024-04-24T15:43:44.000Z","dependencies_parsed_at":"2024-02-06T01:06:43.203Z","dependency_job_id":null,"html_url":"https://github.com/ph4ntonn/Behold3r","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ph4ntonn%2FBehold3r","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ph4ntonn%2FBehold3r/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ph4ntonn%2FBehold3r/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ph4ntonn%2FBehold3r/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ph4ntonn","download_url":"https://codeload.github.com/ph4ntonn/Behold3r/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225755091,"owners_count":17519197,"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":["cybersecurity","information","pentest-tool","pentesting","python","redis","redteam","security-tools","subdomain","subdomain-scanner"],"created_at":"2024-08-04T17:02:23.711Z","updated_at":"2024-11-21T15:31:25.254Z","avatar_url":"https://github.com/ph4ntonn.png","language":"Python","funding_links":[],"categories":["Python","Python (1887)"],"sub_categories":[],"readme":"# Behold3r\nBehold3r是一个子域名收集工具，因为受到了sublert的启发，就想着写点小玩意自娱自乐hhh\n\n(仓促写成，远不够完善，持续改进中.....)\n\n# 环境需求\nRedis\n\nPython3\n\n# 使用截图\n(以下是最初的截图，当前查询来源已经增加,懒得再截图了hhh)\n\n对7k7k网站进行子域名收集，并检活后存放结果至redis中\n\n![1](https://github.com/phantom11235/Behold3r/blob/master/example/1.png)\n\n对7k7k网站进行子域名收集，不进行检活也不放入redis，仅展示\n\n![2](https://github.com/phantom11235/Behold3r/blob/master/example/2.png)\n\n将7k7k网站加入监控列表，并指定使用163邮箱接受监控邮件\n\n![3](https://github.com/phantom11235/Behold3r/blob/master/example/3.png)\n\n收到邮件提醒\n\n![4](https://github.com/phantom11235/Behold3r/blob/master/example/4.png)\n\n# 文件描述\nBehold3r.py为主程序\n\nconfig.py为配置文件，redis相关配置、线程数配置及未来功能的配置都存放在此文件\n\n其中包括邮箱设置：\n\nsender：发件人邮箱\n\nauthcode：发件人授权码（在邮箱设置中可以找到）\n\nreceiver：收件人邮箱\n\nEmail.py 为邮件发送代码\n\n# 参数设置\n-u --url:设置要查找的域名，形如:```python Beholder.py -u http://www.example.com```\n\n-s --search:设置要查找的域名但不执行收集的操作，仅仅只是从redis数据库中查找保存的对应域名的子域名的历史数据,形如:```python Beholder.py -s http://www.example.com```\n\n-o --output:将查询结果导出为txt文件, 需要与-s、-u等选项联用,不可单独使用(导出文件名为域名.txt)\n\n-c --confirm:设置是否要对查找出来的子域名进行查活操作，形如:```python Beholder.py -u http://www.example.com -c```\n\n-r --redis:设置是否需要将查找出来的子域名用redis进行保存，默认不保存。形如:```python Beholder.py -u http://www.example.com -r```\n\n           (注意，当-r参数与-c参数连用时，只保存存活的子域名)\n-t --timeout:设置查活操作线程的超时时间，默认为5s\n\n-l --listing:显示所有正在被监控的域名，单独使用，不能和其他参数联用\n\n-f --flush:移除指定邮箱下的所有监控域名，需要与-e选项联用，类似于-d选项\n\n-p --pop:设置需要从监控列表里移除的域名，需要与-e选项联用，类似于-d选项\n\n-e --email:设置接受监控信息的邮箱（现仅支持qq以及163邮箱），具体参数：-e 163(使用163邮箱)  -e qq（使用qq邮箱）注意，此选项必须与-d选项联用\n\n-d --domain:设置需要监控的域名，形如:```-d http://www.4399.com```  注意，此选项必须与-e选项联用\n\n如果-e与-d选项联用，形如：```python Beholder.py -d http://www.4399.com  -e 163```(即监控```http://www.4399.com```,监控邮件发送至163邮箱，具体邮箱地址及授权码配置请至config.py文件中配置，授权码教程(以qq为例)：https://service.mail.qq.com/cgi-bin/help?subtype=1\u0026id=28\u0026no=1001256)\n\n# 注意事项\n若使用了域名监控功能，请手动使用crontab -e 命令将其变为定时任务(不知道这是啥的请自行百度。。。)：\n\n添加的内容类似如下：\n\n\\* * * * * cd ~/code/Beholder \u0026\u0026 python Beholder.py -x\n\n(前面五个 * 号表示每过一分钟执行，不知道使用方法者请自行百度。之后的cd语句只需改成你代码所在的目录即可）\n\n如上设置，即可在邮箱中每分钟收到一次子域名变化信息\n\n(Important!!!!!!!!!!!!!!!)另外，使用了域名监控功能时请保持redis服务器正常运行，且在设置定时任务之前执行一次 python Beholder.py -u (你要监控的域名) -c -r 获得初始数据\n\nPS: 163邮箱如使用海外ip,可能导致无法接收邮件，请使用qq邮箱接收（后期会加上gmail邮箱）\n# Todo:\n\n加入更多好用的子域名查询来源\n\n。。。。。。。。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fph4ntonn%2FBehold3r","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fph4ntonn%2FBehold3r","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fph4ntonn%2FBehold3r/lists"}