Files
sniffnet/services.sh
Giuliano Bellini s294739 516fea4d70 minor fixes
2024-02-09 14:11:44 +01:00

13 lines
388 B
Bash
Executable File

#!/bin/bash
# Script used to generate the file ./services.txt
# The source for port-to-service mappings is provided by nmap
# Available at: https://raw.githubusercontent.com/nmap/nmap/master/nmap-services
OUT=./services.txt
curl https://raw.githubusercontent.com/nmap/nmap/master/nmap-services \
| grep -E '/tcp|/udp' \
| grep -E -v '^#|^unknown\t' \
| cut -d$'\t' -f 1,2 > $OUT