Skip to content
Snippets Groups Projects
Commit 76c690f3 authored by admin's avatar admin
Browse files

RFD Script (beta version) #1

parent bfa7ccd1
No related merge requests found
import getpass
import sys
import telnetlib
import time
def flap():
tn.write(b"shut\n")
tn.write(b"\x0D")
tn.write(b"no shut\n")
tn.write(b"\x0D")
#Fonction sert pas a grand chose
def peer_connection():
tn.write(b"telnet 192.168.1.1\n")
tn.write(b"\x0D")
tn.write(b"cisco")
tn.write(b"\x0D")
tn.write(b"cisco")
tn.write(b"\x0D")
tn.write(b"exit")
tn.write(b"\x0D")
dampening()
def dampening():
tn.write(b"conf t\n")
tn.write(b"\x0D")
tn.write(b"interface fastethernet 0/0\n")
tn.write(b"\x0D")
flap()
while True:
time.sleep(10)
flap()
HOST = "localhost"
tn = telnetlib.Telnet(HOST,5000)
dampening()
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment