工具地址。https://github.com/madneal/gshark
下载最新版本
1、安装mysql
brew install mysql
mysql.server start
初始化的命令 : mysql_secure_installation
输入密码 进行配置
2、安装nginx
brew instll nginx
配置gshark
brew info nginx
![](https://upload-images.jianshu.io/upload_images/4664072-ba7af40f07b07582.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
修改 /usr/local/etc/nginx/nginx.conf
按照github的方法修改
![](https://upload-images.jianshu.io/upload_images/4664072-e5cc13f0834fb77d.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
修改web页
cd dist
cp -rf * /usr/local/var/www
启动web
chmod 755 gshark
./gshark web
打开http://localhost:8080
输入mysql数据库账户密码,配置后跳转到
![](https://upload-images.jianshu.io/upload_images/4664072-dd31959ce09a7d7c.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
默认账户密码gshark/gshark
修改GShark的token管理 配置token
![](https://upload-images.jianshu.io/upload_images/4664072-e37b6c4a65162fb5.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
github账号token,获取地址:https://github.com/settings/tokens
修改规则管理, 规则内容为查找的关键字
![](https://upload-images.jianshu.io/upload_images/4664072-04964af893e73d4e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
过滤规则。根据需求填写
执行 ./gshark scan 运行