Government Security
Network Security Resources

Jump to content

Photo

Random Char Wordlist

- - - - - programming tools
  • Please log in to reply
10 replies to this topic

#1 It sme

It sme

    Private

  • Members
  • 4 posts

Posted 12 April 2010 - 09:25 AM

Hello GS, im new here and a complete n00b at programming...

However, i need to generate a wordlist, every "password" should be 8 chars long.

And every password should be on its own line
like this:

dhfjrksl
jghftrbw
fjrhstd

It should only be lowercase and from a-z
Also it should be dumped to a .txt file

Any pointers on where to start?
Or tools to use?

Best regards
It smeeeee

#2 Juza

Juza

    Specialist

  • Sergeant Major
  • 149 posts

Posted 12 April 2010 - 09:44 AM

Isn't random, but it could solve your problem. Here!
Go to iamjuza.blogspot.com
Follow me twitter.com/iamjuza

The true beginning of our end.


#3 It sme

It sme

    Private

  • Members
  • 4 posts

Posted 12 April 2010 - 10:07 AM

Isn't random, but it could solve your problem. Here!


Ty for the script, its very nice...
However it must be random, or it will take years...

#4 Juza

Juza

    Specialist

  • Sergeant Major
  • 149 posts

Posted 12 April 2010 - 11:06 AM

What is the lenght that you want?
What are the chars?
How many you want?
Go to iamjuza.blogspot.com
Follow me twitter.com/iamjuza

The true beginning of our end.


#5 webdevil

webdevil

    Retired GSO General

  • Sergeant Major
  • 1,195 posts

Posted 12 April 2010 - 11:35 AM

Learn a scripting language (and google). It comes in handy.
Takes a couple of minutes in python.


import string
import random

FILE = open("test.txt","a")
i = 0
while i <= 1000:
	i+=1
	d = [random.choice(string.letters) for x in xrange(8)]
	s = "".join(d)
	writing= s.lower()+"\n"
	FILE.write(writing)
FILE.close()


#6 Juza

Juza

    Specialist

  • Sergeant Major
  • 149 posts

Posted 12 April 2010 - 11:42 AM

Nice anticipation webdevil! Posted Image
Go to iamjuza.blogspot.com
Follow me twitter.com/iamjuza

The true beginning of our end.


#7 webdevil

webdevil

    Retired GSO General

  • Sergeant Major
  • 1,195 posts

Posted 12 April 2010 - 09:34 PM

every "password" should be 8 chars long.
And every password should be on its own line
It should only be lowercase and from a-z
Also it should be dumped to a .txt file


that's what he asked for

#8 It sme

It sme

    Private

  • Members
  • 4 posts

Posted 13 April 2010 - 11:42 AM

ty webdevil
ill try to play arround with the script

#9 It sme

It sme

    Private

  • Members
  • 4 posts

Posted 13 April 2010 - 11:51 AM

Thank you sooo much webdevil...
It works perfectly...
I should look deeper into python, i see now....
U are my king....

#10 infiltrator

infiltrator

    Staff Sergeant

  • Sergeant Major
  • 421 posts

Posted 28 April 2010 - 01:25 AM

Learn a scripting language (and google). It comes in handy.
Takes a couple of minutes in python.


import string
import random

FILE = open("test.txt","a")
i = 0
while i <= 1000:
	i+=1
	d = [random.choice(string.letters) for x in xrange(8)]
	s = "".join(d)
	writing= s.lower()+"\n"
	FILE.write(writing)
FILE.close()



Interesting, I could write the same piece of code in PHP but this time generating aphanumeric passwords.
But like you snippet of code really handy. Great work.

#11 xharbix

xharbix

    Private

  • Members
  • 2 posts

Posted 22 November 2011 - 11:42 PM

thank you so much





Also tagged with one or more of these keywords: programming, tools