EvilZone

Hacking and Security => Hacking and Security => : Houzi February 02, 2015, 10:28:03 AM

: How to generate Number Dictionary File in Command Promt
: Houzi February 02, 2015, 10:28:03 AM
I used to make files from whatever number I wanted on my old macbook in Terminal. I was wondering if I could make a .txt file with numbers ranging from 0 - 9999999 ? or numbers 8888888 - 9999999 ? I used to be able to type in a code of text and then it would spit out a .txt file with all the generated numbers. I would love to know how to do this.


thanks a million!
: Re: How to generate Number Dictionary File in Command Promt
: kenjoe41 February 02, 2015, 11:00:47 AM
Since you don't care if the number is random, we shall do this sequentially.
: (bash)
seq 0 9999999 > numbers.txtI don't know about macs so probably you don't have seq on their so lets use a for loop.
: (bash)
for i in {0..99999999}; do echo $i; done > numbers.txt
: Re: How to generate Number Dictionary File in Command Promt
: Pavornoc February 08, 2015, 08:18:33 AM
There's actually a really handy tool called Crunch (which is built in to Kali), that can help generate wordlists.  If you're just looking for numbers, it can do that too. 

http://sourceforge.net/projects/crunch-wordlist/  (http://sourceforge.net/projects/crunch-wordlist/)

Once you download it, the command for what you're looking to do would be along the lines of:

:
crunch 0 10 1234567890 > *filename*.txt
Syntax:
:
crunch min max (options)
Please be aware! This will create a VERY large text file! I ran this as a test to make sure I got the syntax right for about 5 seconds and it already created a 18MB file of just text.

Hope this helps!
: Re: How to generate Number Dictionary File in Command Promt
: HTH February 08, 2015, 10:10:15 AM
you can roughly estimate a wordlist of that type and size by simply multiplying the highest number by the amount of characters in it.

so for 99999999 you would say its 99999999 * 8 bytes, which will get you in the +-10% range. This is because only 10% of the wordlist has less than 8 chars and the newlines fill in a fair bit of the gap :)

anywho. Youre looking at about a 900 mb file.