diff --git a/README.md b/README.md index 369e802..ce30efc 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ pixelfloot was built during the 37c3. in its actual state, its just a mess. I ho - move image with your cursor (needs `xdotool`): `./pixelfloot_bash.sh floot images/lucky-cat.jpg cursor` - Use a color as "alpha" (remove background): `ALPHACOLOR=FF00FF ./pixelfloot_bash.sh floot images/cursor.ppm cursor` - increase No of cuncurrent connections: `FLOOTFORKS=8 ./pixelfloot_bash.sh floot images/lucky-cat.jpg` - +- specify IP and PORT: `IPFLOOT=127.0.0.1 FLOOTPORT=1337 ./pixelfloot_bash.sh floot images/lucky-cat.jpg` ```shell $ ./pixelfloot_bash.sh help diff --git a/pixelfloot_bash.sh b/pixelfloot_bash.sh index 56bc039..b15aacf 100755 --- a/pixelfloot_bash.sh +++ b/pixelfloot_bash.sh @@ -1,8 +1,8 @@ #!/bin/bash #IPFLOOT="151.217.15.90" -IPFLOOT="192.168.254.7" -FLOOTPORT="1337" +test -z "$IPFLOOT" && IPFLOOT="127.0.0.1" +test -z "$FLOOTPORT" && FLOOTPORT="1337" ######################################################################## FNAME="$(echo $2 | sed -e 's/\..*$//' -e 's/^images\///')"