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
30 $ip4=1;
31 $ip3=1;
32 $ip2++;
33 if($x eq 'c' || $x eq 'b') {$ip3=255; $ip2=255;}
34 }
35 }
Analysis
Line 1 is commonly used in UNIX and Linux Perl configurations as the location for the
main Perl binaries.This is not necessary in nearly all Win32 installations and configura-
tions. Line 2 checks in an unintelligent fashion, that two parameters were passed to the
script via the command line and if for some reason there were less than two then a
Usage statement is printed to STDOUT.
Lines 5 and 6 set the variables to that of the parameters passed to the command line.
Notice that there is no error checking on these variables before parsing the values.This
is deliberate, because the main goal for this exercise is to learn how to increase IP
addresses.
Line ...
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