Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 46 guests and 1 member online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Wirelessarrow cracking wpa2 - how to start from bottom of wordlist
EH-Net
May 21, 2013, 08:09:35 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: cracking wpa2 - how to start from bottom of wordlist  (Read 6522 times)
0 Members and 1 Guest are viewing this topic.
hurtl0cker
Jr. Member
**
Offline Offline

Posts: 73


View Profile
« on: January 14, 2013, 07:24:10 AM »

I have been trying to crack WPA using aircrack-ng dictionary based attack. I have a huge word list and I'd like to know if there is a way to start from bottom of the wordlist, like starting with last word in file to the first. Is there any tool or technique that will let me create a copy of the same dictionary but in reverse order.
(And I do own the access point I am trying to gain access into. This question is just out of curiosity because I couldn't finish entire dictionary in one go, it stopped at around 90%, it'd be better to start from bottom).
« Last Edit: January 14, 2013, 07:26:42 AM by hurtl0cker » Logged

“Knowing is not enough; we must apply. Willing is not enough: we must do.”
- Bruce Lee
H1t M0nk3y
Hero Member
*****
Offline Offline

Posts: 864



View Profile
« Reply #1 on: January 14, 2013, 07:33:54 AM »

You can always cut your wordlist, keep only the last 10% and start a fresh cracking session.

Also, it would probably be easier to invert your wordlist using a small python script. Let me know if you need help on this.
Logged

OSCP, GPEN, GWAPT, GSEC, CEH, CISSP
chrisj
Hero Member
*****
Offline Offline

Posts: 1163


View Profile WWW
« Reply #2 on: January 14, 2013, 08:45:55 AM »

Some tools let you resume failed or interupted attacks. Depending if your word list is sorted or not already, then you might be able to do a sort -r.

Logged

OSWP, Sec+
ajohnson
Recruiters
Hero Member
*
Offline Offline

Posts: 1057


aka dynamik


View Profile WWW
« Reply #3 on: January 15, 2013, 09:59:52 PM »

tac wordlist.txt > wordlist-reversed.txt

You could also use tail -n <number> with the number of lines from the end of the file you want to include.
Logged

WIP: GCFA | www.infosiege.net | @infosiege

The day you stop learning is the day you start becoming obsolete.
H1t M0nk3y
Hero Member
*****
Offline Offline

Posts: 864



View Profile
« Reply #4 on: January 16, 2013, 08:26:10 AM »

You're kidding me?

tac is the reverse of cat. How clever!
Thanks ajohnson
Logged

OSCP, GPEN, GWAPT, GSEC, CEH, CISSP
lorddicranius
Sr. Member
****
Offline Offline

Posts: 447



View Profile WWW
« Reply #5 on: January 16, 2013, 11:42:53 AM »

tac - that's awesome!

I wonder if there are other commands that do things "backwards". 'bottom' instead of 'top' maybe? Although I don't see much of a benefit in that one hah
Logged

GSEC, eCPPT, Sec+
hurtl0cker
Jr. Member
**
Offline Offline

Posts: 73


View Profile
« Reply #6 on: January 18, 2013, 09:38:40 AM »

Thanks for all the answers.
Tac worked like charm!!
I ended up writing a small python script that could invert the word list. 'split' does a good job in breaking down a large dictionary into small chunks.
Logged

“Knowing is not enough; we must apply. Willing is not enough: we must do.”
- Bruce Lee
m0wgli
Full Member
***
Offline Offline

Posts: 248


View Profile
« Reply #7 on: January 18, 2013, 03:39:37 PM »

tac is the reverse of cat. How clever!

Agreed. In a similiar vein, I like how the less command can be remembered (less > more): http://en.wikipedia.org/wiki/Less_%28Unix%29 I've always remembered it because of this.

I wonder if there are other commands that do things "backwards". 'bottom' instead of 'top' maybe? Although I don't see much of a benefit in that one hah

In terms of doing things backwards there is the rev command, for top there is the head command, and for bottom there is the tail command (as already mentioned by ajohnson).

Logged

Security + | OSWP | eCPPT | CSTA
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.061 seconds with 22 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Advertisement

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.