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