mirror of
https://github.com/drk1wi/portspoof.git
synced 2024-06-28 09:41:36 +00:00
commit
4d50ce6195
@ -16,7 +16,7 @@ function pickInterface {
|
||||
}
|
||||
|
||||
function setUpIptables {
|
||||
runningPorts=(`netstat -an |grep -E "tcp\ ".*LISTEN|grep -v 127.0.0.1|awk '{print $4}'|sed s/"0.0.0.0:"//|sort -n`)
|
||||
runningPorts=(`netstat -an |grep -E "tcp\ ".*LISTEN|grep -v 127.0.0.1|awk '{print $4}'|sed s/.*://|sort -n`)
|
||||
if [ ${runningPorts[0]} -ne 1 ] && [ ${runningPorts[0]} -ne 2 ]; then
|
||||
underPort=$((${runningPorts[0]}-1))
|
||||
counter=0
|
||||
|
Loading…
Reference in New Issue
Block a user