Results 1 to 11 of 11

Thread: Try to help me figure this out if you want a headache

  1. #1
    Join Date
    Jan 2007
    Location
    Tennessee
    Posts
    642
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Try to help me figure this out if you want a headache

    I made a script to find every combination of letters with a given length.
    So let's say the length is 4, it would find aaaa, aaab, aaac, aaad and so on all the way to zzzz.
    SCAR Code:
    begin
    c[1] := 'a';
    c[2] := 'b';
    c[3] := 'c';
    c[4] := 'd';
    c[5] := 'e';
    c[6] := 'f';
    c[7] := 'g';
    c[8] := 'h';
    c[9] := 'i';
    c[10] := 'j';
    c[11] := 'k';
    c[12] := 'l';
    c[13] := 'm';
    c[14] := 'n';
    c[15] := 'o';
    c[16] := 'p';
    c[17] := 'q';
    c[18] := 'r';
    c[19] := 's';
    c[20] := 't';
    c[21] := 'u';
    c[22] := 'v';
    c[23] := 'w';
    c[24] := 'x';
    c[25] := 'y';
    c[26] := 'z';
      for d:= 1 to 26 do
      for e:= 1 to 26 do
      for f:= 1 to 26 do
      for g:= 1 to 26 do
      for h:= 1 to 26 do
      for i:= 1 to 26 do
      for j:= 1 to 26 do
      for k:= 1 to 26 do
      for l:= 1 to 26 do
      begin
        Pass:= Pass + c[d] + c[e] + c[f] + c[g] + c[h] + c[i] + c[j] + c[k] + c[l] ;
        WriteLn(Pass);
        Pass:= '';
      end;
    end.
    This finds every combination of 9 different letters.

    I'm trying to make it start out with the length being 1 and every time it finds all the combinations, it moves the length up one.
    So starting out at 1 it would just find A-Z.
    Then the length would go up to 2.
    It would find aa, ab, ac, ad, ae and so on until zz.
    Then the length would go up again.

    This was way more complicated than i thought it would be.

    Note: This is not for guessing runescape account passes because that would never work.

  2. #2
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    Note: This is not for guessing runescape account passes because that would never work.
    Only thing why it wouldn't work is because it makes you wait 5 mins if you fail was it 5 tries.

    [solving]

    Crap, this is actually getting on my nerves lol... Gotta play a lil counterstrike and try again...

    EDIT: lol, got an idea right when I clicked the icon..

  3. #3
    Join Date
    Jan 2007
    Location
    Tennessee
    Posts
    642
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Are you "solving" to try to make it work for runescape or are you actually trying to solve my problem?

    Oh and i found a very generic way to do it but it's not a very good way.
    You can make a different procedure for each length.
    Like a procedure to guess passes with a length of 5 and so on.

  4. #4
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    26 ^ Length?
    Hup Holland Hup!

  5. #5
    Join Date
    Jan 2007
    Location
    Tennessee
    Posts
    642
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    26 ^ Length?
    What?


    Edit: lol yes i got ya now.

  6. #6
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Haha I made a script like this a long time ago =]]

  7. #7
    Join Date
    Jan 2007
    Location
    Tennessee
    Posts
    642
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    That's an interesting way of doing it.
    But i'm still left with the problem of changing the length of the password.
    So what is the difference between the 1st and 2nd one?

  8. #8
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    The first one just has one in the debug box.
    Ex.
    0000
    The second i put 9 cuz it's funner to look at =]
    Ex.
    0000 0001 0002 0003 0004 0005 0006 0007 0008

  9. #9
    Join Date
    Jan 2007
    Location
    Tennessee
    Posts
    642
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Oh i noticed that difference but it thought it was 9 things that were all the same.
    So i was wondering what the purpose in that would be.

  10. #10
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    idk i just made it in the first place to look cool

    lol n it's cooler with 9 =]

  11. #11
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    You can also do it with bases (counting on a base of the size of the charset).

    SCAR Code:
    program New;
    const pwlength=3;
    //f11 to quit
    clear=0; //how often to cleardebug, 0 is never, 1 is always, 2 is 1/2 the time 3 is 1/3 etc
    key=false; //wait for you to press f12 before going to next one?
    var
    chrs:array of string;
    chrs_AL,i2,i,tmpi,tmpint:integer;
    str:string;
    begin
      for i:=48 to 90 do //find the keycodes of all chrs you want, here goes min and max
      begin
        if ((i>57)and (i<65)) then // here goes gaps of what you dont want ex: inbetween numbers and letters
          continue;
        chrs_AL:=chrs_AL+1;
        setarraylength(chrs, chrs_AL);
        chrs[chrs_AL-1]:= chr(i);
      end;
      i:=0;
      repeat
        if clear<>0 then
          if random(clear) = 0 then
            cleardebug;
        str:='';
        tmpi:=i;
        for i2:=pwlength downto 1 do
        begin
          tmpint:=( tmpi div round(pow(chrs_al*1.0,1.0*(i2-1))));
          str:= str+ chrs[tmpint];
          tmpi:=tmpi-round(tmpint*pow(chrs_al*1.0,(i2-1)*1.0));
        end;
        writeln(str);
        i:=i+1;
        if key then
          repeat
            wait(50);
          until isfkeydown(12);
      until isfkeydown(11);
    end.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Can YOU figure it out??
    By Metagen in forum OSR Help
    Replies: 3
    Last Post: 10-07-2008, 06:44 PM
  2. Bug, Very hard to figure!
    By faster789 in forum OSR Help
    Replies: 6
    Last Post: 04-07-2008, 09:37 AM
  3. Cant figure out a way to...
    By r3dr4g0n in forum OSR Help
    Replies: 8
    Last Post: 10-02-2007, 06:14 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
  •