Skip to content

Commit

Permalink
Prep v1.0.0
Browse files Browse the repository at this point in the history
- Fix dwisiswant0#1
- Update action workflows
  • Loading branch information
dwisiswant0 committed Mar 12, 2021
1 parent 5d7e44b commit c2460b4
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 79 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/build.yml

This file was deleted.

21 changes: 8 additions & 13 deletions .github/workflows/release.yml → .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,23 @@ on:

jobs:
release:
name: "Release binary"
runs-on: ubuntu-latest
steps:
-
name: "Check out code"
- name: "Check out code"
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: "Set up Go"

- name: "Set up Go"
uses: actions/setup-go@v2
with:
go-version: 1.14
-
name: "Dependencies"
run: |
go get github.com/fatih/color
go get github.com/projectdiscovery/gologger
-
go-version: 1.15

- name: "Create release on GitHub"
uses: goreleaser/goreleaser-action@v2
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
name: "Create release on GitHub"
uses: goreleaser/goreleaser-action@v2
with:
args: "release --rm-dist"
version: latest
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
go-dork
16 changes: 16 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
builds:
- binary: go-dork
main: .
goos:
- linux
- windows
- darwin
goarch:
- amd64
- 386
- arm
- arm64

archives:
- id: binary
format: binary
21 changes: 0 additions & 21 deletions .goreleaser.yml

This file was deleted.

28 changes: 12 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

The fastest dork scanner written in Go.

<img src="https://user-images.githubusercontent.com/25837540/87547986-153f6a80-c6d6-11ea-92ef-bdc23d60f79e.png" height="350" width="566">
<img src="https://user-images.githubusercontent.com/25837540/111008561-f22f9c80-83c3-11eb-8500-fb63456a4614.png" height="350">

There are also various search engines supported by go-dork, including Google, Shodan, Bing, Duck, Yahoo and Ask.

Expand All @@ -16,8 +16,8 @@ There are also various search engines supported by go-dork, including Google, Sh
- [Querying](#querying)
- [Defining engine](#defining-engine)
- [Pagination](#pagination)
- [Adding headers](#adding-headers)
- [Using Proxy](#using-proxy)
- [Adding custom headers](#adding-headers)
- [Using proxy](#using-proxy)
- [Chained with other tools](#chained-with-other-tools)
- [Help & Bugs](#help--bugs)
- [TODOs](#todos)
Expand All @@ -27,17 +27,17 @@ There are also various search engines supported by go-dork, including Google, Sh
## Install

- [Download](https://github.com/dwisiswant0/go-dork/releases) a prebuilt binary from releases page, unpack and run! or
- If you have go compiler installed and configured:
- If you have [Go 1.15+](https://golang.org/dl/) compiler installed and configured:

```bash
> GO111MODULE=on go get -v github.com/dwisiswant0/go-dork/...
> GO111MODULE=on go get -v -u dw1.io/go-dork
```

## Usage

### Basic Usage

Simply, go-dork can be run with:
It's fairly simple, go-dork can be run with:

```bash
> go-dork -q "inurl:'...'"
Expand All @@ -60,7 +60,6 @@ This will display help for the tool. Here are all the switches it supports.
| -H/--header | Pass custom header to search engine |
| -x/--proxy | Use proxy to surfing |
| -s/--silent | Silent mode, prints only results in output |
| -nc/--no-color | Disable colored output results |

### Querying

Expand All @@ -87,15 +86,15 @@ This will do a search by the Bing engine.

### Pagination

By default, go-dork selects the first page, you can customize using the `-p` flag.
By default, go-dork scrapes the first page, you can customize using the `-p` flag.

```bash
> go-dork -q "intext:'jira'" -p 5
```

It will search sequentially from pages 1 to 5.

### Adding Headers
### Adding custom headers

Maybe you want to use a search filter on the Shodan engine, you can use custom headers to add cookies or other header parts.

Expand All @@ -104,7 +103,7 @@ Maybe you want to use a search filter on the Shodan engine, you can use custom h
--engine shodan -H "Cookie: ..." -H "User-Agent: ..."
```

### Using Proxy
### Using proxy

Using a proxy, this can also be useful if Google or other engines meet Captcha.

Expand All @@ -117,6 +116,7 @@ Using a proxy, this can also be useful if Google or other engines meet Captcha.
If you want to chain the `go-dork` results with another tool, use the `-s` flag.

```bash
> cat dorks.txt | go-dork | pwntools
> go-dork -q "inurl:'/secure' intext:'jira' site:org" -s | nuclei -t workflows/jira-exploitaiton-workflow.yaml
```

Expand All @@ -128,13 +128,9 @@ If you are still confused or found a bug, please [open the issue](https://github

- [ ] Fixes Yahoo regexes
- [ ] Fixes Google regexes if using custom User-Agent
- [ ] Stopping if there's no results & page flag was set
- [x] Stopping if there's no results & page flag was set
- [ ] DuckDuckGo next page

## License

MIT. See `LICENSE` for more details.

## Version

**Current version is 0.0.1** and still development.
MIT. See `LICENSE` for more details.
Binary file removed go-dork
Binary file not shown.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func init() {
" (options: Google, Shodan, Bing, Duck, Yahoo, Ask)",
" -p, --page <i> Specify number of pages (default: 1)",
" -H, --header <header> Pass custom header to search engine",
" -x, --proxy <proxy_url> Use proxy to surfing",
" -x, --proxy <proxy_url> Use proxy to surfing (HTTP/SOCKSv5 proxy)",
" -s, --silent Silent mode",
"\n",
}
Expand Down

0 comments on commit c2460b4

Please sign in to comment.