8000 GitHub - Explorer1092/gshark: Scan for sensitive information in Github easily and effectively.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Explorer1092/gshark

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZH | EN

GgShark logo

GShark

Scan for sensitive information easily and effectively.

GShark Go Report Card

The project is based on Go and Vue to build a management system for sensitive information detection. For the full introduction, please refer to articles and videos.

Features

  • Support multi platforms, 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

GShark

Deployment

It's suggested to deploy the frontend project by nginx. Place the dist folder under /var/www/html, modify the nginx.conf to reverse proxy the backend service. For the detailed deployment videos, refer to bilibili or youtube. For the deployment in windows, refer to 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 version zip file from releases. Unzip and copy the files inside dist to /var/www/html folder of nginx. Start the nginx and the frontend is deploy successfully.

Web service

./gshark web

Scan service

./gshark scan

Development

Server

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

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.

iR2TMt.md.png

FAQ

  1. Default username and password to login

gshark/gshark

  1. Database initial failed

make sure the version of mysql is over 5.6. And remove the databse before initial the second time.

  1. go get ./... connection error

It's suggested to enable goproxy(refer this article for golang upgrade):

go env -w GOPROXY=https://goproxy.cn,direct
go env -w GO111MODULE=on
  1. When deployed the web to nginx, the page was empty

try to clear the LocalStorage

Reference

Wechat

If you would like to join wechat group, you can add my wechat mmadneal with the message gshark.

License

Apache License 2.0

404StarLink 2.0 - Galaxy

GShark 是 404Team 星链计划2.0中的一环,如果对 GShark 有任何疑问又或是想要找小伙伴交流,可以参考星链计划的加群方式。

About

Scan for sensitive information in Github easily and effectively.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 53.0%
  • Vue 28.4%
  • JavaScript 9.1%
  • SCSS 6.0%
  • Smarty 3.3%
  • Shell 0.1%
  • Other 0.1%
0