特殊:Badtitle/NS100:CrackingWEP
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/CrackingWEP }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/af | • {{#if: UbuntuHelp:CrackingWEP|Afrikaans| [[::CrackingWEP/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/ar | • {{#if: UbuntuHelp:CrackingWEP|العربية| [[::CrackingWEP/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/az | • {{#if: UbuntuHelp:CrackingWEP|azərbaycanca| [[::CrackingWEP/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/bcc | • {{#if: UbuntuHelp:CrackingWEP|جهلسری بلوچی| [[::CrackingWEP/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/bg | • {{#if: UbuntuHelp:CrackingWEP|български| [[::CrackingWEP/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/br | • {{#if: UbuntuHelp:CrackingWEP|brezhoneg| [[::CrackingWEP/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/ca | • {{#if: UbuntuHelp:CrackingWEP|català| [[::CrackingWEP/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/cs | • {{#if: UbuntuHelp:CrackingWEP|čeština| [[::CrackingWEP/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/de | • {{#if: UbuntuHelp:CrackingWEP|Deutsch| [[::CrackingWEP/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/el | • {{#if: UbuntuHelp:CrackingWEP|Ελληνικά| [[::CrackingWEP/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/es | • {{#if: UbuntuHelp:CrackingWEP|español| [[::CrackingWEP/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/fa | • {{#if: UbuntuHelp:CrackingWEP|فارسی| [[::CrackingWEP/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/fi | • {{#if: UbuntuHelp:CrackingWEP|suomi| [[::CrackingWEP/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/fr | • {{#if: UbuntuHelp:CrackingWEP|français| [[::CrackingWEP/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/gu | • {{#if: UbuntuHelp:CrackingWEP|ગુજરાતી| [[::CrackingWEP/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/he | • {{#if: UbuntuHelp:CrackingWEP|עברית| [[::CrackingWEP/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/hu | • {{#if: UbuntuHelp:CrackingWEP|magyar| [[::CrackingWEP/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/id | • {{#if: UbuntuHelp:CrackingWEP|Bahasa Indonesia| [[::CrackingWEP/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/it | • {{#if: UbuntuHelp:CrackingWEP|italiano| [[::CrackingWEP/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/ja | • {{#if: UbuntuHelp:CrackingWEP|日本語| [[::CrackingWEP/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/ko | • {{#if: UbuntuHelp:CrackingWEP|한국어| [[::CrackingWEP/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/ksh | • {{#if: UbuntuHelp:CrackingWEP|Ripoarisch| [[::CrackingWEP/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/mr | • {{#if: UbuntuHelp:CrackingWEP|मराठी| [[::CrackingWEP/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/ms | • {{#if: UbuntuHelp:CrackingWEP|Bahasa Melayu| [[::CrackingWEP/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/nl | • {{#if: UbuntuHelp:CrackingWEP|Nederlands| [[::CrackingWEP/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/no | • {{#if: UbuntuHelp:CrackingWEP|norsk| [[::CrackingWEP/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/oc | • {{#if: UbuntuHelp:CrackingWEP|occitan| [[::CrackingWEP/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/pl | • {{#if: UbuntuHelp:CrackingWEP|polski| [[::CrackingWEP/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/pt | • {{#if: UbuntuHelp:CrackingWEP|português| [[::CrackingWEP/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/ro | • {{#if: UbuntuHelp:CrackingWEP|română| [[::CrackingWEP/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/ru | • {{#if: UbuntuHelp:CrackingWEP|русский| [[::CrackingWEP/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/si | • {{#if: UbuntuHelp:CrackingWEP|සිංහල| [[::CrackingWEP/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/sq | • {{#if: UbuntuHelp:CrackingWEP|shqip| [[::CrackingWEP/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/sr | • {{#if: UbuntuHelp:CrackingWEP|српски / srpski| [[::CrackingWEP/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/sv | • {{#if: UbuntuHelp:CrackingWEP|svenska| [[::CrackingWEP/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/th | • {{#if: UbuntuHelp:CrackingWEP|ไทย| [[::CrackingWEP/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/tr | • {{#if: UbuntuHelp:CrackingWEP|Türkçe| [[::CrackingWEP/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/vi | • {{#if: UbuntuHelp:CrackingWEP|Tiếng Việt| [[::CrackingWEP/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/yue | • {{#if: UbuntuHelp:CrackingWEP|粵語| [[::CrackingWEP/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/zh | • {{#if: UbuntuHelp:CrackingWEP|中文| [[::CrackingWEP/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/zh-hans | • {{#if: UbuntuHelp:CrackingWEP|中文(简体)| [[::CrackingWEP/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CrackingWEP | UbuntuHelp:CrackingWEP | {{#if: | :}}CrackingWEP}}/zh-hant | • {{#if: UbuntuHelp:CrackingWEP|中文(繁體)| [[::CrackingWEP/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:CrackingWEP|:CrackingWEP|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :CrackingWEP/zh | | {{#ifexist: CrackingWEP/zh | | {{#ifeq: {{#titleparts:CrackingWEP|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:CrackingWEP|1|-1|}} | zh | | }}
This page is provided for educational purposes only. Gaining access to networks without permission is illegal
Cracking WEP with Ubuntu dapper 6.06
This entry should enable anyone to get Linux up and running and crack a WEP key. It took me about 2 days and myriad tutorials to finally get this to work, and now that I have I feel that I should share it with everyone. I am by no means a Linux expert, but this works regardless. All you need is a old laptop with a wireless card and a copy of Ubuntu Linux, currently one of the most popular and easily installed distributions of linux. If you haven’t already bought a wireless card, you should select one from this list to save yourself some trouble. 1. The first step is to add the extra repositories.Adding Repositories Make sure your box can connect to the internet. If you can only connect via wireless and are having problems, there is a package called Wi-Fi radar that is helpful. 2. Now we have to install build-essential, linux-source, linux-headers and shareutils packages from the repository and aircrack, kismet, and airsnort packages from the Universer Repository. 3. Next, you should update your entire system and once that is done reboot your system. After this is done, it’s time to patch the Madwifi drivers. 4. This is where everything can be tricky. My wireless card (Linksys WPC55AG) uses the Atheros driver, which I needed to patch. If you have a different driver, you’re going to need to find out whether or not you need to patch your drivers, or if they’ll even work with the Aircrack suite. The forums at aircrack-ng.org are a good place to look and so is a google search. If you have an Atheros card, it will be called ath0 when you type iwconfig in the terminal window, or there will be a line that says Ethernet controller: Atheros Communications… when you type lspci in the terminal. 5. If you are using the Atheros driver, next we need to configure kismet to use the right source. If you are using another driver you’ll have to look up what syntax you use. First navigate to the Kismet config, /etc/kismet/kismet.conf, then change the source line. Change the line that begins with ’source=’ to ’source=madwifi_ag,ath0,madwifi’. Now reboot the computer. After it boots back up you should be able to access the internet again via your wireless card. 6. Now we can begin cracking. Open up a terminal window, enter monitor mode, and run kismet.
sudo airmon start ath0 sudo kismet
7. Locate the wireless network you want to crack, and note its ESSID and channel. Then exit by pressing Ctrl-C.
Next, run airodump.
sudo airodump filename ath0 channel# 1
The one at the end lets Airodump know we only want to capture IV’s. The filename can be anything you want, and will be saved in your home directory (or whatever directory you run the command from) as filename.ivs. 8. Copy the Essid of the wireless network from the airodump window by selecting it and pressing Shift+Ctrl+C. Open up a new terminal window so we can run aireplay to start injecting packets so our data count goes up. We want the data column in airodump to reach between 100,000 and 400,000. The more packets we have, the faster aircrack can find the WEP key. If the WEP key is 128 bits, we may need up to 1,000,000 packets.
sudo aireplay -3 -b BSSID -h 0:1:2:3:4:5 ath0
9. This should associate the network with the wireless connection. If it times out repeatedly, you need to be closer to the wireless router or change your interface rate by typing ’sudo iwconfig ath0 rate 1M’.
Next we want to start injecting packets.
sudo aireplay -1 0 -e ESSID -a BSSID -h 0:1:2:3:4:5 ath0
At first, it will only read packets, and say 0 ARP requests and 0 packets sent. Just wait a minute or two and it will start sending packets in large quantities. If it returns text that says it has been deauthorized, press Ctrl+C and run the command again. You can try to speed things up by entering this command:
sudo aireplay -0 ath0 -a BSSID ath0
Otherwise just sit back and wait. As soon as packets begin to be sent, the data field in Airodump should start flying. Wait until the desired number of packets have been recieved, then open a new terminal window and run aircrack.
sudo aircrack filename.ivs
10. After a minute, aircrack should return the WEP key. If it doesn’t, collect more packets.
References
http://aircrack-ng.org/doku.php?id=faq#which_is_the_best_card_to_buy
External links
http://packages.ubuntu.com/dapper/net/wifi-radar http://aircrack-ng.org/doku.php?id=faq#which_is_the_best_card_to_buy http://airdump.net/hacking-wifi-ultimate-ubuntu-guide