9 lines
215 B
Bash
Executable file
9 lines
215 B
Bash
Executable file
#!/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
|