4.4 KiB
GShark https://github.com/madneal/gshark
GShark
The project is based on go with vue to build a management system for sensitive information detection. This is the total fresh version, you can refer the old version here. For the full introduction of the new version, please refer here.
Features
- Support multi platform, including Gitlab, Github, Searchcode
- Flexible menu and API permission setting
- Flexible rules and filter rules
- Utilize gobuster to brute force subdomain
- Easily used management system
Quick start
Deployment
For the deployment, it's suggested to install nginx. Place the dist
folder under html
, modify the nginx.conf
to reverse proxy the backend service. I have also made a video for the deployment in bilibili and youtube. For the deploment in windows, refer here.
location /api/ {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
rewrite ^/api/(.*)$ /$1 break;
proxy_pass http://127.0.0.1:8888;
}
The deployment work is very easy. Find the corresponding binary zip file from releases. Unzip and run. Remember to copy the files inside dist
to html
folder of nginx.
Web service
./gshark web
Scan service
./gshark scan
Development
Server side
git clone https://github.com/madneal/gshark.git
cd server
go mod tidy
mv config-temp.yaml config.yaml
go build
./gshark web
If you want to set up the scan service, please run:
./gshark scan
Web side
cd ../web
npm install
npm run serve
Run
USAGE:
gshark [global options] command [command options] [arguments...]
COMMANDS:
web Startup a web Service
scan Start to scan github leak info
help, h Show a list of commands or help for one command
GLOBAL OPTIONS:
--debug, -d Debug Mode
--host value, -H value web listen address (default: "0.0.0.0")
--port value, -p value web listen port (default: 8000)
--time value, -t value scan interval(second) (default: 900)
--help, -h show help
--version, -v print the version
Add Token
To execute ./gshark scan
, you need to add a Github token for crawl information in github. You can generate a token in tokens. Most access scopes are enough. For Gitlab search, remember to add token too.
项目相关
- 2021-11-12 发布文章《GShark:多平台的敏感信息监测工具》
最近更新
[v0.9.3] - 2022-04-14
更新
- Github 速率限制更加严格,避免反复达到速率限制频率
- 修复过滤规则不存在导致的搜索退出的问题
- 移除 redis 服务
- 升级前端组件修复潜在的安全问题
- 增加企业微信通知
[v0.9.2] - 2022-03-19
更新
- 修复 axios 版本导致的验证码不展示的问题
- 移除测试模块,减少代码冗余
- 修复 webpack 的编译问题
[v0.9.1] - 2022-02-25
更新
- 升级前端组件依赖版本
- 规则使用 switch 组件切换状态