Prev | Current Page 114 | Next

Mark D. Spivey

"Practical Hacking Techniques and Countermeasures"


Open the 100packets.txt file by typing:
./packit ??“m cap ??“r 100packets.txt
The ??“r 100packets.txt tells Packit to read the saved file named 100packets.txt.
292  Practical Hacking Techniques and Countermeasures
The file is now open for analysis.
To inject 100 SYN packets against a specific target from a ???spoofed??? IP and
???spoofed??? MAC address type:
./packit ??“s 1.2.3.4 ??“d 172.16.1.40 ??“S 100 ??“D 80 ??“c 100
??“F S ??“e AA:BB:CC:DD:EE:FF
 The ??“s 1.2.3.4 tells Packit to place a source IP of 1.2.3.4 on each packet.
 The ??“d 172.16.1.40 tells Packit to send to the target IP of 172.16.1.40.
 The ??“S 100 tells Packit to use port 100 as the source port.
 The ??“D 80 tells Packit to send to port 80 of the target.
 The ??“F S tells Packit to set the SYN flag of each packet.
 The ??“e AA:BB:CC:DD:EE:FF tells Packit to use AA:BB:CC:DD:EE:FF as the
source MAC address.
Spoofing  293
The Packit application will insert the 100 ???spoofed??? packets against the target.
From the target run an Ethereal (Lab 41) session to validate the packet injection.
 The packets made it to the target from a ???spoofed??? IP of 1.2.3.4.
 The packets have a ???spoofed??? MAC address of AA:BB:CC:DD:EE:FF.
 The packets were in the TCP protocol.
 The packets came from port 100.
 The packets were sent to port 80.
294  Practical Hacking Techniques and Countermeasures
To trace a route to a target type:
./packit ??“m trace ??“t TCP ??“d www.


Pages:
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126