Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 19th, 2007, 3:23 AM   #1
Fall Back Son
Professional Programmer
 
Join Date: Oct 2006
Posts: 311
Rep Power: 3 Fall Back Son is on a distinguished road
a question about WEP keys and encryption.

I was told that programs such as cain and abel can crack WEP keys with relative ease. I'm curious as to how this works. I'm not sure if this fits into any of the forums, so I posted it here. If anyone wants to share their knowledge on the subject. Thanks.
Fall Back Son is offline   Reply With Quote
Old Jun 19th, 2007, 3:59 AM   #2
mrynit
Hobbyist Programmer
 
mrynit's Avatar
 
Join Date: Mar 2006
Location: WA, USA
Posts: 343
Rep Power: 3 mrynit is on a distinguished road
Send a message via AIM to mrynit Send a message via MSN to mrynit Send a message via Yahoo to mrynit Send a message via Skype™ to mrynit
http://revision3.com/thebroken/ep1

http://www.twit.tv/sn89

http://www.hak5.org/episodes/ ep 2x07
__________________
i dont know much about programming but i try to help
mrynit is offline   Reply With Quote
Old Jun 19th, 2007, 7:52 AM   #3
john Wesley
Hobbyist Programmer
 
john Wesley's Avatar
 
Join Date: May 2006
Location: United Kingdom
Posts: 119
Rep Power: 3 john Wesley is on a distinguished road
Send a message via MSN to john Wesley Send a message via Yahoo to john Wesley
http://www.remote-exploit.org/

Backtrack2 from the above link is the easiest way (I know of) to check the integrity of the security of a wireless network. If you cant exploit it with Backtrack then either:

A) It does not have driver support for your wireless card or

B) The network is 100%, which I have never seen before.
__________________
Mona Lisa must of had the highway blues you can tell by the way she smiles..
john Wesley is offline   Reply With Quote
Old Jun 19th, 2007, 4:44 PM   #4
Fall Back Son
Professional Programmer
 
Join Date: Oct 2006
Posts: 311
Rep Power: 3 Fall Back Son is on a distinguished road
thanks guys, I would never have stumbled across those links on my own... and lol @ the broken episode playing the music from "living in a gangsters paradise" (you might know it as living in an amish paradise by weird al though.

he didn't explain what a weak key was. I'm assuming its a packet which contains encryption which isn't as strong as other packets. why though?

and lol @ the pizza thing. owned.

Last edited by Fall Back Son; Jun 19th, 2007 at 4:55 PM.
Fall Back Son is offline   Reply With Quote
Old Jun 19th, 2007, 4:46 PM   #5
mrynit
Hobbyist Programmer
 
mrynit's Avatar
 
Join Date: Mar 2006
Location: WA, USA
Posts: 343
Rep Power: 3 mrynit is on a distinguished road
Send a message via AIM to mrynit Send a message via MSN to mrynit Send a message via Yahoo to mrynit Send a message via Skype™ to mrynit
nmap, etherreal and metasploit are some good tools
__________________
i dont know much about programming but i try to help
mrynit is offline   Reply With Quote
Old Jun 19th, 2007, 4:58 PM   #6
Fall Back Son
Professional Programmer
 
Join Date: Oct 2006
Posts: 311
Rep Power: 3 Fall Back Son is on a distinguished road
yeah but I'm not interested in breaking a wireless network. if that was the case I'm sure I could download some programs and read directions on their use. I'm interested in the technical aspects, such as how WEP encryption is breakable, etc. Maybe I just don't understand how the network is encrypted, but I've been reading up on it.
Fall Back Son is offline   Reply With Quote
Old Jun 19th, 2007, 7:11 PM   #7
john Wesley
Hobbyist Programmer
 
john Wesley's Avatar
 
Join Date: May 2006
Location: United Kingdom
Posts: 119
Rep Power: 3 john Wesley is on a distinguished road
Send a message via MSN to john Wesley Send a message via Yahoo to john Wesley
public/private key encryption.

The public key is stored in each destined packet when sent along with your encrypted WEP key, we can then receive it and with our private key and the public key decrypt the WEP key, or not depending on whether we have the correct key-pairs to decrypt it.

If only it were that simple...?

Does anyone here actually have a good knowledge of wireless networks? As it would be nice to have some confirmation.
__________________
Mona Lisa must of had the highway blues you can tell by the way she smiles..
john Wesley is offline   Reply With Quote
Old Jun 19th, 2007, 8:55 PM   #8
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
Quote:
Originally Posted by john Wesley View Post
public/private key encryption.

The public key is stored in each destined packet when sent along with your encrypted WEP key, we can then receive it and with our private key and the public key decrypt the WEP key
Check your facts.

WEP uses a stream cipher, specifically RC4. It serves the purpose of generating a more or less random stream of bits for a given key. The resulting random data is then XORed with the data that needs to be encrypted. In the case of WEP this is wireless traffic.

In order for the encryption to be useful, the Bad Guys(tm) can't know your key. If they know your key, they can generate the same stream of bits to XOR with your traffic and read it, or even generate their own and associate with the access point.

The key used for a given packet consists of the initialization vector (IV) as well as the key that you must configure for each wireless device (the one we're looking for). The IV is random and included, in the clear, in each packet. The reason is that repeated keys in RC4 are bad. Using the user configured key on each packet on its own isn't a good idea.

The IV is supposed to prevent this. The effective RC4 key keeps changing -- part of it is secret, and the plaintext IV is supposed to be useless to the attacker since the combined key can't be derived from the payload. But the problem is that the IV is too short -- chances are very good in fact (birthday paradox) that multiple packets will have the same key. Coupled with some other weaknesses, including the fact that the first byte of the unencrypted data is almost always the same due protocol specs, the all-important key can be derived from a reasonable number of packets.

More details here, in annoying detail.
PDF Warning
http://www.rootsecure.net/content/do...p_analysis.pdf
http://www.drizzle.com/~aboba/IEEE/rc4_ksaproc.pdf

More useful stuff, but less reliable:
http://en.wikipedia.org/wiki/Stream_cipher_attack
http://en.wikipedia.org/wiki/Wired_Equivalent_Privacy
http://en.wikipedia.org/wiki/RC4
http://en.wikipedia.org/wiki/Birthday_paradox
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Jun 19th, 2007, 10:20 PM   #9
john Wesley
Hobbyist Programmer
 
john Wesley's Avatar
 
Join Date: May 2006
Location: United Kingdom
Posts: 119
Rep Power: 3 john Wesley is on a distinguished road
Send a message via MSN to john Wesley Send a message via Yahoo to john Wesley
Quote:
Originally Posted by Dameon
Check your facts.
Quote:
Originally Posted by me
If only it were that simple...?

Does anyone here actually have a good knowledge of wireless networks? As it would be nice to have some confirmation.
Kind of implying there that I dont know the facts, or at least I thought so...
__________________
Mona Lisa must of had the highway blues you can tell by the way she smiles..
john Wesley is offline   Reply With Quote
Old Jun 19th, 2007, 11:44 PM   #10
Fall Back Son
Professional Programmer
 
Join Date: Oct 2006
Posts: 311
Rep Power: 3 Fall Back Son is on a distinguished road
I read your post and attempted to read the links, but both were over my head. I do appreciate you trying to help though... it's frustrating not understand most of this stuff.

Fall Back Son is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with Encryption program! crypter C# 1 Feb 9th, 2005 11:23 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:48 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC