shoxf/mc

14 lines
248 B
Plaintext
Raw Permalink Normal View History

2021-02-07 23:41:50 +00:00
#!/bin/bash
nmap -Pn -Ap 25565 $@ |
tr "\n" "\t" | sed 's/\tNmap/\nNmap/g' |
grep 'open' | awk -F'\t' '{print $1 "\t" $5}' |
2021-03-25 01:10:29 +00:00
tee -a "minecraft.txt"
2021-02-07 23:41:50 +00:00
2021-04-20 19:48:08 +00:00
sort "minecraft.txt" | uniq > "minecraft.txt.temp"
2021-03-25 01:10:29 +00:00
mv "minecraft.txt.temp" "minecraft.txt"
2021-02-07 23:41:50 +00:00