Saturday, January 2, 2010

How to Hack WEP Key with Backtrack 3

To crack WEP, you'll need to launch Konsole, BackTrack's built-in command line. It's right there on the taskbar in the lower left corner, second button to the right. Now, the commands.

First run the following to get a list of your network interfaces:

airmon-ng

The only one I've got there is labeled ra0. Yours may be different; take note of the label and write it down. From here on in, substitute it in everywhere a command includes (interface).

Now, run the following four commands. See the output that I got for them in the screenshot below.


airmon-ng stop (interface)
ifconfig (interface) down
macchanger --mac 00:11:22:33:44:55 (interface)
airmon-ng start (interface)

If you don't get the same results from these commands as pictured here, most likely your network adapter won't work with this particular crack. If you do, you've successfully "faked" a new MAC address on your network interface, 00:11:22:33:44:55.

Now it's time to pick your network. Run:

airodump-ng (interface)

To see a list of wireless networks around you. When you see the one you want, hit Ctrl+C to stop the list. Highlight the row pertaining to the network of interest, and take note of two things: its BSSID and its channel (in the column labeled CH), as pictured below. Obviously the network you want to crack should have WEP encryption (in the ENC) column, not WPA or anything else.

Like I said, hit Ctrl+C to stop this listing. (I had to do this once or twice to find the network I was looking for.) Once you've got it, highlight the BSSID and copy it to your clipboard for reuse in the upcoming commands.

Now we're going to watch what's going on with that network you chose and capture that information to a file. Run:

airodump-ng -c (channel) -w (file name) --bssid (bssid) (interface)

Where (channel) is your network's channel, and (bssid) is the BSSID you just copied to clipboard. You can use the Shift+Insert key combination to paste it into the command. Enter anything descriptive for (file name). I chose "yoyo," which is the network's name I'm cracking.



You'll get output like what's in the window in the background pictured below. Leave that one be. Open a new Konsole window in the foreground, and enter this command:

aireplay-ng -1 0 -a (bssid) -h 00:11:22:33:44:55 -e (essid) (interface)

Here the ESSID is the access point's SSID name, which in my case is yoyo. What you want to get after this command is the reassuring "Association successful" message with that smiley face.

You're almost there. Now it's time for:

aireplay-ng -3 -b (bssid) -h 00:11:22:33:44:55 (interface)

Here we're creating router traffic to capture more throughput faster to speed up our crack. After a few minutes, that front window will start going crazy with read/write packets. (Also, I was unable to surf the web with the yoyo network on a separate computer while this was going on.) Here's the part where you might have to grab yourself a cup of coffee or take a walk. Basically you want to wait until enough data has been collected to run your crack. Watch the number in the "#Data" column—you want it to go above 10,000. (Pictured below it's only at 854.)

Depending on the power of your network (mine is inexplicably low at -32 in that screenshot, even though the yoyo AP was in the same room as my adapter), this process could take some time. Wait until that #Data goes over 10k, though—because the crack won't work if it doesn't. In fact, you may need more than 10k, though that seems to be a working threshold for many.



Once you've collected enough data, it's the moment of truth. Launch a third Konsole window and run the following to crack that data you've collected:

aircrack-ng -b (bssid) (file name-01.cap)

Here the filename should be whatever you entered above for (file name). You can browse to your Home directory to see it; it's the one with .cap as the extension.

If you didn't get enough data, aircrack will fail and tell you to try again with more. If it succeeds, it will look like this:

The WEP key appears next to "KEY FOUND." Drop the colons and enter it to log onto the network.

Detailed Guide for Resource Hacker (XP)

Here are a few COMMON changes/hacks, which most of the people want to make in Windows. In this tutorial, we'll tell you the exact location of the things, you want to change:

Changing look of RUN Dialog Box

Open %windir%\System32\shell32.dll file, and goto: Dialog -> 1003 -> 1033.

Changing Progress Dialog Box (The box which appears while Copying/pasting/deleting stuffs)

Open %windir%\System32\shell32.dll file, and goto: Dialog -> 1020 -> 1033.

Changing look of Open With box

Open %windir%\System32\shell32.dll file, and goto: Dialog -> 1063 -> 1033 & Dialog -> 1070 -> 1033.

Changing look of Classic Logoff dialog box

Open %windir%\System32\shell32.dll file, and goto: Dialog -> 1071 -> 1033.

Changing look of Drive Properties box

Open %windir%\System32\shell32.dll file, and goto: Dialog -> 1080 -> 1033 & Dialog -> 1081 -> 1033.

Changing look of New Logoff dialog box

Open %windir%\System32\shell32.dll file, and goto: Dialog -> 1089 -> 1033.

Changing look of the box, which appears when Windows asks to select application/search with web service to open the UNKNOWN file type

Open %windir%\System32\shell32.dll file, and goto: Dialog -> 1091 -> 1033.

Changing look of Autoplay box

Open %windir%\System32\shell32.dll file, and goto: Dialog -> 1119 -> 1033.

Changing look of Folder Customize box

Open %windir%\System32\shell32.dll file, and goto: Dialog -> 1124 -> 1033.

Changing look of Windows Default CD Writing Wizard

Open %windir%\System32\shell32.dll file, and goto: Dialog -> 1125 to 1138 -> 1033.

Changing look of Classic Shutdown dialog box

Open %windir%\System32\shell32.dll file, and goto: Dialog -> 8226 -> 1033.

Changing look of About Windows dialog box

Open %windir%\System32\shell32.dll file, and goto: Dialog -> 14352 -> 1033.

Changing look of Format Drive dialog box

Open %windir%\System32\shell32.dll file, and goto: Dialog -> 28672 -> 1033.

Changing look of Scandisk dialog box

Open %windir%\System32\shell32.dll file, and goto: Dialog -> 28800 -> 1033.

Changing look of Desktop tab in Desktop Properties box

Open %windir%\System32\shell32.dll file, and goto: Dialog -> 29952 to 29956 -> 1033.

Changing look of Folder Options box

Open %windir%\System32\shell32.dll file, and goto: Dialog -> 29959 & 29960 -> 1033.

Changing look of DOS Properties box

Open %windir%\System32\shell32.dll file, and goto: Dialog -> 32768 - 32885 -> 1033.

Changing look of Taskbar & Start Menu Properties box

Open %windir%\Explorer.exe file, and goto: Dialog -> 6 to 1135 -> 1033.

Changing look of Windows Security box, which appears when we press ++ keys while Welcome Screen is Disabled

Open %windir%\System32\Msgina.dll file, and goto: Dialog -> 1800 -> 1033.

Changing look of Shutdown Reason UI box

Open %windir%\System32\Msgina.dll file, and goto: Dialog -> 2200 -> 1033.

Changing look of New Shutdown dialog box

Open %windir%\System32\Msgina.dll file, and goto: Dialog -> 20100 -> 1033.

Changing look of Shutdown Timer box

Open %windir%\System32\WinLogon.exe file, and goto: Dialog -> 1300 -> 1033.

Changing look of System Properties box

Open %windir%\System32\Sysdm.cpl file, and goto: Dialog -> 41 to 4103 -> 1033.

Changing look of Choose Color box

Open %windir%\System32\Comdlg32.dll file, and goto: Dialog -> CHOOSECOLOR -> 1033.

Changing look of Choose Font box

Open %windir%\System32\Comdlg32.dll file, and goto: Dialog -> 401 & 1543 -> 1033.

Changing look of Printer Properties box

Open %windir%\System32\Comdlg32.dll file, and goto: Dialog -> 1538 & 1539 & 1546 -> 1033.

Changing look of Open/Save Dialog box

Open %windir%\System32\Comdlg32.dll file, and goto: Dialog -> 1547 * 1552 -> 1033.

Changing look of Many tabs in Desktop Properties box

Open %windir%\System32\ThemeUI.dll file, and goto: Dialog -> 1000 to 1017 -> 1033.

Changing look of Classic Programs Menu

Open %windir%\Explorer.exe file, and goto: Menu -> 204 -> 1033.

Changing look of Taskbar Context Menu

Open %windir%\Explorer.exe file, and goto: Menu -> 205 -> 1033.

Changing the Start button Text

Open %windir%\Explorer.exe file, and goto: String Table -> 37 -> 1033 -> 578 (For New Theme) & String Table -> 38 -> 1033 -> 595 (For Classic Theme).

Changing the Start Button Tool-Tip Text

Open %windir%\Explorer.exe file, and goto: String Table -> 51 -> 1033 -> 800.

Changing the Log off, Shutdown, Search, Help & Support, Run, etc. Text entries in New Start Menu

Open %windir%\Explorer.exe file, and goto: String Table -> 439 -> 1033.

Changing the Internet & E-Mail text in New Start Menu

Open %windir%\Explorer.exe file, and goto: String Table -> 440 -> 1033.

Changing the All Programs text in New Start Menu

Open %windir%\Explorer.exe file, and goto: String Table -> 515 -> 1033 -> 8226.

Changing Connect to, Control Panel, Favorites, My Recent Documents text entries in New Start Menu

Open %windir%\Explorer.exe file, and goto: String Table -> 515 -> 1033.

Changing Start Button Icon

Open %windir%\Explorer.exe file, and goto: Bitmap -> 143 -> 1033.

Changing Left-Side Image in Classic Start Menu

Open %windir%\Explorer.exe file, and goto: Bitmap -> 167 -> 1033.

List of system files that can be edited using Resource Hacker in VISTA

Approx. all Windows Vista system icons -> %windir%\System32\imageres.dll

Login Screen Background -> %windir%\System32\imageres.dll

Startup ORB animation images -> %windir%\System32\authui.dll

Startup ORB Sound -> %windir%\System32\imageres.dll

Shutdown/ lock, etc. buttons in Startmenu -> %windir%\Explorer.exe -> Bitmap -> 7051 - 7056

Windows Version Image in About Windows dialog box -> %windir%\Branding\Basebrd\basebrd.dll

Windows Version Image in Login Screen bottom -> %windir%\Branding\Basebrd\basebrd.dll

Classic Start button flag and Classic Start menu left side image -> %windir%\Branding\Shellbrd\shellbrd.dll

Control Panel Left Sidebar Bottom Image -> %windir%\System32\Shell32.dll -> Bitmap -> 632

Back & Forward, Search, Stop, Refresh buttons in Windows Explorer -> %windir%\System32\browseui.dll

Back & Forward, Search, Stop, Refresh, Progress animation, tabs, tab close, etc. buttons in Internet Explorer -> %windir%\System32\ieframe.dll

Welcome Center Images -> %windir%\System32\oobefldr.dll

Boot Screen background image in "No GUI boot" condition -> %windir%\System32\en-US\Winload.exe.mui

Windows Media Player Resources -> %windir%\System32\wmploc.dll

Above are the new system files/locations in Windows Vista which were not present in earlier versions, likeXP. But if you want to change look of various dialog boxes like RUN, Progress, System Properties, Startmenu and Taskbar Properties, etc. Then you'll have to edit the same system files which you used to edit in Windows XP. The difference is, now those files don't contain the resources but their .MUI files do.

So if you want to edit RUN dialog box which was present in "%windir%\System32\Shell32.dll" file in XP, is now present in "%windir%\System32\en-US\Shell32.dll.mui" file in Windows Vista.

So in following list, I'll tell you where all those files are present in Windows Vista:

All those files are present in any of following 2 locations:

%windir%\en-US\
%windir%\System32\en-US\

List of system files that can be edited using Resource Hacker in XP

%windir%\System32\NToskrnl.exe : To change Windows Boot screen

%windir%\System32\Logonui.exe : To change Windows Login Screen

%windir%\System32\MSgina.dll : To change the text & background of Shutdown dialog box

%windir%\System32\Shell32.dll : To change a lot of things, like Progress dialog box (copying, deleting, etc.), Run dialog box, Context menu items, and many other things

%windir%\System32\Netshell.dll : To change flashing internet icon in system tray

%windir%\System32\Comdlg32.dll : To change the look of Open/Save dialog box, color box, print box, find & replace box, etc.

%windir%\System32\Comctl32.dll : To change the icons appearing in upper-right side of Open/Save dialog box.

%windir%\System32\Stobject.dll : To change volume icon & some other icons in system tray

%windir%\System32\mydocs.dll : To change My Documents icon

%windir%\System32\shdocvw.dll : To change Internet Explorer 6 icons and graphics

%windir%\System32\IEFrame.dll : To change Internet Explorer 7 icons and graphics

%windir%\System32\shimgvw.dll : To change image file icons, i.e., BMP, JPG, JPEG, GIF, etc

%windir%\System32\Sysdm.cpl : To change the System Properties window look

%windir%\System32\Winlogon.exe : To change the text, which you see in Login Screen, like applying user settings, logging off, shutting down, etc.

%windir%\Explorer.exe : To change Start button text, Programs Menu text (like Programs, Favorites, Documents, etc.)

%windir%\System32\browselc.dll : To change the Menu names in Windows Explorer as well as Internet Explorer

Windows XP Setup folder\I386\Winntbbu.dll : To change XP Setup look and text entries