MCPcopy Index your code
hub / github.com/damit5/gitdorks_go

github.com/damit5/gitdorks_go @v0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1 ↗ · + Follow
5 symbols 15 edges 1 files 2 documented · 40%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

介绍

gitdorks_go是一款基于GO的自动调用github api收集敏感信息的工具,参考自 GitDorker,做了部分优化。

使用

   gitdorks_go

 ____    __  __  __  __  ____  ___
(  _ \  /. |(  \/  )/  )(_  _)/ __)
 )(_) )(_  _))    (  )(   )(  \__ \
(____/   (_)(_/\/\_)(__) (__) (___/

                       v 0.1
Usage of gitdorks_go:
  -ew int
        how many seconds does each request should wait ? 
        # 每2个请求间隔多少秒
  -gd string
        github dorks file path 
        # github dorks 文件路径
  -gk string
        github search keyword
        # github 搜索keyword
  -nw
        if get github api rate limited, need wait ? (default true) 
        # 如果遇到了github速率限制,是否等待
  -nws int
        how many seconds does it wait each time (default 10)
        # 如果要等待,需要等待多少秒
  -target string
        target which search in github
        # 搜索的目标
  -tf string
        github personal access token file
        # github personal access token文件,一行一个
  -token string
        github personal access token

gitdorks_go -gd Dorks/smalldorks.txt -nws 20 -target gm7.org -tf tokenFile/tf.txt -ew 3

image-20220316150834484

安装

自己编译

go get github.com/damit5/gitdorks_go

或者

git clone https://github.com/damit5/gitdorks_go.git
cd gitdorks_go
bash build.sh

现成使用

git clone https://github.com/damit5/gitdorks_go.git
cd gitdorks_go/release
./gitdorks_go_amd_linux

文件目录

.
├── Dorks                       # 一些推荐dorks
│   ├── alldorksv3
│   ├── medium_dorks.txt
│   └── smalldorks.txt
├── README.md
├── build.sh                    # 编译脚本,可以直接用release目录下的
├── go.mod
├── go.sum
├── main.go                     # 主程序
├── release
│   ├── gitdorks_go.exe         # windows
│   ├── gitdorks_go_amd_linux   # linux
│   └── gitdorks_go_darwin      # mac
└── tokenFile
    └── tf.txt                  # token file

参考

gitdork_v3

为什么要重复造轮子

GitDorker本来已经很好用了,但是GitHub现在除了一分钟30次请求的限制,还存在次要速率限制,所以使用之前的工具大部分请求都被拦截,拦截了后也不会重新发起请求来获取,相当于过滤掉了这一个关键词,所以用go重写了一个,大概解决了这些问题。

image-20220316151327854

Core symbols most depended-on inside this repo

getToken
called by 2
main.go
query
called by 1
main.go
menu
called by 1
main.go
parseparam
called by 1
main.go
main
called by 0
main.go

Shape

Function 5

Languages

Go100%

Modules by API surface

main.go5 symbols

For agents

$ claude mcp add gitdorks_go \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact