From 335a31a61df57d3cc300c1c9aff0e08ff81f0abb Mon Sep 17 00:00:00 2001 From: epoch Date: Tue, 20 Mar 2018 23:54:50 -0500 Subject: added anonet_map.sh example and helper script for it xcmd.sh. and a NOTES file. --- examples/anonet_map.sh | 11 +++++++++++ examples/xcmd.sh | 2 ++ 2 files changed, 13 insertions(+) create mode 100755 examples/anonet_map.sh create mode 100755 examples/xcmd.sh (limited to 'examples') diff --git a/examples/anonet_map.sh b/examples/anonet_map.sh new file mode 100755 index 0000000..2c66640 --- /dev/null +++ b/examples/anonet_map.sh @@ -0,0 +1,11 @@ +#!/bin/bash +cat <(printf "%s move 0 0 -270\n" "$USER") \ + <(wget http://hacking.allowed.org/cgi-bin/map_hackvr.cgi -qO- 2>/dev/null) \ + /dev/stdin \ + | slowcat 0 \ + | hackvr_x11 "$USER" \ + | grep --line-buffered action \ + | stdbuf -oL cut '-d ' -f3 \ + | xargs -r -L1 printf "AS%s\n" \ + | tee /dev/stderr \ + | xargs -r -L1 ./xcmd.sh whois -h hacking.allowed.org diff --git a/examples/xcmd.sh b/examples/xcmd.sh new file mode 100755 index 0000000..0c230d6 --- /dev/null +++ b/examples/xcmd.sh @@ -0,0 +1,2 @@ +#!/bin/sh +exec $* | xmessage -file - & -- cgit v1.2.3