{"id":13843133,"url":"https://github.com/Acmesec/Sylas","last_synced_at":"2025-07-11T18:30:32.626Z","repository":{"id":39413588,"uuid":"444757319","full_name":"Acmesec/Sylas","owner":"Acmesec","description":"新一代子域名主/被动收集工具 - Subdomain automatic/passive collection tool","archived":false,"fork":false,"pushed_at":"2022-10-09T11:11:24.000Z","size":2850,"stargazers_count":485,"open_issues_count":8,"forks_count":49,"subscribers_count":12,"default_branch":"main","last_synced_at":"2024-11-21T14:38:34.288Z","etag":null,"topics":["burp-extensions","burp-plugin","burpsuite-extender","burpsuite-tools","scan","scanner","scanner-web","subdomain-finder","subdomain-scanner"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Acmesec.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}},"created_at":"2022-01-05T10:16:09.000Z","updated_at":"2024-11-20T22:42:48.000Z","dependencies_parsed_at":"2023-01-19T16:47:16.042Z","dependency_job_id":null,"html_url":"https://github.com/Acmesec/Sylas","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/Acmesec/Sylas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Acmesec%2FSylas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Acmesec%2FSylas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Acmesec%2FSylas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Acmesec%2FSylas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Acmesec","download_url":"https://codeload.github.com/Acmesec/Sylas/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Acmesec%2FSylas/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264869913,"owners_count":23676129,"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":["burp-extensions","burp-plugin","burpsuite-extender","burpsuite-tools","scan","scanner","scanner-web","subdomain-finder","subdomain-scanner"],"created_at":"2024-08-04T17:01:55.843Z","updated_at":"2025-07-11T18:30:31.658Z","avatar_url":"https://github.com/Acmesec.png","language":"Java","funding_links":[],"categories":["Java"],"sub_categories":[],"readme":"[中文](./README.md)|[English](./README_en.md)\n\n# Sylas(塞拉斯) - 新一代子域名收集工具\n\n原名：BurpDomain\n\n作者：[@br0ken_5](https://github.com/broken5) \u0026\u0026 [@0chencc](https://github.com/0chencc)\n\n![](img/index.png)\n\n## 项目描述\n\n​\tSylas(塞拉斯)是我很喜欢的一款游戏《英雄联盟》(League of Legends)里的英雄。他在面板数值已经足够可观的情况下，其终极技能**其人之道**又能窃取其他英雄的终极技能为己用。我觉得塞拉斯很适合代表这个项目，我们在插件的基础功能开发完成之后，又再思考与其他项目联动的可能，尽可能地把我们手头上现有的idea跟这个项目联动融合，使Sylas成为战场上能独当一面的存在。——林晨[@0chencc](https://github.com/0chencc)\n\n![](img/Sylas.jpeg)\n\n## 致谢\n\n​\t工具开发过程中参考了[@bit4woo](https://github.com/bit4woo)师傅的[domain_hunter_pro](https://github.com/bit4woo/domain_hunter_pro) 项目\n\n## 功能\n\n* 主动搜索\n\n设定好根域名之后，会从历史流量中抓取与根域名相关的所有子域名展示并且储存到数据库中。\n\n* 被动搜索\n\n当使用burp代理时，会从经过burp的流量中抓取域名进行储存。不需要开启，插件启动以及数据库连接之后就会自动拉取。\n\n* 相似域名模糊匹配\n\n会对相似的域名进行匹配，符合正则的就拉取入库\n\n* 支持mysql/sqlite\n\n我们打算思考一下这个工具与后期其他工具的联动，故而选择了mysql作为数据库，根据鸭王师傅[@TheKingOfDuck](https://github.com/TheKingOfDuck)的反馈，我们又添加了Sqlite作为支持。目前是默认使用Sqlite作为数据库，降低用户的使用成本。\n\n* 与Bscan的联动\n\n这部分就是我所说的Mysql的联动，在目前的版本中，BurpDomain将支持定时每1分钟从Mysql数据库中拉取[Bscan](https://github.com/broken5/bscan/tree/sylas)测活的数据，但[Bscan](https://github.com/broken5/bscan/tree/sylas)的能力远不止于此。我在Todo List里添加了将Bscan漏扫的能力也结合在BurpDomain上。\n\n如果有需要支持其他数据库，请大家在issue里反馈，我收到反馈之后会立即加上。\n\n### TODO LIST\n\n- [x] 支持sqlite\n- [x] 相似域名模糊匹配\n- [ ] url的后缀名筛选\n- [ ] 由于仓促赶时间，所以当前的代码可读性是非常差的，会找个时间重构一下代码。\n- [ ] Bscan漏扫能力结合\n\n## 使用方法\n\n### 0x00 配置数据库\n\n在当前版本以及往后所有版本里，都支持了Sqlite，如果只是想单纯使用BurpDomain的功能，那么只需要Sqlite即可。\n\n如果需要获得更强的功能，那么需要启动Mysql服务，并且在Mysql中创建一个数据库，将Mysql的连接配置设置好。\n\n![](img/databaseSetting.png)\n\n### 0x01 创建一个新项目\n\n点击Project Setting按钮，输入项目名点击add，选中即可创建新项目\n\n由于使用了数据库进行存储，所以会储存历史项目记录，当运行时会拉取数据库的项目信息，也可以直接选中继续项目。\n\n![](img/addProject.png)\n\n### 0x02 添加根域名\n\n点击RootDomain Setting按钮，将需要的爬取的根域名都添加上\n\n![](img/addRootDomain.png)\n\n### 0x03 域名收集\n\n如果需要抓取历史流量，点击一下grep domains按钮即可。\n\n配置完毕后无需再进行任何操作，下面是效果图\n\n![](img/passiveCollection.png)\n\n### 0x04 相似域名收集\n\n使用如下代码进行相似域名匹配，正则在其中。各位有更优秀的正则可以提交issue，届时我们采纳使用。感谢。\n\n```java\nfor(String s:BurpExtender.currentRootDomainSet){\n  //思路：考虑将rootdomain进行切割，例如baidu.com使用切割成baidu com，然后对baidu进行相似度匹配\n  String[] tmp = s.split(\"\\\\.\");\n  //通过切割的长度取需要匹配的部分，通过这个来避免当用户设置根域名为www.baidu.com的时候，会匹配成www,baidu的问题，目前直接取baidu,com\n  String similarRegex = String.format(\"((?!-)[A-Za-z0-9-]{1,63}(?\u003c!-)\\\\.)*(?!-)[A-Za-z0-9-]{0,63}%s[A-Za-z0-9-]{0,63}(?\u003c!-)\\\\.%s\",\n                                      tmp[tmp.length-2],tmp[tmp.length-1]);\n  Pattern similarPattern = Pattern.compile(similarRegex);\n  Matcher matcher = similarPattern.matcher(domain);\n  return matcher.find();\n}\n```\n\n![](img/similarDomain.png)\n\n### 0x05 工具特点\n\n根据字段排序功能可以快速筛选出内网IP、相似网段IP以及相似域名，可以根据这些信息自定义域名字典、爆破HOST等，进一步扩大信息收集范围\n\n![](img/features1.png)\n\n![](img/features2.png)\n\n### 0x06 与Bscan的联动\n\n#### Sylas配置\n\n需要将配置数据库的方式修改为Mysql，按照图示进行填写配置。\n\n![img](img/MyslqSetting.png)\n\n在Sylas以及Bscan都配置完毕后该功能就会启用。\n\n在配置完毕Bscan之后，需要重新连接一次Mysql数据库。查看Burp-Extender有无打印出Bscan Ready字符串，如果打印则该功能已启用。\n\n![](img/bscanReady.png)\n\n这项功能只在配置了Bscan以及Mysql的用户才可以体验。目前仅支持批量网站测活，效果如下。\n\n![](img/BscanDomainAliveCheck.png)\n\n需要在[Bscan](https://github.com/broken5/bscan/tree/sylas)的配置文件里配置塞拉斯的数据库信息，随后按照readme中的方法启动即可。\n\n\n\n#### Bscan配置\n\n##### 0x00 初始化\n\n执行这条命令之后会报错且生成配置文件，之后每3分钟会读取MySQL中的数据执行存活扫描\n\n```shell\n./bscanSylas\n```\n![image-20220928174605334](img/bscanConfigure_1.png)\n\n\n\n##### 0x01 修改Config.yml文件\n\n打开生成的Config.yml文件\n\n在sylas字段里修改关于塞拉斯数据库的配置。\n\n![image-20220928174415417](img/bscanConfigure_2.png)\n\n##### 0x02 启动\n\n直接以nohup去启动本程序，程序会在启动时在数据库中自动创建需要的表名\n```shell\nnohup ./bscanSylas \u0026\n```\n随后程序将在每1分钟自动拉取塞拉斯数据库，进行扫描之后将扫描结果储存在数据库中，以供塞拉斯去拉取。\n\n在最新的版本中，我们新增了与Bscan的联动，也在后续寻找跟其他工具结合的可能。Bscan一直没有开源的原因只是B哥觉得代码写得有点丑，不过这次我们在分支上进行代码开源，更强的Bscan得等下个月忙完才能更新了。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAcmesec%2FSylas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAcmesec%2FSylas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAcmesec%2FSylas/lists"}