









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Group Number: _________ Member Names: ___________________ _______________________ Date Assigned: Date Due: Last Edited: April 29, 2007 Lab Authored By: Oscar Salazar & Anne Hewitt Please read the entire lab and any extra materials carefully before starting. Be sure to start early enough so that you will have time to complete the lab. Answer ALL questions in the Answer Sheet and be sure you turn in ALL materials listed in the Turn-in Checklist on or before the Date Due. NOTE: Part of the lab requires you to reserve slots to use the equipment. The signup sheets will be posted on the lab door. The equipment you need to sign up for will not be available at the last minute. PLAN AHEAD.
Kismet and Aircrack to detect and penetrate wireless networks. We will sniff packets to obtain MAC addresses to get around filters and crack a WEP key and snoop on the traffic in the network.
address, crack WEP, perform a Man in the Middle attack, and snoop on wireless traffic.
Introduction IEEE RFC 802.11 denotes a set of Wireless LAN standards developed by working group 11 of the IEEE LAN/MAN Standards Committee (IEEE 802). This set of standards is commonly called “Wi-Fi.” The 802.11 family currently includes six over-the-air modulation techniques that all use the same protocol, the most popular (and prolific) techniques are those defined by the a, b, and g amendments to the original standard; security was originally included, and
was later enhanced via the 802.11i amendment. Other standards in the family (c–f, h–j, n) are service enhancement and extensions, or corrections to previous specifications. 802.11b was the first widely accepted wireless networking standard, followed (somewhat counter intuitively) by 802.11a and 802.11g. 802.11b and 802.11g standards use the unlicensed 2.4 GigaHertz (GHz) band. Operating in an unregulated frequency band, 802.11b and 802.11g equipment can incur interference from microwave ovens, cordless phones, and other appliances using the same 2.4 GHz band. The equipment in the lab is capable of using either the 802.11a or 802.11b protocol. We will be using 802.11b. Wireless Network Security SSID Hiding The broadcast properties of wireless technology makes it vulnerable to a series of attacks. Snooping on a wireless network consists of using a laptop, a wireless card, and some software while being in transmission range of a wireless network. The service set identifier, or SSID, is the name of the wireless network and it can be used to gain access. Turning off SSID broadcasting means that no one can see it by using an auto find of networks. However, if you leave the default SSID unchanged, a hacker could try the common SSIDs and connect to your network if there is no other security on the network. MAC Address Filtering MAC address filtering can be used to increase the security of your network. It works by allowing only a set list of network cards to connect based upon their known MAC address, which should be unique for every device. However, MAC address can be captured by snooping and then spoofed which will then allow an attacker to gain access. Most wireless cards now allow MAC addresses to be changed, so this is does not adequately work as a security feature either. WEP Encryption If a user activates WEP, the wireless encrypts the payload (frame body and CRC) of each 802.11 frame before transmission using an RC4 stream cipher provided by RSA Security. The receiving station, such as an access point or another radio NIC, performs decryption upon arrival of the frame. As a result, 802.11 WEP only encrypts data between 802.11 stations. Once the frame enters the wired side of the network, such as between access points, WEP no longer applies. As part of the encryption process, WEP prepares a keyschedule ("seed") by concatenating the shared secret key supplied by the user of the sending station with a random-generated 24-bit initialization vector (IV). The IV lengthens the life of the secret key because the station can change the IV for each frame transmission. WEP inputs the resulting "seed" into a pseudo-random number generator that produces a keystream equal to the length of the frame's payload plus a 32-bit integrity check value (ICV).
The static nature of the shared secret keys emphasizes this problem. 802. doesn't provide any functions that support the exchange of keys among stations. As a result, system administrators and users generally use the same keys for weeks, months, and even years. This gives mischievous culprits plenty of time to monitor and hack into WEP-enabled networks. Due to this, WEP is very easily cracked. In 2005, a group from the U.S. Federal Bureau of Investigation gave a demonstration where they broke a WEP-protected network in 3 minutes using publicly available tools. We will perform some of these attacks. One of the most basic attacks a hacker can perform once finding a wireless network is to identify the access point, AP, and check to see if the default settings are in use. A large number of home users, and some businesses, do not change their settings on their AP. Once the brand of the device is known, its default settings are easy to lookup on the Internet, as companies publish them so people can use their devices. [6] Lab Scenario: Two machines will be setup by the TAs to simulate a wireless network. One of those machines will be a wired connection to a Wireless Access Point, which is a Linksys WMP55AG. There will be a client connected to through wireless and constantly sending data on the network. You will be using two of our lab machines to get access to the wireless network & see what the machines are doing. Both machines will be running a BackTrack2 live machines. The machines, called Attacker 1 & Attacker 2, will do different things, so make sure you look at which machine we say to use. Software: WireShark - http://www.wireshark.com/ BackTrack2 - http://www.remote-exploit.org/backtrack.html Aircrack - http://www.cr0.net:8040/code/network/aircrack/ Aircrack-ptw http://www.cdc.informatik.tu-darmstadt.de/aircrack-ptw/ Kismet - http://www.kismetwireless.net/ Signup: There is only one setup for this lab so you will need to sign up in advance. Your group may sign up for a maximum of 2 hours in the future. Do not abuse this rule! Once you have used your “two hours” you may sign up again for another hour. You are never allowed to have more than 2 hours scheduled in the future. If you do not show up within the first 15 minutes, you forfeit your reservation and someone else may claim your reservation. The reservation sheet is located on the door of Klaus 2446. You do not have to demo anything to the TAs so you may work whenever you want.
The setup for the wireless lab is shown in below. The monitor for each machine is labeled accordingly. Section 1: Reconnaissance on the network One reason for poor security in wireless networks has nothing to do with the technology; it is due to the operators. Most consumer wireless devices are extremely easy to setup. Many users hook up the equipment and when it works, they do not modify its settings. This leaves huge security holes. We will be exploring a network that does have some security features implemented on it. It will be your job to break into the network and snoop on what is going on inside. Step 0 – Attacker 1 & 2
Attacker 1 Only Now we will try to inject some packets to get a better chance of finding the key. When we say
Step 6 - Attacker 1 Now that we have the WEP key we are going to snoop the traffic in the network.
ifconfig rausb0 up iwconfig rausb0 essid
enc <WEP w/o colons> mode managed dhcp rausb_
[1] http://en.wikipedia.org/wiki/IEEE_802. [2] http://en.wikipedia.org/wiki/WEP [3] http://en.wikipedia.org/wiki/RC [4] http://www.securityfocus.com/infocus/ [5] http://www.cr0.net:8040/code/network/aircrack/ [6] http://www.wi-fiplanet.com/tutorials/article.php/
Appendix A – Why WEP is Insecure Data security in 802.11 is usually accomplished by Wired Equivalent Privacy (WEP). The RC4 stream-cipher algorithm is used to encrypt the data. WEP relies on a secret key, normally 40 bits, and an initialization vector (IV), which is 24 bits, as a seed for the algorithm. The encryption of a frame proceeds as follows: RC4 generates a pseudorandom stream of bits (a "keystream") which, for encryption, is combined with the plaintext using XOR as with any Vernam cipher; decryption is performed the same way. To generate the keystream, the cipher makes use of a secret internal state which consists of two parts:
Group Number: _________ Member Names: ___________________ _______________________ Wireless Security Question 1: What is the MAC address of the AP? Question 2: What is the MAC address of the client? Question 3: How many packets did it take your group to crack the WEP key? Question 4: What was the WEP? Question 5: What messages do you see being sent? What kind of activity are you sniffing? Questions 6: Take a screenshot (Start->Screenshot) of the TCP stream with the sniffed traffic. Attach it to your answers. Question 7: What makes WPA2 better than WEP?
How long did it take you to complete this lab? Was it an appropriate length lab? What corrections and/or improvements do you suggest for this lab? Please be very specific and if you add new material give the exact wording and instructions you would give to future students in the new lab handout. You may cross out and edit the text of the lab on previous pages to make minor corrections/suggestions. General suggestions like add tool xyz to do more capable scanning will not be awarded extras points even if the statement is totally true. Specific text that could be cut and pasted into this lab, completed exercises, and completed solutions may be awarded additional credit. Thus if tool xyz adds a capability or additional or better learning experience for future students here is what you need to do. You should add that tool to the lab by writing new detailed lab instructions on where to get the tool, how to install it, how to run it, what exactly to do with it in our lab, example outputs, etc. You must prove with what you turn in that you actually did the lab improvement yourself. Screen shots and output hardcopy are a good way to demonstrate that you actually completed your suggested enhancements. The lab addition section must start with the form “laboratory Additions Cover Sheet” which may be found on the class web site.