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
Analysis
This program simply creates a server on port 6666 and writes the phrase hello to clients
who connect. As you can see, we used all functions that have been reviewed in this sec-
tion. On line 6, we use the socket function to create a TCP socket descriptor. We pro-
ceed to fill out the sockaddr structure on lines 8 through 10.The socket information is
then named to the socket descriptor using the bind function.The listen function is used
to place the initialized socket into a listening state, and, lastly, the connection is accepted
from the queue using the accept function.
Stack Overflow Exploits
Traditionally, stack-based buffer overflows have been considered the most common type
of exploitable programming errors found in software applications ...
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