Skip to content

amap

45 commands

An application-protocol mapper that identifies which service is really running on a port, even on non-standard ports.

  • service detection
  • fingerprinting

Install amap

sudo apt install amap

Basic Service Fingerprinting2

amap 192.168.1.1 80

Performs default application fingerprinting on a single target and port.

Identifies the service running on the port even if it's on a non-standard port.

amap 192.168.1.1 21 22 80

Scans multiple specific ports on a single target.

Useful for checking a set of known services simultaneously.

Target and Port Specification2

amap 192.168.1.1 1-100

Scans a sequential range of ports on the specified IP.

Detects applications running on standard and non-standard ports within the range.

amap 192.168.1.1 80 8080 443

Fingerprints common web ports to identify server software.

Helps determine if the web server is Apache, IIS, Nginx, or something else.

Banner Grabbing2

amap -B 192.168.1.1 21

Runs in banner mode to collect service banners (-B).

Retrieves the raw banner without sending active application triggers.

amap -b 192.168.1.1 80

Fetches ASCII banners in addition to fingerprinting responses.

Provides extra context about the service version and configuration.

UDP Scanning2

amap -u 192.168.1.1 53

Switches to UDP mode for scanning connectionless services.

Essential for mapping DNS, SNMP, and other UDP-based protocols.

amap -u 192.168.1.1 161 162

Identifies SNMP services by sending specific UDP triggers.

Can reveal device information if default community strings are used.

Protocol Specification2

amap -P tcp 192.168.1.1 80

Explicitly specifies simple TCP scan mode.

Ensures the scanner uses TCP connect calls for the investigation.

amap -P udp 192.168.1.1 53

Explicitly specifies the UDP protocol for the scan.

Forces UDP usage even if the tool defaults to TCP.

Link

IPv6 Scanning2

amap -6 ::1 80

Performs application fingerprinting on an IPv6 address.

Validates services running on the IPv6 stack.

Link
amap -6 fe80::1 22

Scans an IPv6 link-local address for SSH.

Useful for local network discovery where global IPv6 addresses aren't configured.

Link

Scan Optimization3

amap -1 192.168.1.1 80

Sends only triggers defined for the specific port (-1).

Optimizes speed by skipping heuristic checks for other protocols.

Link
amap -H 192.168.1.1 80

Disables heuristic triggers (-H).

Prevents the scanner from guessing protocols, reducing noise and scan time.

Link
amap -U 192.168.1.1 80

Disables unidentified triggers (-U).

Focuses output only on successfully identified services, reducing clutter.

Link

Verbose and Debug Modes3

amap -v 192.168.1.1 80

Enables verbose output (-v).

Displays details about the connection process and triggers being sent.

Link
amap -vv 192.168.1.1 80

Enables double verbosity (-vv) for deep inspection.

Shows extensive details, useful for troubleshooting incorrect identifications.

Link
amap -d 192.168.1.1 80

Activates debug mode (-d).

Dumps all packet data sent and received for protocol analysis.

Link

Output Formatting4

amap -q 192.168.1.1 80

Runs in quiet mode (-q).

Suppresses non-essential output, printing only finding summaries.

Link
amap -o results.txt 192.168.1.1 80

Saves scan results to a file.

Persists the output for later review or documentation.

Link
amap -m 192.168.1.1 80

Generates machine-readable output (-m).

Formats the data for easy parsing by scripts or other security tools.

Link
amap -m -o parse_me.log 192.168.1.1 80

Writes machine-readable output directly to a file.

Ideal for automated logging pipelines or SIEM ingestion.

Link

Integration with Port Scanners1

amap -i scan.gnmap

Imports targets from an Nmap grepable file (-i).

Seamlessly integrates into a workflow starting with Nmap port discovery.

Link

Timeout and Performance4

amap -t 2 192.168.1.1 80

Sets connection timeout to 2 seconds.

Speeds up scanning on low-latency local networks by failing faster.

Link
amap -T 10 192.168.1.1 80

Sets read timeout to 10 seconds (-T).

Allows more time for slow services or heavily loaded servers to respond.

Link
amap -C 5 192.168.1.1 80

Configures retry count to 5 on timeout.

Increases reliability on unstable or congested networks.

Link
amap -c 16 192.168.1.1 1-1000

Sets parallel connections to 16 (-c).

Increases scan throughput by processing multiple tasks simultaneously.

Link

Custom Probe Control2

amap -R 192.168.1.1 111

Skips RPC service identification steps (-R).

Avoids sending RPC specific probes if RPC services are not of interest.

Link
amap -H -1 10.0.0.5 8080

Strict signature match on port 8080.

Combines specific triggers with disabled heuristics for precise identification.

Link

SSL and Encrypted Service Detection1

amap -S 192.168.1.1 443

Forces SSL mode for the scan (-S).

Assumes the target port is using SSL/TLS, skipping the plaintext handshake attempt.

Link

Advanced Combined Scans5

amap -b -v 192.168.1.1 21

Combines banner grabbing with verbose output.

Provides a detailed look at the service banner and the handshake process.

Link
amap -u -b 192.168.1.1 161

Performs UDP banner grabbing (-u -b).

Attempts to retrieve text banners from UDP services like TFTP or legacy protocols.

Link
amap -1 -u -b 192.168.1.1 123

Targets UDP port 123 (NTP) with specific checks.

Effectively identifies NTP servers and grabs version banners.

Link
amap -P tcp -b -v 192.168.1.1 25

Explicitly scans TCP port 25 for SMTP banners.

Verifies mail server configuration and identifying banners.

Link
amap -6 -u -v ::1 5353

Scans mDNS over UDP on IPv6 localhost.

Checks for multicast DNS services running on the local system.

Link

Red Team Service Enumeration2

amap -A -b -q 192.168.1.1 1-65535

Quietly maps applications on all ports (-A -b -q).

A comprehensive enumeration strategy for red team engagements.

Link
amap -i targets.gnmap -m -b

Batch processes targets for machine-readable output.

Efficient for large-scale service auditing across a network.

Link

Blue Team Exposure Validation1

amap -1 -b 192.168.1.1 80 443 8080

Checks common ports with specific triggers only (-1).

Used to validate standard service configurations without generating excess noise.

Link

Incident Response Support1

amap -d -o forensic_log.txt 192.168.1.100 6667

Captures a full packet dump for forensics (-d).

Documents the exact interaction with a suspicious service for later analysis.

Link

False Positive Reduction1

amap -H -U 192.168.1.1 80

Disables heuristic and unidentified triggers.

A strict scanning mode that reports only high-confidence identifications.

Link

Automation and Pipeline Usage1

amap -m -q 192.168.1.1 22 >> scan_results.log

Appends machine-readable output to a log file.

Designed for scheduled tasks or continuous monitoring scripts.

Link

Rate and Performance Control1

amap -t 1 -T 1 -c 32 192.168.1.1 80

Maximizes scanning speed with aggressive timeouts and parallelism.

Use with caution as it generates significant network noise and load.

Link

Input from File1

amap -i targets.gnmap -o scan_report.txt

Reads targets from Nmap (-i) and writes a report (-o).

Streamlines the process of verifying Nmap discovery results.

Link

Legacy Support Mode1

amap -W 192.168.1.1 80

Activates legacy web application fingerprinting (-W).

Compatibility mode for identifying older web architectures.

Link

Full Comprehensive Scan1

amap -A -b -v -t 3 -T 5 192.168.1.1 1-1024

Executes a comprehensive, verbose scan on privileged ports.

A thorough audit command for mapping all services on a host.

Link