Created
September 25, 2010 20:20
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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