Results 1 to 6 of 6

Thread: taking duplicate entries out on the fly...??

Hybrid View

  1. #1
    Just burned his ISO
    Join Date
    Sep 2010
    Location
    Northwest England
    Posts
    22

    Default taking duplicate entries out on the fly...??

    Hi

    Firstly I hope this is the correct place for this post as I have been having a really hard time searching these excellent forums and the internet as a whole and discovered nothing of any use so thought you guys would be the perfect place to post as this seems to be where I make all my discoveries and breakthroughs... Anyway I digress...

    So to get to my point I was wondering if it is possible to create a wordlist with crunch (which is easy enough) and perhaps piping it through to another program that will take entries out that have multiple letters and numbers on the fly ie..
    aa
    bb
    cc
    dd

    11
    22
    33
    44

    also does anybody know of either a process to make crunch create a list with alternating alphanumeric a1b2c3d4....???

    or if not perhaps redirect these results on the fly as crunch makes the wordist?
    I beliveve this would keep the size of aforementioned list day a little at least as I think the calculation would go something like this 26x10x26x10x26x10x26x10 ...??? also i would like to create the reverse 10x26x10x26x10x26x10x26..

    Any hope would be great cheers in advance guys....

    would it be possible to script this or code it with C..

    sorry for the length of the post any help greatly received

    B.

  2. #2
    My life is this forum thorin's Avatar
    Join Date
    Jan 2010
    Posts
    2,629

    Default Re: taking duplicate entries out on the fly...??

    I'm a compulsive post editor, you might wanna wait until my post has been online for 5-10 mins before quoting it as it will likely change.

    I know I seem harsh in some of my replies. SORRY! But if you're doing something illegal or posting something that seems to be obvious BS I'm going to call you on it.

  3. #3
    Just burned his ISO
    Join Date
    Sep 2010
    Location
    Northwest England
    Posts
    22

    Default

    think I have found out that this command:

    ./crunch 8 8 -t @$@$@$@$ abcdefghijklmnopqrstuvwxyz 0123456789 \!\@\#\$\%

    will do what I want but....

    now I just need to pipe the output into aircrack but am currently at a loss I am sure I will work this out though ..?

    Worked it out now guys piping output into aircrack as we speak =)

    Linux and the Linux community = amazing!!
    Last edited by lupin; 09-09-2010 at 07:24 AM. Reason: Merging...

  4. #4
    Very good friend of the forum TAPE's Avatar
    Join Date
    Jan 2010
    Location
    Europe
    Posts
    599

    Default Re: taking duplicate entries out on the fly...??

    Quote Originally Posted by billo2310 View Post
    think I have found out that this command:

    ./crunch 8 8 -t @$@$@$@$ abcdefghijklmnopqrstuvwxyz 0123456789 \!\@\#\$\%

    will do what I want but....

    now I just need to pipe the output into aircrack but am currently at a loss I am sure I will work this out though ..?

    Worked it out now guys piping output into aircrack as we speak =)

    Linux and the Linux community = amazing!!
    I am surprised using $ for numeric values works, you should use %

    Also there is no real need to enter values for special charactes in this case.

    A better way would be to use;
    Code:
    ./crunch 8 8 -f charset.lst lalpha-numeric -t @%@%@%@%

  5. #5
    Just burned his ISO
    Join Date
    Sep 2010
    Location
    Northwest England
    Posts
    22

    Default

    Quote Originally Posted by TAPE View Post
    I am surprised using $ for numeric values works, you should use %

    Also there is no real need to enter values for special charactes in this case.

    A better way would be to use;
    Code:
    ./crunch 8 8 -f charset.lst lalpha-numeric -t @%@%@%@%
    Cheers pal you are totally right currently running it now started at 1pm yesterday and at current guestimates its gonna take 80 days!

    Quote Originally Posted by Virchanza View Post
    You could write a small little C program that discards strings that contain duplicate characters.

    The guts of it would be something like:

    Code:
    void Print_String_If_All_Characters_Are_Unique(char const *const str)
    {
        for (char const *p = str ; *p != '\0'; ++p)  /* Until we reach the null terminator */
        {
            /* Exit loop if next character is null terminator */
            if (p[1] == '\0')
                break;
    
            if ( strchr(p+1,*p) )
            {
                 /* If this block of code is entered, it means a duplicate
                     character was found. So we exit the function without
                     printing the string */
    
                  return;
            }
        }
    
        /* This point can only be reached if there were no duplicate characters */
    
         puts(str);
    }
    ...or something along those lines.
    thanks for the reply would there by any way to do this but also account for the instances of eg a1a1a1s7 or z5z5z5k9 and to take these out??

    Thanks in advance

    B.
    Last edited by Archangel-Amael; 09-10-2010 at 10:35 AM.
    Always learning....

  6. #6
    Very good friend of the forum Virchanza's Avatar
    Join Date
    Jan 2010
    Posts
    863

    Default Re: taking duplicate entries out on the fly...??

    You could write a small little C program that discards strings that contain duplicate characters.

    The guts of it would be something like:

    Code:
    void Print_String_If_All_Characters_Are_Unique(char const *const str)
    {
        for (char const *p = str ; *p != '\0'; ++p)  /* Until we reach the null terminator */
        {
            /* Exit loop if next character is null terminator */
            if (p[1] == '\0')
                break;
    
            if ( strchr(p+1,*p) )
            {
                 /* If this block of code is entered, it means a duplicate
                     character was found. So we exit the function without
                     printing the string */
    
                  return;
            }
        }
    
        /* This point can only be reached if there were no duplicate characters */
    
         puts(str);
    }
    ...or something along those lines.

Similar Threads

  1. dump_bsd_dir.pl: Dump bsd entries with mysql load_file
    By akshell in forum Tool Requests
    Replies: 0
    Last Post: 06-28-2010, 01:46 AM
  2. aircrack taking way too long
    By whiterabbit7500 in forum Beginners Forum
    Replies: 5
    Last Post: 04-30-2010, 11:09 AM
  3. creating /dev entries for block devices ??
    By Si2006 in forum OLD BT3final Support
    Replies: 2
    Last Post: 06-23-2009, 06:38 PM
  4. Taking eth1 out of monitor mode
    By bound4h in forum OLD Newbie Area
    Replies: 8
    Last Post: 05-22-2007, 11:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •