An attacker uses this information to launch appropriate
attacks for the results obtained. Remember that all commands in Linux
are case sensitive.
Procedure: Download or compile the application and execute it with the
following syntax:
amap ?“options> target ip address
To install amap on a Linux computer:
From the Linux directory containing the amap application type tar
??“zxvf amap-5.2.tar.gz.
The contents of the file will be uncompressed in a new directory named
amap-5.2.
Change to the new directory by typing cd amap-5.2 and pressing Enter.
From the new directory the amap application needs to be configured
for the computer it resides on by typing ./configure.
The amap application compiles.
80 Practical Hacking Techniques and Countermeasures
The next step is to make the amap executable by typing make and pressing
Enter.
The make command will create the amap executable.
To scan a target with an IP address of 172.16.1.40, run the FTP service and
grab the banner information, type the following:
./amap ??“B 172.16.1.40 21
Banner Identification 81
The amap is the application itself. The ??“B option is the ???Just Grab Banners
Only??? command. The 172.16.1.40 is the target IP address. 21 is the port the
FTP service runs on.
The amap application will scan the target on port 21 and in this example
will grab only the banner information available on that port.
82 Practical Hacking Techniques and Countermeasures
In this example, the target:
Resolves to the hostname of win2000s-v.
Pages:
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55