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
The nasm tool reads the assembly code and generates an object file of the type “elf
that will contain the executable bits.The object file, which automatically gets the .o
extension, is then used as input for the linker to make the executable. After executing
the commands, you will have an executable named “hello”.You can execute it to see the
result:
bash-2.05b$ ./hello
Hello, world !
bash-2.05b$
The following example uses a different method to test the shellcode/assembly exam-
ples.That C program reads the output file of nasm into a memory buffer and executes
this buffer as though it is a function. So why not use the linker to make an executable?
Well, ...
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