Ubuntu Pastebin

Paste from Erik Arfvidson at Wed, 23 Mar 2016 20:48:43 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#!/bin/sh
set -e

# old cd "$SNAP_APP_DATA_PATH"
# new
cd $SNAP_DATA_PATH
golang-static-http &

while :; do
        for eth in `ip -4 addr show eth0 | grep inet  | awk '{ print $2 }'`
                do
                nmap $eth >> test.out
                done
        sleep 100
done
Download as text