{"id":13814060,"url":"https://github.com/MiSecurity/x-patrol","last_synced_at":"2025-05-15T03:32:39.594Z","repository":{"id":41754353,"uuid":"120398733","full_name":"MiSecurity/x-patrol","owner":"MiSecurity","description":"github泄露扫描系统","archived":false,"fork":false,"pushed_at":"2023-11-27T01:23:37.000Z","size":5127,"stargazers_count":1155,"open_issues_count":8,"forks_count":303,"subscribers_count":42,"default_branch":"master","last_synced_at":"2025-04-09T04:04:26.865Z","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/MiSecurity.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":"2018-02-06T03:50:25.000Z","updated_at":"2025-03-13T05:43:46.000Z","dependencies_parsed_at":"2024-08-01T09:23:49.109Z","dependency_job_id":"0ced2468-4867-469d-bb7e-08e9a610fdca","html_url":"https://github.com/MiSecurity/x-patrol","commit_stats":{"total_commits":43,"total_committers":1,"mean_commits":43.0,"dds":0.0,"last_synced_commit":"b0e2525c1d25e81fd7cd5b283349c614e2694321"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiSecurity%2Fx-patrol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiSecurity%2Fx-patrol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiSecurity%2Fx-patrol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiSecurity%2Fx-patrol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MiSecurity","download_url":"https://codeload.github.com/MiSecurity/x-patrol/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254266429,"owners_count":22042108,"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-04T04:01:41.600Z","updated_at":"2025-05-15T03:32:38.708Z","avatar_url":"https://github.com/MiSecurity.png","language":"Go","funding_links":[],"categories":["Go","Go (531)"],"sub_categories":[],"readme":"## Github leaked patrol\n\nGithub leaked patrol为一款github泄露巡航工具：\n\n1. 提供了WEB管理端，后台数据库支持SQLITE3、MYSQL和POSTGRES\n1. 双引擎搜索，github code接口搜索全局github以及本地搜索例行监控的repos\n1. 支持规则管理（github搜索规则及本地repos搜索规则）\n1. 支持github token管理和用户管理\n1. 支持在WEB中对扫描结果审核\n\n## 使用方法\n- 命令行参数如下：\n    1. web指令表示启动web管理端\n    1. scan指令表示只启动github搜索\n    1. scan -m local，表示只启动本地代码搜索功能\n    1. scan -m all，表示同时启动github代码搜索与本地Repos搜索功能\n\n![](http://docs.xsec.io/images/github/paper/usage.png)\n\n- 配置好conf/app.ini中的参数后使用WEB参数后启动WEB服务器。默认会监听到本地的8000端口，默认的管理员账户和密码分别为：`xsec`和`x@xsec.io`。\n![](http://docs.xsec.io/images/github/web.png)\n\n- 登录WEB管理端，录入github token、规则。\n![](http://docs.xsec.io/images/github/rules.png)\n\n- 启动搜索功能：\n\n![](http://docs.xsec.io/images/github/search.png)\n\n- 审核结果\n    1. github code搜索结果审核：\n![](http://docs.xsec.io/images/github/report1.png)\n    1. 本地repos详细搜索结果审核：\n![](http://docs.xsec.io/images/github/report2.png)\n\n## 更新记录\n### 2018/5/25，修改了本地扫描的逻辑\n1. 只扫描在后台添加的仓库了\n1. 同时支持git远程地址和本地地址，格式如下：\n![](http://docs.xsec.io/images/github/local_check.jpg)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMiSecurity%2Fx-patrol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMiSecurity%2Fx-patrol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMiSecurity%2Fx-patrol/lists"}