Skip to content

Instantly share code, notes, and snippets.

View datboi6942's full-sized avatar

DatBoiStalin datboi6942

View GitHub Profile
@xHacka
xHacka / SolarPuttyDecrypt.py
Last active March 3, 2025 02:31
SolarPuTTYDecrypt: A post-exploitation tool to decrypt SolarPutty's sessions files, rewritten in Python. Original Author: Paolo Stagno (@Void_Sec - voidsec.com)
import base64
import sys
from Crypto.Cipher import DES3
from Crypto.Protocol.KDF import PBKDF2
def decrypt(passphrase, ciphertext):
data = ''
try:
# Decode the base64 encoded ciphertext
array = base64.b64decode(ciphertext)