Jump to content
Sign in to follow this  
Syntaxe

Wordlist generator

Recommended Posts

Syntaxe

Hello!

I've known autoit for a time now, and thought of trying to make a wordlist generator.

What it currently does is making a wordlist-(next number).txt and opens it.

I don't know alot about loops, so I need some help making the writing loop part.

#Include <File.au3>
Global $sFile = "0"
Global $charset = StringSplit("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,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,1,2,3,4,5,6,7,8,9,0", ",")
Global $length = "6"

createfile()
writefile()

Func writefile()
    $file = FileOpen($sFilename, 1)
EndFunc

Func createfile()
    If(FileExists("wordlist-" & $sFile & ".txt")) Then
            $sFile = $sFile + "1"
            createfile()
        Else
            _FileCreate("wordlist-" & $sFile & ".txt")
    EndIf
    Global $sFilename = "wordlist-" & $sFile & ".txt"
EndFunc

Share this post


Link to post
Share on other sites
qazwsx

well a wordlist would contain words. Autoit is not going to be able to do that alone. You would have to get the words off of the internet.

Share this post


Link to post
Share on other sites
APPLEEATER

well a wordlist would contain words. Autoit is not going to be able to do that alone. You would have to get the words off of the internet.

To me this looks like a Brute Force password cracker or something...

i tried making something close to this before...

and it was actually very tricky...

you will have to use While or Do statements

I don't have time to write an example right now tho sry :/

Share this post


Link to post
Share on other sites
Syntaxe

@gazwsx: Not exactly words. But it should generate "words" with the chars and numbers passed into the script.

@APPLEEATERL: I do agree, it could be a part of a cracker. But you should notice that its only generating words, not cracking anything.

But this code is for learning purpose only, since I want to work as a penetration tester later in my life.

Just because it can be used illegal, doesn't mean its going to.


Share this post


Link to post
Share on other sites
Syntaxe

Your code is much appreciated, but I need some more to go on, please ;)


Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×