SSH Linux command/CentOS... for wordlist creation

Discussion in 'Programming' started by Helado, Sep 3, 2009.

  1. #1
    Hi, I think this is the best place for this.

    Basically I need two things: 1 is a command that will work on CentOS 5, that creates a wordlist and stores it in a .txt file like this:

    aa
    ab
    ac

    etc...

    I want it so I can change what kind of wordlist is created, i.e. just letters or letters and numbers... how can this be done?

    Also, if possible, a command that will create random strings (like the wordlist) but hash them in MD5 and insert into a database.

    If anybody could write the commands I'd be very grateful!
     
    Helado, Sep 3, 2009 IP
  2. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Be more specific, and i'll code you up a quick script to do it.
     
    matthewrobertbell, Sep 6, 2009 IP
  3. Helado

    Helado Peon

    Messages:
    696
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi, I've found one now. It's in perl, wordlist generator it's called.

    But there is one more thing I need doing! Would you be able to code something like this up:

    I have a text file (on my server). It's contents are like this:

    hello
    hello2
    hello3

    All underneath eachother. I want to make the server read all of these lines, then put each one into an array (kind of line in php). Then, I want it to hash each array in md5 and then insert the hash with the array into a MySQL database.

    Is that possible? I've used PHP, but when the files very large it doesn't want to do it.
     
    Helado, Sep 7, 2009 IP
  4. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #4
    use fgets() to pull each line one by one. or use ini_set to increase the memory your script can use. I'd rethink storing a raw php array in a DB. There's probably a better way ;)
     
    matthewrobertbell, Sep 7, 2009 IP