スペックの低い端末(Docker上のKali Linux)でnmap実行時にエラーとなった。
# nmap -A bank.htb Starting Nmap 7.80 ( https://nmap.org ) at 2020-08-02 03:15 UTC Warning: 10.10.10.29 giving up on port because retransmission cap hit (10).
翻訳すると「再送上限に達したためにポートを放棄する」とのこと。
オプションを変えることで、nmapを実行することができた。
# nmap -A -n -F -T5 bank.htb Starting Nmap 7.80 ( https://nmap.org ) at 2020-08-02 03:55 UTC Nmap scan report for bank.htb (10.10.10.29) Host is up (0.048s latency). Not shown: 97 filtered ports PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 6.6.1p1 Ubuntu 2ubuntu2.8 (Ubuntu Linux; protocol 2.0) | ssh-hostkey: | 1024 08:ee:d0:30:d5:45:e4:59:db:4d:54:a8:dc:5c:ef:15 (DSA) | 2048 b8:e0:15:48:2d:0d:f0:f1:73:33:b7:81:64:08:4a:91 (RSA) | 256 a0:4c:94:d1:7b:6e:a8:fd:07:fe:11:eb:88:d5:16:65 (ECDSA) |_ 256 2d:79:44:30:c8:bb:5e:8f:07:cf:5b:72:ef:a1:6d:67 (ED25519) 53/tcp open domain ISC BIND 9.9.5-3ubuntu0.14 (Ubuntu Linux) | dns-nsid: |_ bind.version: 9.9.5-3ubuntu0.14-Ubuntu 80/tcp open http Apache httpd 2.4.7 ((Ubuntu)) |_http-server-header: Apache/2.4.7 (Ubuntu) | http-title: HTB Bank - Login |_Requested resource was login.php Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port ...
-n:名前解決しない。 -F:高速スキャン。付属nmap-services ファイルに列挙されているポートだけをスキャン。 -T:スキャンタイミングを指定(値が大きいほうが高速)。
参考
https://forum.stationx.net/t/warning-111-222-11-11-giving-up-on-port-because-retransmission-cap-hit-10/767/7