Skip to Main Content
Sockets, Shellcode, Porting, and Coding: Reverse Engineering Exploits and Tool Coding for Security Professionals
book

Sockets, Shellcode, Porting, and Coding: Reverse Engineering Exploits and Tool Coding for Security Professionals

by James C Foster
April 2005
Intermediate to advanced content levelIntermediate to advanced
700 pages
20h 39m
English
Syngress
Content preview from Sockets, Shellcode, Porting, and Coding: Reverse Engineering Exploits and Tool Coding for Security Professionals
Now that we have understood how to figure out the address of the location of our
function, let’s attempt to execute the assembly code.To do so, we will create another
C++ application: sleepasm.cpp.
1 // sleepasm.cpp : Defines the entry point for the console application.
2 //
3
4
#include "stdafx.h"
5 #include "Windows.h"
6
7
void main()
8 {
9 __asm
10 {
11
12
push 99999999
13 mov eax, 0x77E61BE6
14 call eax
15 }
16 }
Now that we have fully working assembly instructions, we need to figure out the
Operation Code (Op Code) for these instructions (see Figure 8.2).To figure out the Op
Code, let’s go back to the disassembled code while stepping through the code using
F10, and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

32/64-Bit 80x86 Assembly Language Architecture

32/64-Bit 80x86 Assembly Language Architecture

James Leiterman

Publisher Resources

ISBN: 9781597490054