Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
damit5 committed Mar 16, 2022
1 parent 9dbf710 commit 2ac0c79
Showing 1 changed file with 52 additions and 51 deletions.
103 changes: 52 additions & 51 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,51 @@
## 介绍

`gitdorks_go`是一款基于GO的自动调用github api收集敏感信息的工具,参考自 [GitDorker](https://github.com/obheda12/GitDorker)
`gitdorks_go`是一款基于GO的自动调用github api收集敏感信息的工具,参考自 [GitDorker](https://github.com/obheda12/GitDorker),做了部分优化。

GitDorker本来已经很好用了,但是GitHub现在除了一分钟30次请求的限制,还存在[次要速率限制](https://docs.github.com/en/free-pro-team@latest/rest/overview/resources-in-the-rest-api#secondary-rate-limits),所以使用之前的工具大部分请求都被拦截,拦截了后也不会重新发起请求来获取,相当于过滤掉了这一个关键词,所以用go重写了一个,大概解决了这些问题。
## 使用

```ascii
  gitdorks_go
<img src="README.assets/image-20220316151327854.png" alt="image-20220316151327854" style="zoom:25%;" />
____ __ __ __ __ ____ ___
( _ \ /. |( \/ )/ )(_ _)/ __)
)(_) )(_ _)) ( )( )( \__ \
(____/ (_)(_/\/\_)(__) (__) (___/
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
```


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

![image-20220316150834484](README.assets/image-20220316150834484.png)

## 安装

Expand All @@ -22,7 +63,7 @@ cd gitdorks_go
bash build.sh
```

### 直接使用
### 现成使用

```shell
git clone https://github.com/damit5/gitdorks_go.git
Expand Down Expand Up @@ -54,56 +95,16 @@ cd gitdorks_go/release
```



## 使用

```ascii
  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
```


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

![image-20220316150834484](README.assets/image-20220316150834484.png)

## 参考

* [twitter](https://twitter.com/obheda12/status/1352686678318731264)

![gitdork_v3](README.assets/gitdork_v3.png)

* [GitDorker](https://github.com/obheda12/GitDorker)
* [GitDorker](https://github.com/obheda12/GitDorker)

## 为什么要重复造轮子

GitDorker本来已经很好用了,但是GitHub现在除了一分钟30次请求的限制,还存在[次要速率限制](https://docs.github.com/en/free-pro-team@latest/rest/overview/resources-in-the-rest-api#secondary-rate-limits),所以使用之前的工具大部分请求都被拦截,拦截了后也不会重新发起请求来获取,相当于过滤掉了这一个关键词,所以用go重写了一个,大概解决了这些问题。

<img src="README.assets/image-20220316151327854.png" alt="image-20220316151327854" style="zoom:25%;" />

0 comments on commit 2ac0c79

Please sign in to comment.