diff options
Diffstat (limited to 'share')
160 files changed, 0 insertions, 62597 deletions
diff --git a/share/hackvr/examples/anonet_map.sh b/share/hackvr/examples/anonet_map.sh deleted file mode 100755 index 188dd78..0000000 --- a/share/hackvr/examples/anonet_map.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env 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 "$USER" | tee -a /dev/stderr \ - | grep --line-buffered action \ - | stdbuf -oL cut '-d ' -f3 \ - | xargs -r -L1 printf "whois://hacking.allowed.org/AS%s\n" \ - | tee /dev/stderr \ - | xargs -r -L1 urlstart - diff --git a/share/hackvr/examples/anonet_map/map b/share/hackvr/examples/anonet_map/map deleted file mode 100755 index 51a9e59..0000000 --- a/share/hackvr/examples/anonet_map/map +++ /dev/null @@ -1,74 +0,0 @@ -#!/bin/bash -echo $USER set title anonet_AS_map - -paths="$(ncat --recv-only 21.41.41.1 64777 | sort | uniq | tee ${PREFIX}/var/cache/hackvr/anonet_data.new)" - -MAP=${PREFIX}/var/cache/hackvr/anonet_map.hackvr -mkdir -p ${PREFIX}/var/cache/hackvr/ - -#see if the data actually changed before regenerating this shit... -if cmp ${PREFIX}/var/cache/hackvr/anonet_data.new ${PREFIX}/var/cache/hackvr/anonet_data.old ; then - cat $MAP - exit 0 -fi - -mv ${PREFIX}/var/cache/hackvr/anonet_data.new ${PREFIX}/var/cache/hackvr/anonet_data.old - -> $MAP - -nodes=$(printf "%s\n" "$paths" | tr ' ' '\n' | sort | uniq) -nodes_count="$(printf "%s\n" "$nodes" | tr ' ' '\n' | wc -l | tr -cd '0-9')" -#echo $nodes -#echo $nodes_count -echo $USER move 0 0 -20 -coords="$( (for node in $nodes;do - printf "AS%s addshape 4 2 0 8 0 0 0 0\n" "$node" - printf "AS* rotate 0 0 +%d\n" "$[360 / ${nodes_count} ]" - printf "AS* flatten\n" -done -printf "* export *\n" -) | hackvr_headless 2>/dev/null | sed 's/^*_AS//g' | cut '-d ' -f5,6)" -#printf "%s\n" "$coords" -xcoords="$(printf "%s\n" "$coords" | cut '-d ' -f1)" -ycoords="$(printf "%s\n" "$coords" | cut '-d ' -f2)" - -#echo $xcoords -#echo $ycoords - -edges=$(printf "%s\n" "$paths" | tr '\n' '\0' | xargs -n1 -0 ./paths-to-edges | sort | uniq | tr ' ' '_') - -index_of() { - printf "%s\n" "$nodes" | grep -n '^'"$1"'$' | cut -d: -f1 -} - -xcoord_by_ASN() { - printf "%s\n" "$xcoords" | head -n "$(index_of $1)" | tail -n1 -} - |