change scripts

This commit is contained in:
LordMZTE 2021-03-14 22:09:37 +01:00
parent f199e8bf5c
commit 6c41da6aa0
5 changed files with 8 additions and 31 deletions

8
append_scanout.sh Executable file
View file

@ -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 <scanout.txt

View file

@ -1,27 +1,3 @@
5.83.168.153:14800
5.83.168.153:15000
5.83.168.153:15200
5.83.168.153:15400
5.83.168.153:15600
5.83.168.153:15800
5.83.168.153:16000
5.83.168.153:16600
5.83.168.153:16800
5.83.168.153:17000
5.83.168.153:17200
5.83.168.153:18200
5.83.168.153:18400
5.83.168.153:25566
5.83.168.153:34882
5.83.169.193:10000
5.83.169.193:10010
5.83.169.193:10020
5.83.169.193:10040
5.83.169.193:10060
5.83.169.193:10070
5.83.169.193:10110
5.83.169.193:10120
5.83.169.193:10130
5.83.169.193:10150 5.83.169.193:10150
5.83.169.193:10160 5.83.169.193:10160
5.83.169.193:10170 5.83.169.193:10170

0
mcscan.sh Normal file → Executable file
View file

View file

@ -1,7 +0,0 @@
#!/bin/bash
SERV=$(head -n 1 grief_servers.txt)
echo $SERV
echo $SERV | xclip -selection clipboard
mcstat $SERV -t 1000
sed -i '1d' grief_servers.txt
echo "$(cat grief_servers.txt | wc -l) servers left"