1
1
# pnk
2
- Produce a combination of subdomains - generates permutations P(n,k).
2
+ Produce a new combination of subdomains - generates permutations P(n,k).
3
3
4
4
## Make it work
5
5
- [x] swap subs themselves: web.test.domain.com -> test.web.domain.com
@@ -10,16 +10,18 @@ Produce a combination of subdomains - generates permutations P(n,k).
10
10
2 . ` stdout ` : supports standard output.
11
11
3 . Works with the next arguments:
12
12
```
13
- usage: pnk.py [-h] [-i] [-w WORDLIST ] [FILE ...]
13
+ usage: pnk.py [-h] [-i | -c ] [-v ] [FILE ...]
14
14
15
- Set CLI args pnk works with
15
+ Generates a new subdomains on provided input
16
16
17
17
positional arguments:
18
- FILE list of subdomains/hosts to process
18
+ FILE list of subdomains/hosts to process
19
19
20
20
optional arguments:
21
- -h, --help show this help message and exit
22
- -i, --increment additionally increment digits on subdomains
21
+ -h, --help show this help message and exit
22
+ -i, --increment increment any one or two digits on subdomains
23
+ -c, --cartesian increment digits on subdomains creating Cartesian product
24
+ -v, --version show program's version number and exit
23
25
```
24
26
``` bash
25
27
$ cat subs1.txt subs2.txt | pnk
@@ -79,7 +81,11 @@ $ pnk < list.txt | massdns
79
81
```
80
82
3 . Possible out of memory issues when redirecting ` stdout ` to a file, please read the [ Wiki] ( https://github.com/storenth/pnk/wiki )
81
83
## TODO
82
- 1 . Combinations of incrementations (cartesian product):
84
+ 1 . Combinations of incrementations (cartesian product of all digits found in each sub ):
83
85
```
84
86
5io5.33.ya.ru -> 0io0.00.ya.ru .. 9io9.99.ya.ru
85
87
```
88
+ How it works now:
89
+ ```
90
+ 5io5.33.ya.ru -> 0io5.00.ya.ru .. 9io5.99.ya.ru .. 5io0.00.ya.ru .. 5io9.99.ya.ru
91
+ ```
0 commit comments