Page 3 of 3 FirstFirst 123
Results 21 to 29 of 29

Thread: How do I create a Wordlist From a Wordlist? Which Wordlist Generator?

  1. #21
    Junior Member
    Join Date
    Aug 2008
    Posts
    44

    Default

    ..........

    I've tested that program. It manipulates an existing wordlist so it is very close what I was looking for. But it manipulates the file in the way which it wants. You don't have custom choices. For example it is adding numbers at the end of words but from 0 to 9 only, you can not add 2 or 3 digit numbers. But it was one of the two wordlist manipulators that I found..

  2. #22
    Senior Member Talkie Toaster's Avatar
    Join Date
    Jun 2008
    Location
    Scotland
    Posts
    131

    Default

    Quote Originally Posted by =Tron= View Post
    The program is kindly provided in English here: http://forums.remote-exploit.org/showthread.php?t=17475

    EDIT: The download link seems to be unavailable at the moment, but if you are interested a PM to M1ck3y will probably fix this.
    Just out of curiousity what terms did you use for your search or did you google it with the site:forums.remote-exploit.org operator? i bashed away at the vBull search for ages and couldn't find it, vBull search annoys the hell out me sometimes especially when people shout "use search" at newbies, without appreciating how dumb it can be if you don't use exact terms!

    A sticky to SV's google search page would be great in newbie corner, i used to have it bookmarked but a broken pc means i now need to go hunt it down again......

    Am i right in thinking vBull search doesn't look for terms under 3 characters?

    TT
    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.

  3. #23
    Member
    Join Date
    Jan 2008
    Posts
    194

    Default

    Talkie,

    A topic by me on that very...topic

    http://forums.remote-exploit.org/showthread.php?t=17292

  4. #24
    Senior Member Talkie Toaster's Avatar
    Join Date
    Jun 2008
    Location
    Scotland
    Posts
    131

    Default

    Quote Originally Posted by theberries View Post
    Talkie,

    A topic by me on that very...topic

    http://forums.remote-exploit.org/showthread.php?t=17292
    Thank you theberries that thread contains SV's customised google search, bookmarked AND written down this time!

    I hearby promise to pass it on to all newbies i find!

    TT
    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.

  5. #25
    Senior Member
    Join Date
    Apr 2008
    Posts
    2,008

    Default

    Quote Originally Posted by Talkie Toaster View Post
    Just out of curiousity what terms did you use for your search or did you google it with the site:forums.remote-exploit.org operator? i bashed away at the vBull search for ages and couldn't find it, vBull search annoys the hell out me sometimes especially when people shout "use search" at newbies, without appreciating how dumb it can be if you don't use exact terms!
    Well to be honest I did cheat a little since I knew that the author was M1ck3y and therefore could use his name to narrow down the search. However, I do agree that the vBulletin search function is far from optimal and usually tend to avoid it in favour of google.
    -Monkeys are like nature's humans.

  6. #26
    Senior Member Talkie Toaster's Avatar
    Join Date
    Jun 2008
    Location
    Scotland
    Posts
    131

    Default

    Quote:
    Originally Posted by Talkie Toaster View Post
    http://translate.google.fr/translate...hl=fr&ie=UTF-8

    this can do something similar to what your wanting, and it is based on crunch. Since you obviously have tried yourself maybe a kind member could have a look at the script behind it for hints, i would offer some myself but my scripting is not good, and my French is non-existant! I don't think i'm the best person to offer help

    TT
    The program is kindly provided in English here: http://forums.remote-exploit.org/showthread.php?t=17475

    EDIT: The download link seems to be unavailable at the moment, but if you are interested a PM to M1ck3y will probably fix this.


    >>>SORRY FOLKS BIT OF CONFUSION<<<

    These 2 links above are 2 different programmes, the first is keygen.sh which has loads of options for creating wordlists, the 2nd is too wl.sh which optimises wordlists and runs John The Ripper against them to produce even more possibilities!

    have a play with both, google helps with the french a bit

    TT
    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.

  7. #27
    Senior Member
    Join Date
    Apr 2008
    Posts
    2,008

    Default

    Quote Originally Posted by Talkie Toaster View Post
    >>>SORRY FOLKS BIT OF CONFUSION<<<

    These 2 links above are 2 different programmes, the first is keygen.sh which has loads of options for creating wordlists, the 2nd is too wl.sh which optimises wordlists and runs John The Ripper against them to produce even more possibilities!

    have a play with both, google helps with the french a bit

    TT
    So right you are, didn't notice that one of them was called Giga Wordlist Creator and the other one Giga Password Generator. My bad for introducing some extra confusion into this thread.

    As a side-note, the Giga Password Generator (keygen.sh) uses crunch for the actual password generating, and is therefore basically a helpful script for managing crunch. Crunch is however a very efficient word generator, so this is by no means a bad choice.
    -Monkeys are like nature's humans.

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

    Default

    Quote Originally Posted by damlayss View Post
    As a summary, I am trying to put the output of "crunch" command into the place of "123" in sed 's/$/123/'
    You can do that in a shell script with a loop and a counter.
    Here's a little shell scripting intro, which might help you:
    http://www.hsrl.rutgers.edu/ug/shell_help.html

    10-21-2008, 10:27 PM
    Quote Originally Posted by damlayss View Post
    PS. By the way thorin, thank you for your reply, I searched all threads here about sed and about wordlist & generator. I can say I nearly memorized all of them by reading many times but I coulnd't find the solution of function that I need. If you know a thread that I may miss I would appreciate to have the url of that page.
    Yesterday (10-22-2008) 03:53 AM
    Quote Originally Posted by damlayss View Post
    And thank you Talkie Toaster, I'll have a try immediately.
    Hmm when you searched on "wordlist" and memorized everything I would have thought that you'd find "Giga Wordlist Creator: automatic wordlist merging & optimization for wpa cracking".

    Ok I'll stop bugging you now

    On the serious side, your third example in the OP could very quick lead to such a huge wordlist that you won't be able to store it.

    i.e.:Say you have a 3GB wordlist (basically that means you have 375,000 characters in the file).
    Lets assume they're words with length = 8, that's 46,875 words.
    Now say you add 'TABLE' to each word. That gives you ~47,000 words at length 13. Which means you're now trying to store ~4.9GB (in addition to the original 3GB).
    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.

  9. #29
    Junior Member
    Join Date
    Aug 2008
    Posts
    44

    Default

    Quote Originally Posted by thorin View Post
    Hmm when you searched on "wordlist" and memorized everything I would have thought that you'd find "Giga Wordlist Creator: .
    Yes I've realized that I missed that page It is not directly related with the subject but forum's search engine is not working very effective or I don't know to use it in effective way. In many times I am giving the exact words with the exact order in the page written, but froum's search results doesn't give that page even in the first results page. I often need to use google to find that page instead of forum's search engine.
    ................


    Anyway I see that there is no way I can find to do what I need. So with the help of some programmer guys we created some scripts which gives the needed outputs. I want to share here.

    This is a simple but effective code in python which adds the numbers at the end of each line in a wordlist:

    Code:
    import sys
    
    def main():
      if len(sys.argv) != 3:
        print 'Usage: python ' + sys.argv[0] + ' input.txt output.txt'
        sys.exit(1)
      try:
        i = open(sys.argv[1],'r')
      except:
        print 'Error: file not found (' + sys.argv[1] + ')'
        sys.exit(1)
      o = open(sys.argv[2],'w')
      for line in i.xreadlines():
        for i in xrange(0,100):
          o.write(line.strip() + str(i) + "\n")
      o.close()
    
    if __name__ == '__main__':
        main()

    This solution is okay for numbers but it doesn't cover other manipulations beside numbers. So these two different codes (one of them is in C and other is in Perl) are combining each lines of TWO different wordlists (for example wordlist1.txt and wordlist2.txt) and gives new wordlist (for example wordlistCombined.txt) as an output file:

    C Script

    Code:
    #include <stdio.h>
    #include <string.h>
    
    int main(int argc, char *argv[])
    {
      if (argc < 4)
      {
        printf("Usage: %s input1.txt input2.txt output.txt\n", argv[0]);
        return 1;
      }
      FILE *input_1 = fopen(argv[1], "r");
      if (input_1 == NULL)
      {
        printf("Error opening input file (%s)\n", argv[1]);
        return 1;
      }
      FILE *input_2 = fopen(argv[2], "r");
      if (input_2 == NULL)
      {
        printf("Error opening input file (%s)\n", argv[2]);
        return 1;
      }
      FILE *output = fopen(argv[3], "w");
      if (output == NULL)
      {
        printf("Error opening output file (%s)\n", argv[3]);
        return 1;
      }
      char buffer_1[256];
      char buffer_2[256];
    
      while (1)
      {
        if (fgets(buffer_1, 256, input_1) != NULL)
        {
          buffer_1[strlen(buffer_1)-1] = '\0';
          rewind(input_2);
          while (1)
          {
            if (fgets(buffer_2, 256, input_2) != NULL)
            {
              fprintf(output, "%s%s", buffer_1, buffer_2);
            }
            else
            {
              break;
            }
          }
        }
        else
        {
          break;
        }
      }
    
      fclose(input_1);
      fclose(input_2);
      fclose(output);
      return 0;
    }


    Perl Script

    Code:
    #!/usr/bin/perl
    
    use strict;
    
    # Check we have enough command line arguments
    # for more complex options use the Getopt::Std or Getopt::Long modules
    if($#ARGV<1)
    {
      die "Usage: combine <prefixFile> <postfixFile>\n";
    }
    
    # build the two hashes one from each file
    # we use hashes as it is an easy way to make sure that we don't have exact duplicates in the lists.
    my %prefix=getLines($ARGV[0]);
    my %postfix=getLines($ARGV[1]);
    
    # for each of our prefix lines loop through the postfix lines and output the concatenated result
    # to STDOUT.
    foreach my $pre (keys(%prefix))
    {
      foreach my $post (keys(%postfix))
      {
        print "$pre$post\n";
      }
    }
    
    # Sub to get all the lines (without carriage returns, line breaks or spaces at the end)
    sub getLines
    {
      # Get the filename from the parameters
      my ($file)=@_;
      my %lines;
    
      # open the file and fail with an error message if it doesn't open
      open FILE, "<$file" or die "Unable to open $file\n";
      # loop through each line in the file
      while(my $line=<FILE>)
      {
        # strip out the carriage returns, new lines and spaces at the end of the line
        $line=~s/[\r\n\s]*$//;
        # create a hash entry with the line as the key (simple way to remove duplicates)
        $lines{$line}=1;
      }
      # close the file as we have finished with it.
      close FILE;
    
      # pass the lines hash back to the caller of the function.
      return %lines;
    }

    They are working bug free. But the main problem is some problems can be occur in operating very huge files.

    .

Page 3 of 3 FirstFirst 123

Posting Permissions

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