Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Specific Crunch Pattern

  1. #1
    Just burned his ISO
    Join Date
    Feb 2011
    Posts
    4

    Default Specific Crunch Pattern

    Could anyone help me with how to make crunch not put 2 letters or numbers together

    so it wont do this aa1122bb.......

    and i have read this tutorial http://adaywithtape.blogspot.com/201...runch-v23.html

    however i couldn't find any function that did what i wanted

    thanks in advance

  2. #2
    Senior Member
    Join Date
    Jul 2010
    Location
    UK
    Posts
    136

    Default Re: Specific Crunch Pattern

    What pattern are you trying to create?

    Code:
    ./crunch 4 4 -t @%@%
    Will make a1a1..a1a0, a1b1..a1b0 etc etc. There's no 2 letters or numbers together and that code was taken straight from the link you posted.

  3. #3
    Just burned his ISO
    Join Date
    Feb 2011
    Posts
    4

    Default Re: Specific Crunch Pattern

    Quote Originally Posted by Jimmy87 View Post
    What pattern are you trying to create?

    Code:
    ./crunch 4 4 -t @%@%
    Will make a1a1..a1a0, a1b1..a1b0 etc etc. There's no 2 letters or numbers together and that code was taken straight from the link you posted.
    Well it needs to have 8 characters so "8 8"

    and have capitol letter out of the whole alphabet along with numbers however i dont want more than 2 characters to be bundled together

    so like this for example

    EDF5G3YH
    5G2HJ1K1
    HH12K56K

    but NOT like this

    AAAA1111
    RRRR2222

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

    Default Re: Specific Crunch Pattern

    Quote Originally Posted by pooka View Post
    Could anyone help me with how to make crunch not put 2 letters or numbers together

    so it wont do this aa1122bb.......

    and i have read this tutorial http://adaywithtape.blogspot.com/201...runch-v23.html

    however i couldn't find any function that did what i wanted

    thanks in advance
    Well that is without a doubt the best tutorial you will find on crunch

    Unfortunately, if I understand you correctly, crunch is not able to do what you want.

    You can create patterns to ensure that the same character type wont be adjacent to each other, but you can't generally specify to not have identical characters next to each other.

    That would require piping crunch output through some sed magic.
    (slowing it down in the process..)
    I would help if I could as this query has come up several times, perhaps time for me to really dig deep and try with sed, but sed is tough

  5. #5
    Just burned his ISO
    Join Date
    Feb 2011
    Posts
    4

    Default Re: Specific Crunch Pattern

    Quote Originally Posted by TAPE View Post
    Well that is without a doubt the best tutorial you will find on crunch

    Unfortunately, if I understand you correctly, crunch is not able to do what you want.

    You can create patterns to ensure that the same character type wont be adjacent to each other, but you can't generally specify to not have identical characters next to each other.

    That would require piping crunch output through some sed magic.
    (slowing it down in the process..)
    I would help if I could as this query has come up several times, perhaps time for me to really dig deep and try with sed, but sed is tough
    well the type of sequence im trying to make applies to all default router passwords so if crunch would be able to do what i mentioned it be very useful to alot of people

  6. #6
    Senior Member
    Join Date
    Jul 2010
    Location
    UK
    Posts
    136

    Default Re: Specific Crunch Pattern

    well the type of sequence im trying to make applies to all default router passwords so if crunch would be able to do what i mentioned it be very useful to alot of people
    This is something that I would also like to achieve, but haven't had the chance to spend much time on it. I want something similar but 10 characters long and only uses capital letters from A - F

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

    Default Re: Specific Crunch Pattern

    @ pooka
    what specific sequence is that then ? Default router passwords are not like your initial post...
    edit
    Ah I see what you mean, the default WPA password on cablemodem/routers.. gotcha..

    @Jimmy
    I''ll have to put my thinking cap on and see, I hate having to figure awk/sed stuff out
    Last edited by TAPE; 03-02-2011 at 12:51 PM.

  8. #8
    Senior Member
    Join Date
    Jul 2010
    Location
    UK
    Posts
    136

    Default 回复: Specific Crunch Pattern

    @Jimmy
    I''ll have to put my thinking cap on and see, I hate having to figure awk/sed stuff out
    If you could figure something out that would be sound. Still I will give this a go when I have the time as I like to work this stuff out. Cheers TAPE

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

    Default Re: Specific Crunch Pattern

    I saw a post on the unix forums which may do something similar to what you want..

    First you would have to create a 10 character wordlist with crunch using ABCDEF as charset ;
    Code:
    ./crunch 10 10 ABCDEF -o test.txt
    Result is a +- 634MB wordlist with 60466176 lines.

    Then you could run a perl script over it ;
    Code:
    perl -ne 'print unless/(.)\1\1/' test.txt > newfile.txt
    This resulted in a file of +- 519MB with 49503750 lines
    As far as I could see, no more than 2 identical characters in sequence.
    Still a pretty dam big file to get through though, not sure whether that is the way
    you intended it, but best I can come up with at the mo.

  10. #10
    Senior Member
    Join Date
    Jul 2010
    Location
    UK
    Posts
    136

    Default 回复: Specific Crunch Pattern

    That is what I intended yes, but with numbers as well! I can see why you thought I only wanted the letters A - F though because that is what I said in my post. I meant that I wanted the same as Pooka, but I didn't need every letter of the alphabet..sorry for the confusion there.

    I can only assume that creating the same with crunch;

    Code:
    ./crunch 10 10 ABCDEF0123456789 -o test.txt
    Would result in an extremely large file. (11264 gigabytes I've worked out?) When I have thought about how to do it, my main concern was avoiding all the initial strings;

    0000000001..
    0000000002
    AAAAAAAAAA
    AAAAAAAAAB
    AAAAAAAAAC

    etc etc.

    I can't do it partly because I'm not entirely sure how to go about it and partly because I've not had the time in ages to work on it. I don't expect you to do it for me though, just some advice would be ace.
    Last edited by Jimmy87; 03-04-2011 at 02:20 PM.

Page 1 of 2 12 LastLast

Similar Threads

  1. very specific password list.
    By Urban48 in forum Beginners Forum
    Replies: 1
    Last Post: 01-01-2011, 04:00 PM
  2. Replies: 1
    Last Post: 11-16-2010, 07:01 AM
  3. Specific Wordlist needs
    By Paradoxid in forum Beginners Forum
    Replies: 5
    Last Post: 10-02-2010, 01:22 AM
  4. how to create pattern in metasploit windows
    By ammadeyy in forum OLD Newbie Area
    Replies: 2
    Last Post: 11-29-2009, 03:04 PM
  5. Airpwn Match Pattern...Help!?
    By RasterOp in forum OLD Newbie Area
    Replies: 1
    Last Post: 09-17-2009, 02:48 AM

Posting Permissions

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