diff options
author | Felix Richter <github@syntax-fehler.de> | 2011-05-26 12:35:05 +0200 |
---|---|---|
committer | Felix Richter <github@syntax-fehler.de> | 2011-05-26 12:35:05 +0200 |
commit | 231c96d75699738792e7235dc39b6c5a87e00b83 (patch) | |
tree | d21097ee0496a411233b846332cb0d66664ed5a3 /modules/bigeye | |
parent | 4fa3e59a99b5c526c51366ca952f219f3b6a5674 (diff) | |
parent | b0555ffa2f6fa2f416bbb2a293ebf43846cf0234 (diff) |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'modules/bigeye')
-rwxr-xr-x | modules/bigeye/bigeyed | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/bigeye/bigeyed b/modules/bigeye/bigeyed index c246c872..5aa36210 100755 --- a/modules/bigeye/bigeyed +++ b/modules/bigeye/bigeyed @@ -12,8 +12,10 @@ cleanup() { test -n "$spid" && kill -9 $spid && spid= } -#python -m http.server 3 & server=$! -python -m SimpleHTTPServer 3 & spid=$? +port=`touch /dev/bigeye 2>/dev/null && rm /dev/bigeye && echo 3 || echo 3333` + +#python -m http.server $port & server=$! +python -m SimpleHTTPServer $port & spid=$? trap cleanup EXIT HUP INT QUIT TERM base64 -d>favicon.ico<<EOF |