diff options
author | epoch <epoch@hacking.allowed.org> | 2018-03-20 23:54:50 -0500 |
---|---|---|
committer | epoch <epoch@hacking.allowed.org> | 2018-03-20 23:54:50 -0500 |
commit | 335a31a61df57d3cc300c1c9aff0e08ff81f0abb (patch) | |
tree | c402315bb0d5b46002d28e0e3bc10d5282fd3bb3 /examples | |
parent | 0fa8d871d5e6cf3558d67e5d0089e17f755ecdf1 (diff) | |
download | hackvr-335a31a61df57d3cc300c1c9aff0e08ff81f0abb.tar.gz hackvr-335a31a61df57d3cc300c1c9aff0e08ff81f0abb.zip |
added anonet_map.sh example and helper script for it xcmd.sh. and a NOTES file.
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/anonet_map.sh | 11 | ||||
-rwxr-xr-x | examples/xcmd.sh | 2 |
2 files changed, 13 insertions, 0 deletions
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 - & |