From 6c41da6aa0bfd051c52d78bb7f38f4efe49bdc8c Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Sun, 14 Mar 2021 22:09:37 +0100 Subject: [PATCH] change scripts --- append_scanout.sh | 8 ++++++++ grief_servers.txt | 24 ------------------------ mcscan.sh | 0 next_serv_win.sh => next_serv.sh | 0 next_serv_linux.sh | 7 ------- 5 files changed, 8 insertions(+), 31 deletions(-) create mode 100755 append_scanout.sh mode change 100644 => 100755 mcscan.sh rename next_serv_win.sh => next_serv.sh (100%) delete mode 100755 next_serv_linux.sh diff --git a/append_scanout.sh b/append_scanout.sh new file mode 100755 index 0000000..d38a3d4 --- /dev/null +++ b/append_scanout.sh @@ -0,0 +1,8 @@ +#!/bin/sh +while read line; do + ip=$(echo $line | sed 's/ .*//') + ports=$(sed 's/^.* -> \[//;s/\]//;s/,/ /g') + for port in $ports; do + echo "$ip:$port" >> grief_servers.txt + done +done