#!/bin/sh # # bindhack for telnet on port 25 # # echo "Enter source host name:"; (read source_host;dig +short $source_host > /tmp/bhtempfile) read source_ip < /tmp/bhtempfile;rm /tmp/bhtempfile echo "Enter destination host name:"; read dest_host export LD_PRELOAD=/home/gordon/downloads/bindhack/bindhack.so BIND_SRC=$source_ip telnet $dest_host 25