diff options
author | makefu <root@pigstarter.de> | 2013-01-07 12:06:33 +0000 |
---|---|---|
committer | makefu <root@pigstarter.de> | 2013-01-07 12:06:33 +0000 |
commit | ad376d1dab439f9d28bf7ff02bfa7afed7444037 (patch) | |
tree | f09e0ed2c0da0e5e467188bb88464d22e2d2c7a1 /minikrebs/profiles/rickroller/customfiles/www/cgi-bin/rrhelper | |
parent | b2df392966df95102bb8cf4ee3f043d4b6ed633f (diff) | |
parent | 6ea50f3c77350e715649aa45061beb1701ebaa95 (diff) |
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'minikrebs/profiles/rickroller/customfiles/www/cgi-bin/rrhelper')
-rwxr-xr-x | minikrebs/profiles/rickroller/customfiles/www/cgi-bin/rrhelper | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/minikrebs/profiles/rickroller/customfiles/www/cgi-bin/rrhelper b/minikrebs/profiles/rickroller/customfiles/www/cgi-bin/rrhelper new file mode 100755 index 00000000..ec328a3b --- /dev/null +++ b/minikrebs/profiles/rickroller/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 |