Prev | Current Page 39 | Next

Mark D. Spivey

"Practical Hacking Techniques and Countermeasures"

Type:
nc ??“v ??“n 24.227.197.22 80
68

Practical Hacking Techniques and Countermeasures
Initially it may appear that netcat is not working or is stuck as it just sits there.
Press the
Enter
key
twice
.
In this example, the result is that the Target is using Microsoft IIS 5.0.
Banner Identification

69
To use Linux on Red Hat Linux:

From the directory in which the compressed netcat file is located, type
tar
??“zxvf netcat-0.7.1.tar.gz
and press the
Enter
key.

The files will uncompress into a new directory named
netcat-0.7.1
.

Change to the new directory by typing
cd netcat-0.7.1
and pressing
Enter
.

The netcat utility must be configured for the specific computer it is on. This
is done by typing:
./configure
The netcat application will now compile.
70

Practical Hacking Techniques and Countermeasures
The next step is to type the
make
command.
The make command executes.
Banner Identification

71
The last step is to install the netcat application by typing
make install
.
The netcat application will install.
72

Practical Hacking Techniques and Countermeasures
In this example, the netcat application is run against a target running an
FTP server by typing:
nc ??“v ??“n 24.227.197.22 21
From this example the result is:

The target at 24.227.197.22 is running Serv-U FTP Server version 5.0.
Banner Identification

73
Lab 3: Banner Identification
Banner Grabbing:
SCANLINE
Prerequisites:
None
Countermeasures:
Uninstall/disable unnecessary services, SSH, VPN,
IPSEC, banner alteration.


Pages:
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51