Skip to content

Instantly share code, notes, and snippets.

sh4dowb /
Last active Nov 18, 2022
EBA canlı ders için Linux ve Mac desteği (Zoom)
sh4dowb /
Created Sep 1, 2019
Chromium Linux Password Retriever (Decryption support)
# source:
# just put a few answers together for a working script
# python3
# outputs passwords.csv
import secretstorage
import sqlite3
import os
import csv
from Crypto.Cipher import AES
sh4dowb /
Created Aug 26, 2021
tronapi python mass USDT payment - send mass USDT payments with python
import time
from tronapi import Tron
full_node = ''
solidity_node = ''
event_server = ''
pkey = "private_key_hex"
payments = [
sh4dowb /
Last active Jul 4, 2022
workaround for selenium to save the goddamn session / profile completely on firefox / geckodriver --- selenium firefox geckodriver persistent profile
# Selenium does not use the given profile, but copies it, and uses a temporary profile.
# As a result, new cookies and sessions etc. are not saved.
# To fix it, we get the actual profile firefox is using, kill firefox manually so geckodriver
# doesn't delete profile data. Copying the profile when it's being used is generally not a good idea.
# After killing firefox profile and databases are unlocked, we copy the "temporary" profile
# to our old profile.
# driver.profile doesn't provide the actual temporary profile, but another copy of it. And firefox
# does not use that one. that's why I got it from process list.
sh4dowb / ud64_deobfuscator.php
Created Sep 4, 2019
UD64 Deobfuscator / Unknowndevice64 PHP obfuscation deobfuscator
View ud64_deobfuscator.php
<meta charset="UTF-8">
<link rel="stylesheet" href="">
<meta name="description" content="UD64, Unknowndevice64 deobfuscator/decrypter.">
<meta name="keywords" content="ud64 deobfuscate, ud64 cleaner, ud64 beautifier, ud64 decrypt">
<title>UD64 - Unknowndevice64 Deobfuscator</title>
sh4dowb / catch_all.txt
Created Jan 15, 2022
catch-all mail server installation on ubuntu
View catch_all.txt
# redirect MX record to your server ip
apt install postfix
adduser myuser # necessary - you cannot login as root on dovecot imap
# add user
nano /etc/postfix/virtual
# myuser
# info # optional
sh4dowb / gist:861934f2d0472400c6f9a764b4b7589d
Last active Dec 9, 2021
telethon get if participant is admin
View gist:861934f2d0472400c6f9a764b4b7589d
from import ChannelParticipantCreator, ChannelParticipantAdmin
from import GetParticipantRequest
async def handler(event):
participant = await client(GetParticipantRequest(channel=event.original_update.message.to_id.channel_id,user_id=event.original_update.message.from_id))
isadmin = (type(participant.participant) == ChannelParticipantAdmin)
iscreator = (type(participant.participant) == ChannelParticipantCreator)
sh4dowb /
Created Dec 8, 2021
verify limbo outcome with python
import hmac
import hashlib
def getLimboOutcome(server, client, nonce):
server = server.encode()
client = client.encode()
nonce = str(nonce).encode()
round = 0
hash =, client+b':'+nonce+b':'+str(round).encode('utf-8'), hashlib.sha256).digest()
first4 = hash[:4]
sh4dowb /
Created Sep 17, 2021
Decrypt crypto-js default AES encryption with OpenSSL KDF in Python 3
# I absolutely hated crypto-js for this. non-standard configurations, weird algorithms, ...
# well obviously you can encrypt it with a better configuration which people will not
# go crazy figuring out its implementation, but in this case I wasn't encrypting the data.
import base64
from Crypto.Hash import MD5
from Crypto.Util.Padding import unpad
from Crypto.Cipher import AES
# generated using: CryptoJS.AES.encrypt('test 123456 plaintext', 'some password').toString()
sh4dowb / README
Last active Aug 22, 2021 and site source code for
wxtoimg (
wxmap on your server for map generation (
(because wxmap on ARM is not working, at least for me)
n2yo account and api key