Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.


Closed Thread
  Search this Thread
Old 01-11-2007, 11:12 AM   #1
LQ Newbie
Registered: Jun 2005
Posts: 12

Rep: Reputation: 0
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?
Old 01-11-2007, 03:56 PM   #2
Registered: Dec 2006
Location: Germany
Distribution: Kubuntu (Feisty Fawn), Debian (SID)
Posts: 127

Rep: Reputation: 15
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)

Last edited by FnordPerfect; 01-11-2007 at 04:00 PM.
Old 01-11-2007, 04:08 PM   #3
Senior Member
Registered: Nov 2006
Distribution: Debian Squeeze SMP AMD64
Posts: 3,320

Rep: Reputation: 126Reputation: 126
"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.
Old 01-12-2007, 01:20 PM   #4
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
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 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.

Closed Thread

scripts, wep, wireless

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using iwconfig to connect to a wireless network. No WEP radicalrain Linux - Wireless Networking 2 05-03-2008 10:09 PM
iwconfig cannot set WEP key muteki_sykes Linux - Wireless Networking 7 05-27-2006 05:07 PM
Need Shell Script to allow user to connect to net through terminal Dralnu Linux - Networking 1 05-07-2006 09:31 AM
WEP configuration using iwconfig clue=0 Linux - Wireless Networking 1 08-28-2004 08:53 PM
Enabling WEP keys with iwconfig on RH8? NLawrence Linux - Wireless Networking 9 02-26-2004 08:59 PM > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 05:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration