Skip to content

Instantly share code, notes, and snippets.

@Voker57
Created September 25, 2010 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Voker57/597269 to your computer and use it in GitHub Desktop.
Save Voker57/597269 to your computer and use it in GitHub Desktop.
AstralCat, netcat using Astral for locating adversary. Inspired by gnunet papers on discovering nodes.
#!/bin/bash
# AstralCat
# Transmits data over IPv4 net using Astral routing
#
if [ -z $1 ] ; then
echo "Usage:"
echo "ac scream < file # transmit data"
echo "ac listen > file # receive data"
exit
fi
case $1 in
listen)
AHALAY=$(($RANDOM % 50000))
echo "Listening to Astral vibrations"
nc -lp $AHALAY
;;
scream)
MAHALAY=$(($RANDOM % 50000))
AHALAY=$(($RANDOM % 255 + 1)).$(($RANDOM % 255 + 1)).$(($RANDOM % 255 + 1)).$(($RANDOM % 255 + 1))
echo "Astral vibrations seems to emanate from $AHALAY:$MAHALAY"
nc $AHALAY $MAHALAY
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment