Results 1 to 4 of 4

Thread: airolib counts less passwords than file contains..?

  1. #1
    Just burned his ISO
    Join Date
    Jan 2010
    Posts
    8

    Question airolib counts less passwords than file contains..?

    I did a trim to the included /pentest/passwords/wordlist/darkcode.txt file with:
    cat darkcode.txt | pw-inspector -m 8 -M 63 > darkcode-trimmed.txt
    Then added password and essid to airolib database
    Code:
    root@bt:~/share# airolib-ng darkcode-essid-pmk-database --import passwd darkcode-wpa-trimmed.txt
    Reading file...
    Writing...nes read, 66713 invalid lines ignored.
    Now doing stats on the database.
    Code:
    root@bt:~/share# airolib-ng darkcode-essid-pmk-database --stats
    There are 7 ESSIDs and 993932 passwords in the database.
    Reading how many lines of text the trimmed darkcode-wpa-trimmed.txt contains.
    Code:
    root@bt:~/share# less darkcode-wpa-trimmed.txt | wc -c
    "darkcode-wpa-trimmed.txt" may be a binary file.  See it anyway? y
    14585999
    My question is. How come 14Million lines minus "66713 invalid lines ignored" only becomes 993932 passwords in the database?

  2. #2
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere
    Posts
    8,012

    Default Re: airolib counts less passwords than file contains..?

    Your using the wrong command option above.
    wc -c prints out the bytes, this is not the number of words.
    Considering that the above darkcode.txt is actually darkc0de.lst , and that each word is on a line by itself then you would need to do either # wc -l = 1214796, where -l is newline count, or # wc -w = 1320507 where -w is the words count.
    Remember that a line is not necessarily a word, in the above.
    To be successful here you should read all of the following.
    ForumRules
    ForumFAQ
    If you are new to Back|Track
    Back|Track Wiki
    Failure to do so will probably get your threads deleted or worse.

  3. #3
    Just burned his ISO
    Join Date
    Jan 2010
    Posts
    8

    Thumbs up Re: airolib counts less passwords than file contains..?

    Thank you
    So a 'wc -l' is the correct usage in my case? Since a line of text can consist of more that one word, and my guess is that airolib-ngg also counts ALL text on each (new)line, as one single password, correct?
    Found it by some forum or google search. My mistake I didn't dobbelttjeck it.

    Is it also correct that you moved this thread from Beginners Forum Area? I wasn't aware of it being an Experts question, since Im' clearly not an expert, ha ha I just couldn't find it.

    Regards
    Rafter

  4. #4
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere
    Posts
    8,012

    Default Re: airolib counts less passwords than file contains..?

    Well again, it depends, the -l counts the instances of new line. Whereas -w is the actual word count. So it can be different.
    Check the wc man page for more info. Also have a look at Newline - Wikipedia, the free encyclopedia < wiki but should suffice.
    As for the location, I am not sure where it was at or if I even moved it. But it's location is ok I suppose.
    To be successful here you should read all of the following.
    ForumRules
    ForumFAQ
    If you are new to Back|Track
    Back|Track Wiki
    Failure to do so will probably get your threads deleted or worse.

Similar Threads

  1. wpa/psk default passwords .txt file
    By xl_wraith_lx in forum Beginners Forum
    Replies: 41
    Last Post: 01-26-2011, 01:17 PM
  2. Replies: 0
    Last Post: 09-03-2008, 08:05 AM
  3. better file info than file/strings
    By kr0m3 in forum OLD General IT Discussion
    Replies: 0
    Last Post: 07-24-2008, 01:25 PM
  4. Tranfert .txt file in Inbox thunderbird file
    By danathane in forum OLD Newbie Area
    Replies: 1
    Last Post: 07-21-2008, 07:57 AM
  5. Spam control measures, your vote counts!
    By imported_Mother in forum OLD Announcements
    Replies: 36
    Last Post: 12-15-2007, 09:45 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
  •