LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   shell script - connect via iwconfig WEP (https://www.linuxquestions.org/questions/linux-wireless-networking-41/shell-script-connect-via-iwconfig-wep-518387/)

PolarDog 01-11-2007 11:12 AM

shell script - connect via iwconfig WEP
 
I'd like to use a spare pc to try to crack my 128 Bit WEP.

Basically I'm looking to write a script that does the normal:

sudo iwconfig ath0 essid MYACCESSPOINT
sudo iwconfig ath0 key 12345abcde

I want the thing to run every combination until it connects, then stop searching if it connects.
a log file would be nice too.

I don't have to worry about "abcde" because the key is all numerical.

anyone have a reference to such a process?

FnordPerfect 01-11-2007 03:56 PM

so, basically you want a script that counts from 0000000000 to 9999999999, tries to connect with to your access point and tells you if this number was by any chance your WEP key??

isn't there some more elegant method for that kind of stuff?
have you tried a wlan sniffer like airsnort?

EDIT: Ok, after putting another thought into it, that was kinda stupid. In fact, you *do* have to worry about "abcde".
A 128bit key is quite a large number (2^128 = 340282366920938463463374607431768211456)

Quakeboy02 01-11-2007 04:08 PM

"I'd like to use a spare pc to try to crack my 128 Bit WEP."

I can't speak for LQ, but I don't think this is a good place to discuss cracking methods.

david_ross 01-12-2007 01:20 PM

Closed as per Quakeboy02's observation - from the LQ Rules "Posts containing information about cracking, piracy, warez, fraud or any topic that could be damaging to either LinuxQuestions.org or any third party will be immediately removed."

If you wish to post a programming request for creating a "for loop" in bash then please do so in the Programming forum.


All times are GMT -5. The time now is 08:47 AM.