You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h3align="center">Make URL path combinations using a wordlist</h3>
4
3
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
+

8
5
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
9
29
```
10
-
Usage of mkpath:
11
30
-d string
12
31
Input domain
13
32
-df string
14
33
Input domain file, one domain per line
15
34
-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)
17
38
-o string
18
39
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)
19
44
-r string
20
45
Regex to filter words from wordlist file
21
46
-w string
22
47
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*
32
48
```
33
49
34
50
### Example
35
-
36
51
##### wordlist.txt
37
52
```
38
53
dev
39
54
prod/
40
55
admin.py
41
56
app/login.html
42
-
43
57
```
58
+
44
59
```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
46
61
example.com/dev
47
62
example.com/prod
48
63
example.com/dev/dev
@@ -63,3 +78,11 @@ example.com/prod/prod/admin.py
63
78
example.com/prod/prod/app/login.html
64
79
65
80
```
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!
0 commit comments