{ "name": "nmap", "version": "7.991", "summary": "Nmap: network discovery and port scanning with NSE scripts, plus Ncat and Nping", "category": "network", "license": "LicenseRef-NPSL-0.95", "homepage": "https://nmap.org/", "source": { "url": "https://nmap.org/dist/nmap-7.991.tar.bz2", "sha256": "a5d507f29437bef3bedd4771ff9aaa8fc1c2a109ddba1f5b1cf12027456929be" }, "watch": {"kind": "index", "url": "https://nmap.org/dist/", "regex": "nmap-([0-9]+(?:\\.[0-9]+)+[a-z]?[0-9]*)\\.tar\\.bz2"}, "deps": [ "openssl", "libpcap", "pcre2", "zlib" ], "env_packages": [], "static": true, "nss": true, "check": "bin/nmap -V | first && bin/nmap -V | has 'with: .*openssl' && t=$(mktemp -d) && P=$(free_port) && { bin/ncat -l -k 127.0.0.1 \"$P\" --sh-exec 'echo bvs-ncat-banner' > \"$t/ncat.log\" 2>&1 & echo $! > \"$t/pid\"; } && wait_port \"$P\" && bin/ncat 127.0.0.1 \"$P\" < /dev/null | has -x bvs-ncat-banner && bin/nmap -n -Pn -sT -p \"$P\" --script banner 127.0.0.1 > \"$t/out\" && has \"^$P/tcp open\" < \"$t/out\" && has 'banner: bvs-ncat-banner' < \"$t/out\" && echo \"nmap found the Ncat listener on port $P and read its banner with NSE\"; r=$?; [ -f \"$t/pid\" ] && kill -KILL \"$(cat \"$t/pid\")\" 2>/dev/null; exit $r" }