glitchedgitz / cook

A wordlist framework to fullfill your kinks with your wordlists. For security researchers, bug bounty and hackers.
https://twitter.com/glitchedgitz
MIT License
1.01k stars 104 forks source link

Ranges are not working #29

Closed noraj closed 2 years ago

noraj commented 2 years ago

Pre-defined sets are working but not ranges:

$ cook a-f0-9 -config-path /usr/share/cook/cook.yaml 
a-f0-9

$ cook 10-20 -config-path /usr/share/cook/cook.yaml
10-20

$ cook a-z -config-path /usr/share/cook/cook.yaml
a-z

$ cook a -config-path /usr/share/cook/cook.yaml 
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
glitchedgitz commented 2 years ago

@noraj Try cook 2.0

noraj commented 2 years ago

@noraj Try cook 2.0

Yes, while troubleshooting I think I may have found wy BA package is still targeting 1.6 and not 2.0 even if we build from source (git) using the latest commit (217). I'll open a discussion for that. See https://github.com/giteshnxtlvl/cook/issues/31

glitchedgitz commented 2 years ago

Yes as you described in this issue #30. So I will let that keep active and close this one.

noraj commented 2 years ago

in 2.0

image

So how to do a-f0-9 or a-n0-5 ? (I mean outside of using a defined charset like https://github.com/giteshnxtlvl/cook-ingredients/pull/2).

glitchedgitz commented 2 years ago

Depending on your needs, Use cook 0-9 a-b or cook 0-9,a-b

Logic Separated by comma -> Same column Separated by space -> Different columns

noraj commented 2 years ago

Thank you

noraj commented 2 years ago

If I want to generate a list from 000000 to 999999 (integers from 0 to 1M-1 with 6 digits padding).

I can do

cook 0-9 0-9 0-9 0-9 0-9 0-9

I was expecting to be able to use a repeat operator but it doesn't expand the range:

$ cook 0-9\*6
0-90-90-90-90-90-9
$ cook '0-9*6'
0-90-90-90-90-90-9

Or maybe pad the min number of the range to indicate the padding required:

cook 000000-999999
glitchedgitz commented 2 years ago

Yeah, the last one is the easiest. Using ranges with repeat operators doesn't seem to have other use cases.