diff options
Diffstat (limited to 'minikrebs/profiles/rickroller_bare/customfiles/www/cgi-bin/rrhelper')
-rwxr-xr-x | minikrebs/profiles/rickroller_bare/customfiles/www/cgi-bin/rrhelper | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/minikrebs/profiles/rickroller_bare/customfiles/www/cgi-bin/rrhelper b/minikrebs/profiles/rickroller_bare/customfiles/www/cgi-bin/rrhelper new file mode 100755 index 00000000..ec328a3b --- /dev/null +++ b/minikrebs/profiles/rickroller_bare/customfiles/www/cgi-bin/rrhelper @@ -0,0 +1,15 @@ +#!/bin/sh + +RRLOG="/tmp/rrlog" + +if [ -n "$RRLOG" ]; then + echo `awk '{print $1}' /proc/uptime` $REMOTE_ADDR:$REMOTE_PORT \'$HTTP_REFERER\' \'$HTTP_USER_AGENT\' >>"$RRLOG" +fi + +# To signal a rickroll, blink for 15 seconds +(echo timer > /sys/devices/platform/leds-gpio/leds/tp-link:blue:system/trigger ;sleep 15;echo none > /sys/devices/platform/leds-gpio/leds/tp-link:blue:system/trigger) & + + +echo "Content-type: image/gif" +echo "" +cat /www/1x1.gif |