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 structure is pushed on the stack, we store ESP in ECX (line 18). Now we can push
the arguments for the bind function on the stack. At line 17, we push the last argument,
0x10, then the pointer to the struct is pushed (line 18), and finally we push the file
descriptor that was returned by socket.The arguments for the bind function are on the
stack, so we store ESP back in ECX. By doing this, the second argument for our
upcoming socketcall is ready and all we have to take care of next is the first argument
before we can call the kernel.
The EBX register still contains that value 1 (line 11). Because the identifier of the
bind function is 2, we inc b
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