Skip to content

Commit ac8a825

Browse files
committed
Update README.md
1 parent 4fef4e8 commit ac8a825

File tree

3 files changed

+43
-20
lines changed

3 files changed

+43
-20
lines changed

README.md

Lines changed: 43 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,63 @@
1-
mkpath
2-
------
3-
Make paths using a wordlist
1+
<h1 align="center">mkpath <a href="https://twitter.com/intent/tweet?text=mkpath%20-%20Make%20URL%20path%20combinations%20using%20a%20wordlist%20https%3A%2F%2Fgithub.com%2Ftrickest%2Fmkpath&hashtags=bugbounty,bugbountytips,infosec"><img src="https://img.shields.io/badge/Tweet--lightgrey?logo=twitter&style=social" alt="Tweet" height="20"/></a></h1>
2+
<h3 align="center">Make URL path combinations using a wordlist</h3>
43

5-
Read a wordlist file and generate paths for given domain or list of domains.
6-
Input from wordlist file is lowercased and unique words are processed. Additionally, wordlist can be
7-
filtered using regex.
4+
![mkpath](mkpath.png "mkpath")
85

6+
Read a wordlist file and generate path combinations for given domain or list of domains. Input from wordlist file is lowercased and unique words are processed. Additionally, wordlist can be filtered using regex.
7+
8+
When you use mkpath's `-l` parameter, it will generate all path combinations up to the specified level, including all lower levels, using words from the wordlist. For instance, with `-l 2`, it will generate `len(permutation_list)^2 + len(permutation_list)` results, which is:
9+
- 30 combinations for a 5-word wordlist.
10+
- 10100 combinations for a 100-word wordlist.
11+
- 250500 combinations for a 500-word wordlist.
12+
13+
14+
# Installation
15+
## Binary
16+
Binaries are available in the [latest release](https://github.com/trickest/mkpath/releases/latest).
17+
18+
## Docker
19+
```
20+
docker run quay.io/trickest/mkpath
21+
```
22+
23+
## From source
24+
```
25+
go install github.com/trickest/mkpath@latest
26+
```
27+
28+
# Usage
929
```
10-
Usage of mkpath:
1130
-d string
1231
Input domain
1332
-df string
1433
Input domain file, one domain per line
1534
-l int
16-
Path depth to generate (default 1)
35+
URL path depth to generate (default 1) (default 1)
36+
-lower
37+
Convert wordlist file content to lowercase (default false)
1738
-o string
1839
Output file (optional)
40+
-only-dirs
41+
Generate directories only, files are filtered out (default false)
42+
-only-files
43+
Generate files only, file names are appended to given domains (default false)
1944
-r string
2045
Regex to filter words from wordlist file
2146
-w string
2247
Wordlist file
23-
-lower
24-
Convert wordlist file content to lowercase (default false)
25-
-only-dirs
26-
Generate directories only, files are filtered out (default false)
27-
-only-files
28-
Generate files only, file names are appended to given domains (default false)
29-
30-
*If both only-dirs and only-files are set to true or false, the output will be complete,
31-
meaning all possible directory paths will be generated, as well as those paths with all file names appended*
3248
```
3349

3450
### Example
35-
3651
##### wordlist.txt
3752
```
3853
dev
3954
prod/
4055
admin.py
4156
app/login.html
42-
4357
```
58+
4459
```shell script
45-
> go run mkpath.go -d example.com -l 2 -w wordlist.txt
60+
$ mkpath -d example.com -l 2 -w wordlist.txt
4661
example.com/dev
4762
example.com/prod
4863
example.com/dev/dev
@@ -63,3 +78,11 @@ example.com/prod/prod/admin.py
6378
example.com/prod/prod/app/login.html
6479

6580
```
81+
82+
## Report Bugs / Feedback
83+
We look forward to any feedback you want to share with us or if you're stuck with a problem you can contact us at [[email protected]](mailto:[email protected]). You can also create an [Issue](https://github.com/trickest/mkpath/issues/new) or pull request on the Github repository.
84+
85+
# Where does this fit in your methodology?
86+
Mkpath is an integral part of many workflows in the Trickest store. Sign up on [trickest.com](https://trickest.com) to get access to these workflows or build your own from scratch!
87+
88+
[<img src="./banner.png" />](https://trickest-access.paperform.co/)

banner.png

2.3 MB
Loading

mkpath.png

846 KB
Loading

0 commit comments

Comments
 (0)