mirror of
https://github.com/GyulyVGC/sniffnet.git
synced 2025-12-23 22:29:01 -05:00
13 lines
388 B
Bash
Executable File
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
|