1
1
Fork 0
mirror of https://github.com/OJ/gobuster.git synced 2024-06-02 06:36:03 +02:00
gobuster/README.md

125 lines
3.9 KiB
Markdown
Raw Normal View History

Gobuster v0.3 (OJ Reeves @TheColonial)
2015-02-01 12:51:58 +01:00
======================================
Alternative directory and file busting tool written in Go. DNS support recently added after inspiration and effort from [Peleus](https://twitter.com/0x42424242).
2015-02-01 12:51:58 +01:00
### Oh dear God.. WHY!?
Because I wanted:
1. ... something that didn't have a fat Java GUI (console FTW).
1. ... to build something that just worked on the command line.
1. ... something that did not do recursive brute force.
2015-02-04 21:56:16 +01:00
1. ... something that allowed me to brute force folders and multiple extensions at once.
2015-02-01 12:51:58 +01:00
1. ... something that compiled to native on multiple platforms.
1. ... something that was faster than an interpreted script (such as Python).
1. ... something that didn't require a runtime.
1. ... use something that was good with concurrency (hence Go).
1. ... to build something in Go that wasn't totally useless.
### But it's shit! And your implementation sucks!
Yes, you're probably correct. Feel free to :
* Not use it.
* Show me how to do it better.
### Common Command line options
2015-02-01 12:51:58 +01:00
* `-u <url/domain>`- full URL (including scheme), or base domain name.
* `-t <threads>` - number of threads to run (default: `10`).
* `-w <wordlist>` - path to the wordlist used for brute forcing.
### Command line options for 'dir' mode
* `-c <http cookies>` - use this to specify any cookies that you might need (simulating auth).
* `-f <true|false>` - set to `true` if you want to append `/` for directory brute forces.
* `-s <status codes>` - comma-separated set of the list of status codes to be deemed a "positive" (default: `200,204,301,302,307`).
* `-v <true|false>` - verbose output (show error codes).
* `-x <extensions>` - list of extensions to check for, if any.
2015-02-01 12:51:58 +01:00
### Examples
#### 'dir' mode
2015-02-01 12:54:15 +01:00
Command line might look like this:
2015-02-01 12:51:58 +01:00
```
$ ./gobuster -u https://mysite.com/path/to/folder -c 'session=123456' -t 50 -w common-files.txt -x .php,.html
2015-02-01 12:51:58 +01:00
```
2015-02-01 12:54:15 +01:00
Sample run goes like this:
```
$ ./gobuster -w words.txt -u http://buffered.io/ -x .html -v true
=====================================================
Gobuster v0.3 (DIR support by OJ Reeves @TheColonial)
(DNS support by Peleus @0x42424242)
=====================================================
2015-05-15 10:10:21 +02:00
[+] Mode : dir
[+] Url/Domain : http://buffered.io/
2015-02-01 12:54:15 +01:00
[+] Threads : 10
[+] Wordlist : words.txt
[+] Status codes : 200,204,301,302,307
2015-02-01 12:54:15 +01:00
[+] Extensions : .html
[+] Dislpay all : true
=====================================================
Result: /download (404)
Result: /2006 (404)
Result: /news (404)
2015-02-01 12:54:15 +01:00
Found: /index (200)
Result: /crack (404)
Result: /warez (404)
Result: /serial (404)
Result: /full (404)
Result: /download.html (404)
Result: /images (404)
Result: /news.html (404)
Result: /2006.html (404)
Result: /crack.html (404)
Result: /warez.html (404)
2015-02-01 12:54:15 +01:00
Found: /index.html (200)
```
#### 'dns' mode
Command line might look like this:
```
$ ./gobuster -m dns -u mysite.com -t 50 -w common-names.txt
```
Sample run goes like this:
```
$ ./gobuster -m dns -w subdomains.txt -u google.com
=====================================================
Gobuster v0.3 (DIR support by OJ Reeves @TheColonial)
(DNS support by Peleus @0x42424242)
=====================================================
2015-05-15 10:10:21 +02:00
[+] Mode : dns
[+] Url/Domain : google.com
[+] Threads : 10
[+] Wordlist : subdomains.txt
=====================================================
Found: www.google.com
Found: chrome.google.com
Found: m.google.com
Found: admin.google.com
Found: mobile.google.com
Found: search.google.com
Found: ns1.google.com
Found: store.google.com
Found: directory.google.com
Found: cse.google.com
Found: wap.google.com
Found: support.google.com
Found: music.google.com
Found: translate.google.com
Found: news.google.com
Found: local.google.com
Found: mail.google.com
Found: blog.google.com
=====================================================
2015-02-01 12:54:15 +01:00
```
2015-02-01 12:51:58 +01:00
### License
See the LICENSE file.