Results 1 to 3 of 3

Thread: Looking for a script to extract usernames from hash lists.

  1. #1
    SmileYaDead's Avatar
    Joined
    Feb 2012
    Posts
    3,611
    Userbars
    7
    Thanks
    835
    Thanked
    842/474
    DL/UL
    129/0
    Mentioned
    355 times
    Time Online
    89d 14h 56m
    Avg. Time Online
    30m

    Looking for a script to extract usernames from hash lists.

    Just the usernames, nothing else. From Demo's hashes:

    1486) ('neo2003', 'neo2003', 'aa89303a6279f2494f779738cc882070', '[email protected]', '[email protected]', 'Thomas W. Yoo', 5, 1050846703, '', 'www.geocities.com/chang_y_11364', 'Html Programmer', 'HTML, Programming, Video Games, Neopets', 'New York', 'I luv Neopets!', 'User', 'threaded', 'expanded', 10, 4543, 'Off', 'Off', '60', '5', '', 'boy', 'fastrack_556', '', '', 1050762749, 'on', 'http://images.neopets.com/games/playbuttons/play128.gif', 'on', 'yes', 'on', 'yes', '[email protected]', '24.193.146.116', '-3-', 'english', 'Member', '10', '', '', 'leaves', '3', 1, 'categories', 'cp', '-', 'yes', 'yes', '0', 0, null, 80, 80, 'eda9c67d6a20358927319cf3510402df', 'yes', null, 'On', 'plaintext', 'all', '-', null, 'no', 'Jul', '10', 1992, 1, 0, null, null, null, null, null, null, null, 0, null, null, null)



    And from formats like:

    user: ella ## pass: b110e0549b750addbf881eda2fb7612c (carter15) ## mail: (you need an account to see links)

    neo_owner776:Rolando:[email protected]:9d7a942fc01b4270 bdc700956193c867

    004773: 1. username = Coope (demail: |-|-| msn: |-|-| bday: 0) |-|-| 2. pass = 113d8625da10cf79f41ba24afc1e8b7f () |-|-| 3. email = (you need an account to see links) |-|-|

    iluvhamsters_hilay cc1b8bfed45b0a16228e5087ab85446e (you need an account to see links)

    Bolded the possible usernames.

    PM me your price

  2. #2

    Joined
    Jun 2012
    Posts
    1,699
    Thanks
    876
    Thanked
    2,881/1,142
    DL/UL
    44/1
    Mentioned
    562 times
    Time Online
    118d 6h 45m
    Avg. Time Online
    40m
    I would make one but i dont have a paypal so ill just tell you , this is real easy to do like 3 lines of code (apart from the md5 conversion wich is probly like 3 more).

    heres a e.g of processing 1 line (use this in a program and make it loop the hash file line by line/entry by entry or whatever.

    Dim testdata As String = "('neo2003', 'neo2003', 'aa89303a6279f2494f779738cc882070', '[email protected]', '[email protected]', 'Thomas W. Yoo', 5, 1050846703, '', 'www.geocities.com/chang_y_11364', 'Html Programmer', 'HTML, Programming, Video Games, Neopets', 'New York', 'I luv Neopets!', 'User', 'threaded', 'expanded', 10, 4543, 'Off', 'Off', '60', '5', '', 'boy', 'fastrack_556', '', '', 1050762749, 'on', 'http://images.neopets.com/games/playbuttons/play128.gif', 'on', 'yes', 'on', 'yes', '[email protected]', '24.193.146.116', '-3-', 'english', 'Member', '10', '', '', 'leaves', '3', 1, 'categories', 'cp', '-', 'yes', 'yes', '0', 0, null, 80, 80, 'eda9c67d6a20358927319cf3510402df', 'yes', null, 'On', 'plaintext', 'all', '-', null, 'no', 'Jul', '10', 1992, 1, 0, null, null, null, null, null, null, null, 0, null, null, null)"
    Dim splitstr As String() = testdata.Split("', '")
    MsgBox("Username = " & splitstr(1).ToString & vbNewLine & "hash=" & splitstr(5) & vbNewLine & "email=" & splitstr(7))

    Creates...


  3. The Following User Says Thank You to DarkByte For This Useful Post:

    SmileYaDead (10-08-2012)

  4. #3

    Joined
    Sep 2012
    Posts
    39
    Userbars
    0
    Thanks
    0
    Thanked
    31/15
    Mentioned
    11 times
    Time Online
    2d 8h 38m
    Avg. Time Online
    N/A
    Code:
    lines = open('input.txt').read().split("\n")
    
    usernames = []
    for line in lines:
        try:
            usernames.append(line.split("('")[1].split("'")[0])
            continue
        except:
            pass
            
        try:
            usernames.append(line.split("user: ")[1].split("##")[0])
            continue
        except:
            pass
            
        try:
            usernames.append(line.split("username = ")[1].split(" ")[0])
            continue
        except:
            pass
            
        try:
            if "\t" in line:
                usernames.append(line.split("\t")[0])
                continue
        except:
            pass
            
        try:
            usernames.append(line.split(":")[0])
            continue
        except:
            pass
            
    open('usernames.txt', 'w').write("\n".join(usernames))
    With your examples, produced:

    Code:
    neo2003
    ella 
    neo_owner776
    Coope
    iluvhamsters_hilay
    Not going to charge, but I am a jobless father and won't refuse donations Paypal: (you need an account to see links)

    ---------- Post added at 01:03 PM ---------- Previous post was at 12:35 PM ----------

    I don't know your technical experience, but here's a more finished product:

    (you need an account to see links)

    Save as "userparse.py" and then in command line simply:

    Code:
    python userparse.py input.txt
    Where input.txt is a file with all of your data separated by new lines. Saves usernames to "usernames.txt".

  5. The Following 3 Users Say Thank You to AliasXNeo For This Useful Post:

    DarkByte (10-11-2012),retired (02-20-2013),SmileYaDead (10-08-2012)

Posting Permissions

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