Skip to content

Latest commit

 

History

History
33 lines (17 loc) · 3.18 KB

tools.md

File metadata and controls

33 lines (17 loc) · 3.18 KB

Tools

Programming Language

C++ language will be used in this chapter. It is recommended to use freeware Visual Studio 2015 Community IDE instead of the open source MinGW environment. MinGW has issues with importing of some Windows libraries for example dbghelp.dll. You can try to compile examples of this chapter with MinGW but you should be ready to switch to Visual Studio IDE in case of issues.

Do not forget to update your Internet Explorer application to 11 version for usage Visual Studio IDE 2015.

Windows SDK will be used here to access Windows Native API and to link with the ntdll.dll library.

Debugger

OllyDbg is a freeware debugger that will be used in this chapter. It has a user-friendly graphical interface that simplifies studying this debugger. OllyDbg provides wide functionality to analyze Windows applications without a source code. It allows you to debug and disassemble 32-bit Windows applications only.

x64dbg is an open source debugger for Windows. It has almost the same user-friendly interface as OllyDbg. The x64dbg supports both 32-bit and 64-bit applications. It has fewer features when OllyDbg debugger. Therefore, some calculations should be performed manually to analyze a process memory. It is recommended to use x64dbg for debugging 64-bit applications only and OllyDbg in other cases.

WinDbg is a freeware debugger with extremely powerful features that allow you to debug user mode applications, device drivers, Windows libraries, and kernel. WinDbg supports both 32-bit and 64-bit applications. A poor user interface is only one serious drawback of this debugger. This drawback can be solved by the special theme that improves the interface and makes it look like OllyDbg one. Most of the WinDbg features are available through commands.

These are steps to install a new theme for WinDbg:

  1. Unpack all files from the windbg-workspace-master.zip archive to the directory with themes. This is a path to this directory for default WinDbg installation: C:\Program Files (x86)\Windows Kits\8.1\Debuggers\x64\themes.

  2. Launch the windbg.reg file and press "Yes" button in both dialog pop-up windows.

Now the main window of WinDbg should look like this screenshot:

WinDbg Theme

Memory Analyzing Tools

Cheat Engine is an open source tool that combines features of memory scanner, debugger and hex editor. Cheat Engine allows you to find an address of the specific variable in process memory and to modify it.

HeapMemView is a freeware utility for analysis heap segments of the process. There are two separate versions of the utility for analysis 32-bit and 64-bit Windows applications.