• Stars
    star
    871
  • Rank 52,385 (Top 2 %)
  • Language
    Go
  • License
    Apache License 2.0
  • Created over 6 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Scan for sensitive information easily and effectively.

ZH | EN

GgShark logo

GShark

Scan for sensitive information easily and effectively.

GShark Go Report Card Release

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. For now, all the scans are only targeted to the public environments, not local environments.

For the usage of GShark, please refer to wiki.

Features

  • Support multi platforms, including Gitlab, Github, Searchcode, Postman
  • 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

Requirements

  • Nginx
  • MySQL(version above 8.0)

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.

Nginx

Modify the nginx.conf:

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.

unzip gshark*.zip

Start the Nginx and the Front-End is deployed successfully.

Incremental Deployment

For the incremental deployment, sql.md should be executed for the corresponding database operations.

Server service

For the first time, you need to rename config-temp.yaml to config.yaml.

go build && ./gshark
or
go run main.go

For the scan service, it's necessary to config the corresponding rules. For example, Github or Gitlab rules.

Development

Server

git clone https://github.com/madneal/gshark.git

cd server

go mod tidy

mv config-temp.yaml config.yaml

go build

./gshark

or

go run main.go

Web

cd ../web

npm install

npm run serve

Usage

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

Rule Configuration

For the Github or Gitlab rule, the rule will be matched by the syntax in the corresponding platforms. Directly, you config what you search at GitHub. You can download the rule import template csv file, then batch import rules.

image

Filter Configuration

Filter is only addressed to GitHub search now. There are three classes of filter, include extension, keyword, sec_keyword. For extension and keyword, they can used for blacklist or whitelist.

For more information, you can refer to this video.

Configuration

You are supposed to rename config-temp.yaml to config.yaml and config the database information and other information according to your environment.

GitLab Base Url

image

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 database 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

Resources

Articles

Videos

Reference

Wechat

If you would like to join WeChat group, you can add my WeChat mmadneal with the message gshark. But I would strongly suggest you to raise an issue directly instead of just asking in WeChat.

License

Apache License 2.0

404StarLink 2.0 - Galaxy

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

More Repositories

1

articles-translator

📚Translate the distinct technical blogs. Please star or watch. Welcome to join me.
621
star
2

everywhere

🔧 A tool can really search everywhere for you.
Java
159
star
3

subway-shanghai

🚆上海地铁线路图PWA,支持离线使用,强烈建议安装Chrome浏览器使用。Subway Shanghai, offline first, it's strongly recommended to use by Chrome.
JavaScript
155
star
4

export-to-markdown

A Chrome extension to export the story in Medium to a markdown format text.
JavaScript
75
star
5

htb

The walkthrough of hack the box
PowerShell
66
star
6

fullstack-interview

全栈工程师的进击
49
star
7

image-host

通过七牛云对象存储建立私有图床
JavaScript
42
star
8

sec-dog

Kotlin
17
star
9

OSCP_learing

14
star
10

latex-ppt

This is a template for the presentation created by latex.
TeX
12
star
11

code-recognition

It is program to detect the validation code by nodejs.
JavaScript
10
star
12

r-forwarder-burp

The burp extension to forward the request
Java
10
star
13

leaked

JavaScript
6
star
14

oswe-report-template

The latex template of OSWE report
TeX
6
star
15

madneal.github.io

HTML
4
star
16

http-custom

Scripts to define custom http log
Zeek
4
star
17

opencv-lane-vehicle-track

Automatically exported from code.google.com/p/opencv-lane-vehicle-track
C++
3
star
18

answers

A method to build questions bank
Python
3
star
19

pwa

a weather progressive web application
JavaScript
3
star
20

pwa-manifest-generator

A webpack plugin for generating progressive web application manifest.json file.
JavaScript
3
star
21

onionscan

A fork of the onionscan from r-sh
Go
3
star
22

ife-ecnu

🎓The project of ife
HTML
2
star
23

my-first-blog

my self website
HTML
2
star
24

danmu-sender

斗鱼刷弹幕法宝
JavaScript
2
star
25

requests

Clients to send http request
Go
2
star
26

check-cve

A tool to check all the cves related to specific product and versions.
Python
2
star
27

spring-demo

To batch delete the folders contain the same words
2
star
28

graduation

This is the graduation paper.
TeX
2
star
29

oscp-report-template

A latex template for OSCP
TeX
2
star
30

csdn-export

export the blogs in CSDN by markdown format
Python
1
star
31

mybatis-security

Security IDEA plugin for mabatis security problem
1
star
32

woeid-parser

To get the woeid of cities according to http://woeid.rosselliot.co.nz/lookup/
JavaScript
1
star
33

awesome-security-reports

Collection of awesome security reports.
1
star
34

payload-collection

A payload collections
Shell
1
star
35

blog

The source files of my blog.
Shell
1
star
36

ctf_tools

Python
1
star
37

jwt-shark

JWT crack tool
Rust
1
star
38

vshark

It is the the reading notes of the method of programming
Go
1
star