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
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.
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