Iodine Script

From Kyle's Wiki
Jump to: navigation, search

Ip over DNS tunneling. Very cool.

if [ "$1" = "start" ]; then
killall iodine
GATEWAY=`route -n | grep 0.0.0.0 | grep G | cut -f 10 -d " "`
echo $GATEWAY > .gateway
for EACH in `cat /etc/resolv.conf  | grep nameserver | cut -f 2 -d " "`
do
route add $EACH gw $GATEWAY
done
iodine  t.xkyle.com -Ppassword
route del default
route add default gw 192.168.99.1
elif [ "$1" = "stop" ]; then
killall iodine
for EACH in `cat /etc/resolv.conf  | grep nameserver | cut -f 2 -d " "`
do
route del $EACH 
done
route add default gw `cat .gateway`
fi
Personal tools
Namespaces

Variants
Actions
Efforts
Toolbox
Meta