Remote Exploit Forums

Go Back   Remote Exploit Forums > BackTrack 4 (pre) Final > BackTrack 4 Howto


BackTrack 4 Howto Tutorials and Howtos about BackTrack 4 (NOT for requesting tutorials or how to do anything)

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 10-26-2009, 02:49 PM
Virchanza's Avatar
Senior Member
 
Join Date: Sep 2008
Location: I am not living
Posts: 728
Default

I'd go with an on-the-fly generator such as crunch instead of lugging around a 37gig file. Pipe the output of crunch into the input of your cracker program.
__________________
Ask questions on the open forums, that way everybody benefits from the solution, and everybody can be corrected when they make mistakes. Don't send me private messages asking questions that should be asked on the open forums, I won't respond. I decline all "Friend Requests".
Reply With Quote
  #12 (permalink)  
Old 10-26-2009, 04:58 PM
pureh@te's Avatar
Jenkem Addict
 
Join Date: Mar 2007
Location: /dev/null
Posts: 5,401
Default

Yeah I meant 8, I have a 10 also but I am not sure how big that is.

Crunch is useful to pipe out put but in the case of hex lists where there are tons of routers which use default hex keys its more useful to keep the actual list on hand. That's where a 6 TB file sever at your house comes in handy.
Reply With Quote
  #13 (permalink)  
Old 10-28-2009, 04:54 PM
Virchanza's Avatar
Senior Member
 
Join Date: Sep 2008
Location: I am not living
Posts: 728
Default

I'm not really that interested in cracking passwords, but I like writing code for doing it. Anyway I threw together this short piece:

Code:
#include <string.h>
#include <stdio.h>
#include <stdlib.h>

void Combinate(char const *const pstart,char *const p,
               char const *const plast,char const *const alphabet)
{
    for (*p = alphabet[0]; *p; *p = strchr(alphabet,*p)[1])
    {
        if (p == plast)
            puts(pstart);
        else
            Combinate(pstart,p+1,plast,alphabet);
    }
}

int main(int argc, char **argv)
{
    char str[64 + 1] = {0};

    Combinate(str,str,str + strtoul(argv[1],0,10) - 1,argv[2]);

    return 0;
}
Copy-paste it into a file called "combinator.c" and then compile it as follows:

Code:
gcc combinator.c -o combinator
Next, if you want to get all the 4-character-long hexadecimal numbers, run it as follows:

Code:
./combinator 4 0123456789abcdef
The first argument to the program is the length of the password (if you specify more than 64 then your computer will explode). The second argument is the characters that make up the alphabet.

Anyway you can pipe the output of this program into your favourite cracking program:

Code:
./combinator 4 0123456789abcdef |my_favourite_cracker --read-from-stdin
Beats creating a 30gig file if you ask me.
__________________
Ask questions on the open forums, that way everybody benefits from the solution, and everybody can be corrected when they make mistakes. Don't send me private messages asking questions that should be asked on the open forums, I won't respond. I decline all "Friend Requests".

Last edited by Virchanza; 10-28-2009 at 04:56 PM.
Reply With Quote
  #14 (permalink)  
Old 10-28-2009, 06:14 PM
wyze's Avatar
Jenkem Addict
 
Join Date: Jul 2007
Location: chmod 400
Posts: 1,593
Default

Quote:
Originally Posted by Virchanza View Post
... (if you specify more than 64 then your computer will explode)
I've still yet to see any code that will make mine implode :s
__________________
dd if=/dev/swc666 of=/dev/wyze
Reply With Quote
  #15 (permalink)  
Old 10-28-2009, 08:09 PM
archangel.amael's Avatar
Moderator
 
Join Date: Nov 2007
Location: behind the wire
Posts: 3,466
Default

Quote:
Originally Posted by wyze View Post
I've still yet to see any code that will make mine implode :s
That's because you have been looking in the wrong place.
__________________
The very existence of flame-throwers proves that some time, somewhere, someone said to themselves, You know, I want to set those people over there on fire, but I'm just not close enough to get the job done.
George Carlin
Reply With Quote
  #16 (permalink)  
Old 10-29-2009, 01:38 PM
wyze's Avatar
Jenkem Addict
 
Join Date: Jul 2007
Location: chmod 400
Posts: 1,593
Default

Quote:
Originally Posted by archangel.amael View Post
That's because you have been looking in the wrong place.
oh noez!!! :0 </holycrap>
__________________
dd if=/dev/swc666 of=/dev/wyze
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:21 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2