Topic: "how do you build your own bruteforcer?" (page 1 of 1)

1
Author Post
litl13
[none yet]
how would you build a bruteforcer?
private message EMail
DigitalAcid
groupmastergroupmastergroupmaster
You program one :devil3:
private message EMail
aceldama
groupmastergroupmastergroupmastergroupmaster
lol. yes, in a language of your own choice ;)
private message
unknown user
QuoteQuote from aceldama:
lol. yes, in a language of your own choice ;)


wrong.
EMail
Bander
groupmastergroupmaster
QuoteQuote:
how do you build your own bruteforcer?

I will tell you if you send me $100
private message EMail
aceldama
groupmastergroupmastergroupmastergroupmaster
@rhican: so, tell me. how would you program a bruteforcer - whether it be web, hash etc - if you don't use a programming language? (your own choice being a set of working options - note how i didn't say your preferred or favourite language)
private message
snakey
[none yet]
C++
private message EMail
Towley
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
Here is some java code, that iterates all possible combinations of a given characterset with a given length range.

QuoteQuote from CodeSnippets:


public static void bruteforce(byte[] charset, int passmin, int passmax) {

// This stores integers that map the charset
int[] pass = new int[passmax];
// This stores the current password.
byte[] password = new byte[passmax];
// Number of characters in charset
int charsetLength = charset.length;

for (int passlen = passmin; passlen <= passmax; passlen++) {

while (true) { // You could use while(passwordNotFound) here

// build pass from character set
for (int i = 0; i < passlen; i++)
password = charset[pass];

// Now do some calculations
System.out.println(new String(password, 0, passlen));

// increase password combination
int permut;
for (permut = 0; permut < passlen; permut++) {

pass[permut]++;

if (pass[permut] < charsetLength)
break;

pass[permut] = 0;

}

// all combinations are done ?
if (permut == passlen)
break; // so try a longer password

} // end while(true)

} // end for (lengths)

System.out.println("All done, move along");

}


private message Website
theAnswer
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
http://bright-shadows.net/forum/forum_showtopic.php?topicid=2498
private message
occasus
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
Hi litl13,
quangntenemy is one of my favourite personalities aroun'the net and he started very nice projects starting from his website. If you want a demonstration in Java for example of a bruteforcer you can read his blogpost at http://qtjava.blogspot.com/2007/11/bf-it.html.

Regards
Edited by occasus on 16.01.2008 22:32:43
private message Website

Topic: "how do you build your own bruteforcer?" (page 1 of 1)

1