Remote Exploit Forums

Go Back   Remote Exploit Forums > Newbie Area


Newbie Area Welcome to the BackTrack Forums! Please check this section and post to it if you are new to BackTrack, the Forums, or both.

   

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-18-2009, 03:49 AM
Member
 
Join Date: Jan 2008
Posts: 46
Default WPA wordlist cleaning

hi guys.

i have a WPA 4.9 gb wordlist, i have allredy done the cat thing i.e

cat ***** | sort | uniq > ******
&
cat ***** | pw-inspector -m 8 -M 30 > ******

But my problem is that cowpatty database refuses to run after i add it, i think this is becoz it contains shit chars such as )(*&^^%^$%^$£"£!><?L:{} and so on.

So how do i revove all the shit.

I have Read a post on grep, sed and tr.
but i cant understand how this would work as it makes little sence to me at all. (Am a Newbie..lol)

thanks.
Reply With Quote
  #2 (permalink)  
Old 12-19-2009, 05:38 AM
kidFromBigD's Avatar
Senior Member
 
Join Date: Aug 2007
Posts: 130
Default

Quote:
Originally Posted by jenbo View Post
hi guys.

i have a WPA 4.9 gb wordlist, i have allredy done the cat thing i.e

cat ***** | sort | uniq > ******
&
cat ***** | pw-inspector -m 8 -M 30 > ******

But my problem is that cowpatty database refuses to run after i add it, i think this is becoz it contains shit chars such as )(*&^^%^$%^$£"£!><?L:{} and so on.

So how do i revove all the shit.

I have Read a post on grep, sed and tr.
but i cant understand how this would work as it makes little sence to me at all. (Am a Newbie..lol)

thanks.
Alright, I think many of us have been in your shoes at some point. For me, the learning curve was steep and had many setbacks. Stay with it and eventually you will have your files whipped into shape and working with cowpatty or whatever you choose.

I've had good success with the tr command. Plenty of times wondered what it was doing, and plenty of times had to refer back to the man page, and then google for examples.

As for cowpatty, you do not mention which version you have, nor if you're running BT3 or BT4 pre-final. There's differences. Nuances.

Sorry, there's few shortcuts here.
__________________
"... the link budget is not a problem, we intend on splitting the bill."
Reply With Quote
  #3 (permalink)  
Old 12-19-2009, 06:16 AM
Gitsnik's Avatar
Senior Member
 
Join Date: Jun 2009
Location: The Crystal Wind
Posts: 637
Default

As the man said, lots of Nuances, but here are some basics:
Code:
sed 's/[^a-zA-Z0-9]//g' passwd.txt | sort -u > cleanerthanbefore.txt
That will remove all but a-zA-Z0-9 from the file (but not new lines). You could go with all uppercase:
Code:
sed 's/[^A-Z]//g' passwd.txt | sort -u > cleanerthanbefore.txt
Or all numbers:
Code:
sed 's/[^0-9]//g' passwd.txt | sort -u > cleanerthanbefore.txt
Or perhaps you want to remove all the numbers from the file:
Code:
sed 's/[0-9]//g' passwd.txt | sort -u > cleanerthanbefore.txt
There are hundreds of tutorials out there on sed, grep, awk, perl and tr - especially the one liners like the above - all over the place, check any out you can find. Make special notes of the sed1line.txt from sourceforge (same for awk).
__________________
Never underestimate the power of human stupidity - it is like a force of nature, capable of destroying even the most well laid plans.
Reply With Quote
  #4 (permalink)  
Old 12-19-2009, 01:17 PM
pureh@te's Avatar
Jenkem Addict
 
Join Date: Mar 2007
Location: /dev/null
Posts: 5,549
Default

The wordlist is not your problem, cowpatty will take all those characters just fine. Your problem is that if you are running cowpatty on backtrack it is a 32 bit system and there are limitations. Cowpatty and various other programs will not handel a file bigger the 2 gigs on a 32 bit system. So the only solution it to break you wordlists up or run cowpatty on a 64 bit OS
Reply With Quote
  #5 (permalink)  
Old 12-19-2009, 10:02 PM
Member
 
Join Date: Jan 2008
Posts: 46
Default

Quote:
Originally Posted by kidFromBigD View Post
Alright, I think many of us have been in your shoes at some point. For me, the learning curve was steep and had many setbacks. Stay with it and eventually you will have your files whipped into shape and working with cowpatty or whatever you choose.

I've had good success with the tr command. Plenty of times wondered what it was doing, and plenty of times had to refer back to the man page, and then google for examples.

As for cowpatty, you do not mention which version you have, nor if you're running BT3 or BT4 pre-final. There's differences. Nuances.

Sorry, there's few shortcuts here.
yes, soz for the lack of info. i have BT4 final
Reply With Quote
  #6 (permalink)  
Old 12-19-2009, 10:08 PM
Member
 
Join Date: Jan 2008
Posts: 46
Smile

Quote:
Originally Posted by pureh@te View Post
The wordlist is not your problem, cowpatty will take all those characters just fine. Your problem is that if you are running cowpatty on backtrack it is a 32 bit system and there are limitations. Cowpatty and various other programs will not handel a file bigger the 2 gigs on a 32 bit system. So the only solution it to break you wordlists up or run cowpatty on a 64 bit OS
its a shame there is'nt a 64 bit version of BT4, as i do have have 4 Gb ram with goes to waste on a 32 bit system. (am glad thy dropped slax, witch was a good start)

I knew that there was a wordlist limit on Aircrack-ng but i didnt think that cowatty had such a limit, i guess that would explain it.

thanks evryone for your answers, and putting up with yet anouther nube aksking silly questions.. lol
Reply With Quote
Reply

Bookmarks

Tags
wordlist commands

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:28 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2