Need help making a BruteForce programme

General technological topics without their own forum go here

Need help making a BruteForce programme

Post by DrRoach on Sat Feb 23, 2013 12:55 pm
([msg=74011]see Need help making a BruteForce programme[/msg])

Hey guys I've decided to make a brute force programme as a project to test my skills but I have no idea where to start. I just wanted to ask what language I should use. Thanks
DrRoach
Poster
Poster
 
Posts: 151
Joined: Fri Feb 22, 2013 6:53 pm
Blog: View Blog (0)


Re: Need help making a BruteForce programme

Post by centip3de on Sat Feb 23, 2013 2:55 pm
([msg=74018]see Re: Need help making a BruteForce programme[/msg])

DrRoach wrote:Hey guys I've decided to make a brute force programme as a project to test my skills but I have no idea where to start. I just wanted to ask what language I should use. Thanks


Which ever language you prefer.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rick Cook
User avatar
centip3de
Moderator
Moderator
 
Posts: 1410
Joined: Fri Aug 20, 2010 5:46 pm
Blog: View Blog (0)


Re: Need help making a BruteForce programme

Post by KthProg on Sat Feb 23, 2013 5:25 pm
([msg=74023]see Re: Need help making a BruteForce programme[/msg])

Are you trying to brute force with a dictionary or combinations?
User avatar
KthProg
Poster
Poster
 
Posts: 219
Joined: Wed Jan 23, 2013 7:06 pm
Blog: View Blog (0)


Re: Need help making a BruteForce programme

Post by DrRoach on Sat Feb 23, 2013 5:38 pm
([msg=74025]see Re: Need help making a BruteForce programme[/msg])

centip3de wrote:Which ever language you prefer.


Ok thanks I didn't realise that you could use any language.

KthProg wrote:Are you trying to brute force with a dictionary or combinations?


I'm going to try and use combinations but would you reccomend otherwise?
DrRoach
Poster
Poster
 
Posts: 151
Joined: Fri Feb 22, 2013 6:53 pm
Blog: View Blog (0)


Re: Need help making a BruteForce programme

Post by KthProg on Sat Feb 23, 2013 5:44 pm
([msg=74028]see Re: Need help making a BruteForce programme[/msg])

Yeah it's really impractical to attempt brute forcing with combinations, because of the number of possible combinations.

I would use Ruby for combinations though, because you can use ranges like this [aaa...zzz] and it will test each combination 'between' them. i.e. aaa,aab,aac, etc.

But if you use something like this, find a compiler for it, because Ruby is normally interpreted and compiled programs are faster.

If you're trying to brute force an application, it could be slightly more practical to use combinations, since there's no lag.

There may be better ways to do this that other members here know too.
What they've usually told me though is to find a good dictionary list and try that first.

side note:
in most other languages, you have to create an array of letters and symbols and then use a bunch of nested for loops to iterate through each combination.
User avatar
KthProg
Poster
Poster
 
Posts: 219
Joined: Wed Jan 23, 2013 7:06 pm
Blog: View Blog (0)


Re: Need help making a BruteForce programme

Post by DrRoach on Sun Feb 24, 2013 3:21 am
([msg=74068]see Re: Need help making a BruteForce programme[/msg])

KthProg wrote:Yeah it's really impractical to attempt brute forcing with combinations, because of the number of possible combinations.

I would use Ruby for combinations though, because you can use ranges like this [aaa...zzz] and it will test each combination 'between' them. i.e. aaa,aab,aac, etc.



Thanks for the advice I decided to download a 10k most used passwords list from http://xato.net/passwords/more-top-worst-passwords/ to see if I can get the programme running and I'm going to try making it in ryby first but if I fail with that I'm going to try pyton.

Thanks to everyone who replied with advice
DrRoach
Poster
Poster
 
Posts: 151
Joined: Fri Feb 22, 2013 6:53 pm
Blog: View Blog (0)


Re: Need help making a BruteForce programme

Post by KthProg on Sun Feb 24, 2013 4:09 am
([msg=74069]see Re: Need help making a BruteForce programme[/msg])

cool, let me know how it goes.
User avatar
KthProg
Poster
Poster
 
Posts: 219
Joined: Wed Jan 23, 2013 7:06 pm
Blog: View Blog (0)


Re: Need help making a BruteForce programme

Post by DrRoach on Sun Feb 24, 2013 6:29 am
([msg=74072]see Re: Need help making a BruteForce programme[/msg])

Will do

-- Sun Feb 24, 2013 4:10 pm --

I'm having trouble getting the array for the character input working. I am writing it in C and when I try and compile it says "error expected expression before { token"

Please can someone show me where I'm going wrong? Here's the code that has the error (it's in the second line) :

char alphabet_array[26];
alphabet_array={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};
for(k=0; k<10; k++)

Thanks
DrRoach
Poster
Poster
 
Posts: 151
Joined: Fri Feb 22, 2013 6:53 pm
Blog: View Blog (0)


Re: Need help making a BruteForce programme

Post by centip3de on Sun Feb 24, 2013 6:19 pm
([msg=74097]see Re: Need help making a BruteForce programme[/msg])

DrRoach wrote:I'm having trouble getting the array for the character input working. I am writing it in C and when I try and compile it says "error expected expression before { token"

Please can someone show me where I'm going wrong? Here's the code that has the error (it's in the second line) :

char alphabet_array[26];
alphabet_array={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};
for(k=0; k<10; k++)

Thanks


If you're planning on assigning letters to your array that way, you need to do it on the same line you initialize the variable in. Also, unless you declared the variables "a" through "z", you're going to need to put each on in-between single-quotes to signify that they're characters, not strings. So your code would ideally look like this:

Code: Select all
...
char alphabet_array[26] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h' ... 'z'};
for(k=0; k<10; k++)
...
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rick Cook
User avatar
centip3de
Moderator
Moderator
 
Posts: 1410
Joined: Fri Aug 20, 2010 5:46 pm
Blog: View Blog (0)


Re: Need help making a BruteForce programme

Post by DrRoach on Mon Feb 25, 2013 8:59 pm
([msg=74157]see Re: Need help making a BruteForce programme[/msg])

Thanks for the help I got it working
DrRoach
Poster
Poster
 
Posts: 151
Joined: Fri Feb 22, 2013 6:53 pm
Blog: View Blog (0)


Next

Return to General

Who is online

Users browsing this forum: No registered users and 0 guests