Prev | Current Page 113 | Next

Mark D. Spivey

"Practical Hacking Techniques and Countermeasures"

0.tgz.
The files will uncompress into a new folder named packit-1.0.
Spoofing  285
Change to the new directory by typing cd packit-1.0 and pressing Enter.
Configure the Packit application for the specific machine it is on by typing
./configure.
Packit will configure for the specific machine.
286  Practical Hacking Techniques and Countermeasures
The next step is to create the executable by typing make and pressing Enter.
The Packit application will be created.
Spoofing  287
Install the Packit application by typing make install and pressing Enter.
The Packit application will install.
288  Practical Hacking Techniques and Countermeasures
To capture all packets, type the following syntax:
./packit ??“m cap
The ??“m cap tells Packit to run in mode capture.
The packets will scroll on the screen.
Spoofing  289
To tell Packit to capture only TCP traffic, type:
./packit ??“m cap 'tcp'
From the syntax above, only TCP traffic will scroll on the screen.
290  Practical Hacking Techniques and Countermeasures
To capture the first 100 packets and save the data to a file, type:
./packit ??“m cap ??“c 100 'tcp' ??“w 100packets.txt
 The ??“c 100 tells Packit to limit the captured packets to 100.
 The ??“w 100packets.txt tells Packit to write the results to a text file named
100packets.txt.
In this example, the first TCP 100 packets will be written to a file named
100packets.txt.
Spoofing  291
The 100packets.txt file is written.


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