Skip to 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
700 pages
20h 39m
English
Syngress
Content preview from Sockets, Shellcode, Porting, and Coding: Reverse Engineering Exploits and Tool Coding for Security Professionals
159 * positions are marked as one if those values were
160 * supplied in the range. for example:
161 *
162 * char *range = "10.1.1.1";
163 *
164 * would result in the 10th byte of the 1st array
165 * being set to the value of one, while the 1st
166 * byte of the 2nd, 3rd and 4th arrays being set to
167 * one.
168 *
169 * once the range has been completely parsed and
170 * all values stored in the arrays (the state), a
171 * series of for loops can be used to iterate
172 * through the range.
173 *
174 * IP address range parser for nmap-style command
175 * line syntax.
176 *
177 * example:
178 *
179 * "192.168.1,2,3,4-12,70.*"
180 *
181 *
182 *
183 */
184 int ipv4_parse_ctx_init (ipv4_parse_ctx *ctx ,
185 char *range )
186 {
187 char *oc[4];
188 int x = 0;
189
190
if(ctx ...
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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

TCP/IP Sockets in C#

TCP/IP Sockets in C#

David Makofske, Michael J. Donahoo, Kenneth L. Calvert

Publisher Resources

ISBN: 9781597490054