Skip to content

Instantly share code, notes, and snippets.

import string
import hashlib
import dataclasses
CHAR_POOL = (
string.ascii_lowercase +
string.ascii_uppercase +
string.digits +
"~!@#$%^&*()_-=+{}[]|;:'<>?/"
#!python3.8
# ssl.py doesn't use SNI by default for some reason, which can
# cause some people to be confused when the certificate-getting
# function returns an erroneous certificate sometimes.
#
# This patch changes the original code in ssl.py:
#
# with create_connection(addr) as sock: # yes, your file has a double space too.
#!python3.8
import os
import sys
import time
import asyncio
import tempfile
import threading
import functools
import contextlib
#!python3.8
import os
import sys
import random
import requests
from bs4 import BeautifulSoup
import random
import functools
from tkinter import *
from tkinter.ttk import *
from tkinter.scrolledtext import ScrolledText
a = '''A:Α
a:а
import gzip
import base64
import hashlib
import secrets
import itertools
MORSE_CODE = {
'A':'.-', 'B':'-...',
'C':'-.-.', 'D':'-..', 'E':'.',
#!python3.8
import os
import re
import shlex
import string
import zipfile
import argparse
import subprocess
from pathlib import Path
@0xpizza
0xpizza / wrap_db.py
Last active September 22, 2020 15:11
#!python3
import sqlite3
import secrets
from hmac import compare_digest
from functools import partial, wraps
from cryptography.hazmat.primitives.ciphers.aead import AESGCM
from cryptography.hazmat.primitives.kdf.scrypt import Scrypt
from cryptography.hazmat.backends import default_backend
import asyncio
from functools import partial
PORTS = (1234, 4321, 54321, 12345)
async def handle_socket(output_queue, reader, writer):
try:
addr = writer.get_extra_info('peername')
#!python3.8
import os
import sys
import datetime
from functools import partial
from socket import gaierror, timeout
import bs4