12-07-2017, 10:00 AM
(12-05-2017, 01:57 PM)philsmd Wrote: Yeah, that's true my example was targeted for linux/mac users that use a bash-compatible shell.
That said, you can extend the idea to any other environment or tool (yes you could also do it all with awk etc).
An example using powershell (this can be run on windows with powershell installed) for instance would look something like this:
Code:for ($i = 1722; $i -lt 2018; $i++) { echo $i | %{$_ -replace '(.)','$$$1 '} }
and as unix-ninja already pointed out you could do the same also with hashcat-utils' maskprocessor (mp64.exe for instance) or even with hashcat's --stdout mode
It's just a little bit more complicated to limit to only the numbers/years you want with mp/--stdout because they do not use directly a counter like the i variable above
I do believe your code is effective and elegant,but newbies like me cannot understand easyily.
So I did like this
aaaaa
abcde
admin
anywn
apple
Xaaaaa
Xabcde
Xadmin
Xanywn
Xapple
XaXaaaa
XaXbcde
XaXdmin
XaXnywn
XaXpple
XaXaXaaa
XaXbXcde
XaXdXmin
XaXnXywn
XaXpXple
XaXaXaXaa
XaXbXcXde
XaXdXmXin
XaXnXyXwn
XaXpXpXle
XaXaXaXaXa
XaXbXcXdXe
XaXdXmXiXn
XaXnXyXwXn
XaXpXpXlXe
Xa XaXaXaXa
Xa XbXcXdXe
Xa XdXmXiXn
Xa XnXyXwXn
Xa XpXpXlXe
Xa Xa XaXaXa
Xa Xb XcXdXe
Xa Xd XmXiXn
Xa Xn XyXwXn
Xa Xp XpXlXe
Xa Xa Xa XaXa
Xa Xb Xc XdXe
Xa Xd Xm XiXn
Xa Xn Xy XwXn
Xa Xp Xp XlXe
Xa Xa Xa Xa Xa
Xa Xb Xc Xd Xe
Xa Xd Xm Xi Xn
Xa Xn Xy Xw Xn
Xa Xp Xp Xl Xe
finally to this step ,notepad it and replace all X
^a ^a ^a ^a ^a
^a ^b ^c ^d ^e
^a ^d ^m ^i ^n
^a ^n ^y ^w ^n
^a ^p ^p ^l ^e
HERE is my not so smart way
half automatic and half by hand
yourname@yourmachine /cygdrive/c/a
$ sed 's/^/&X/' test5.txt >newtest5.txt
yourname@yourmachine /cygdrive/c/a
$ sed 's/^../&X/' test5.txt >newtest5.txt
yourname@yourmachine /cygdrive/c/a
$ sed 's/^..../&X/' test5.txt >newtest5.txt
yourname@yourmachine /cygdrive/c/a
$ sed 's/^....../&X/' test5.txt >newtest5.txt
yourname@yourmachine /cygdrive/c/a
$ sed 's/^......../&X/' test5.txt >newtest5.txt
yourname@yourmachine /cygdrive/c/a
$ sed 's/^../& /' test5.txt >newtest5.txt
yourname@yourmachine /cygdrive/c/a
$ sed 's/^...../& /' test5.txt >newtest5.txt
yourname@yourmachine /cygdrive/c/a
$ sed 's/^......../& /' test5.txt >newtest5.txt
yourname@yourmachine /cygdrive/c/a
$ sed 's/^.........../& /' test5.txt >newtest5.txt
as I describe my painful 30+ hours as follows:
https://hashcat.net/forum/thread-7074.html