Detected 1 occurrence(s) of ‘\s*pass[word]+\s*[:=]\s*["'][a-z0-9\-_\!\$]+["']‘: import getpass import sys import telnetlib HOST = "10.3.5.90" user = "admin" password = "Password" tn = telnetlib.Telnet(HOST) tn.read_until("DGS-12010-10P login: ") tn.write(user + "r") tn.read_until("Password: ") tn.write(password + "r") tn.read_until("DGS-1210-10P> ") tn.write("upload cfg_toTFTP tftp://10.5.5.2/DGS-1210-10P.bin" + "r") tn.read_unt Source: http://pastebin.com/raw.php?i=rjEBBgMz
↧