Author Topic: How to generate Number Dictionary File in Command Promt  (Read 886 times)

0 Members and 4 Guests are viewing this topic.

Offline Houzi

  • NULL
  • Posts: 1
  • Cookies: 0
    • View Profile
How to generate Number Dictionary File in Command Promt
« on: 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!

Offline kenjoe41

  • Symphorophiliac Programmer
  • Administrator
  • Baron
  • *
  • Posts: 990
  • Cookies: 224
    • View Profile
Re: How to generate Number Dictionary File in Command Promt
« Reply #1 on: February 02, 2015, 11:00:47 am »
Since you don't care if the number is random, we shall do this sequentially.
Code: (bash) [Select]
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.
Code: (bash) [Select]
for i in {0..99999999}; do echo $i; done > numbers.txt
If you can't explain it to a 6 year old, you don't understand it yourself.
http://upload.alpha.evilzone.org/index.php?page=img&img=GwkGGneGR7Pl222zVGmNTjerkhkYNGtBuiYXkpyNv4ScOAWQu0-Y8[<NgGw/hsq]>EvbQrOrousk[/img]

Offline Pavornoc

  • /dev/null
  • *
  • Posts: 11
  • Cookies: -1
    • View Profile
Re: How to generate Number Dictionary File in Command Promt
« Reply #2 on: 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/

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

Code: [Select]
crunch 0 10 1234567890 > *filename*.txt
Syntax:
Code: [Select]
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!

Offline HTH

  • Official EZ Slut
  • Administrator
  • Knight
  • *
  • Posts: 395
  • Cookies: 158
  • EZ Titan
    • View Profile
Re: How to generate Number Dictionary File in Command Promt
« Reply #3 on: 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.
<ande> HTH is love, HTH is life
<TurboBorland> hth is the only person on this server I can say would successfully spitefuck peoples women