Skip to content

Commit cf11855

Browse files
committed
📘 Add README
1 parent 9ffd82b commit cf11855

File tree

1 file changed

+140
-0
lines changed

1 file changed

+140
-0
lines changed

README.md

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
# go-dork
2+
3+
[![License](https://img.shields.io/badge/license-MIT-_red.svg)](https://opensource.org/licenses/MIT)
4+
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/dwisiswant0/go-dork/issues)
5+
6+
The fastest dork scanner written in Go.
7+
8+
<img src="https://user-images.githubusercontent.com/25837540/87547986-153f6a80-c6d6-11ea-92ef-bdc23d60f79e.png" height="350">
9+
10+
There are also various search engines supported by go-dork, including Google, Shodan, Bing, Duck, Yahoo and Ask.
11+
12+
- [Install](#install)
13+
- [Usage](#usage)
14+
- [Basic Usage](#basic-usage)
15+
- [Flags](#flags)
16+
- [Querying](#querying)
17+
- [Defining engine](#defining-engine)
18+
- [Pagination](#pagination)
19+
- [Adding headers](#adding-headers)
20+
- [Using Proxy](#using-proxy)
21+
- [Chained with other tools](#chained-with-other-tools)
22+
- [Help & Bugs](#help--bugs)
23+
- [TODOs](#todos)
24+
- [License](#license)
25+
- [Version](#version)
26+
27+
## Install
28+
29+
- [Download](https://github.com/dwisiswant0/go-dork/releases) a prebuilt binary from releases page, unpack and run! or
30+
- If you have go compiler installed and configured:
31+
32+
```bash
33+
> GO111MODULE=on go get -v github.com/dwisiswant0/go-dork
34+
```
35+
36+
## Usage
37+
38+
### Basic Usage
39+
40+
Simply, go-dork can be run with:
41+
42+
```bash
43+
> go-dork -q "inurl:'...'"
44+
```
45+
46+
### Flags
47+
48+
```bash
49+
> go-dork -h
50+
```
51+
52+
This will display help for the tool. Here are all the switches it supports.
53+
54+
| Flag | Description |
55+
|----------------|------------------------------------------------------|
56+
| -q/--query | Search query _(required)_ |
57+
| -e/--engine | Provide search engine (default: Google) |
58+
| | _(options: Google, Shodan, Bing, Duck, Yahoo, Ask)_ |
59+
| -p/--page | Specify number of pages (default: 1) |
60+
| -H/--header | Pass custom header to search engine |
61+
| -x/--proxy | Use proxy to surfing |
62+
| -s/--silent | Silent mode, prints only results in output |
63+
| -nc/--no-color | Disable colored output results |
64+
65+
### Querying
66+
67+
```bash
68+
> go-dork -q "inurl:..."
69+
```
70+
71+
Queries can also be input with stdin
72+
73+
```bash
74+
> cat dorks.txt | go-dork -p 5
75+
```
76+
77+
### Defining engine
78+
79+
Search engine can be changed from the available engines: Google, Shodan, Bing, Duck, Yahoo, Ask.
80+
However, if the `-e` flag is not defined, it will use the Google search engine by default.
81+
82+
```bash
83+
> go-dork -e bing -q ".php?id="
84+
```
85+
86+
This will do a search by the Bing engine.
87+
88+
### Pagination
89+
90+
By default, go-dork selects the first page, you can customize using the `-p` flag.
91+
92+
```bash
93+
> go-dork -q "intext:'jira'" -p 5
94+
```
95+
96+
It will search sequentially from pages 1 to 5.
97+
98+
### Adding Headers
99+
100+
Maybe you want to use a search filter on the Shodan engine, you can use custom headers to add cookies or other header parts.
101+
102+
```bash
103+
> go-dork -q "org:'Target' http.favicon.hash:116323821" \
104+
--engine shodan -H "Cookie: ..." -H "User-Agent: ..."
105+
```
106+
107+
### Using Proxy
108+
109+
Using a proxy, this can also be useful if Google or other engines meet Captcha.
110+
111+
```bash
112+
> go-dork -q "intitle:'BigIP'" -p 2 -x http://127.0.0.1:8989
113+
```
114+
115+
### Chained with other tools
116+
117+
If you want to chain the `go-dork` results with another tool, use the `-s` flag.
118+
119+
```bash
120+
> go-dork -q "inurl:'/secure' intext:'jira' site:org" -s | nuclei -t workflows/jira-exploitaiton-workflow.yaml
121+
```
122+
123+
## Help & Bugs
124+
125+
If you are still confused or found a bug, please [open the issue](https://github.com/dwisiswant0/go-dork/issues). All bug reports are appreciated, some features have not been tested yet due to lack of free time.
126+
127+
## TODOs
128+
129+
- [ ] Fixes Yahoo regexes
130+
- [ ] Fixes Google regexes if using custom User-Agent
131+
- [ ] Stopping if there's no results & page flag was set
132+
- [ ] DuckDuckGo next page
133+
134+
## License
135+
136+
MIT. See `LICENSE` for more details.
137+
138+
## Version
139+
140+
**Current version is 0.0.1** and still development.

0 commit comments

Comments
 (0)