Skip to content

Instantly share code, notes, and snippets.

@dedfft
dedfft / sqlalchemy_example.py
Created February 13, 2022 12:52 — forked from ronreiter/sqlalchemy_example.py
SQLAlchemy Example
from sqlalchemy import Column, Integer, String, ForeignKey, create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship, backref, sessionmaker, joinedload
# For this example we will use an in-memory sqlite DB.
# Let's also configure it to echo everything it does to the screen.
engine = create_engine('sqlite:///:memory:', echo=True)
# The base class which our objects will be defined on.
Base = declarative_base()
@dedfft
dedfft / List of API endpoints & objects
Created November 12, 2021 09:12 — forked from yassineaboukir/List of API endpoints & objects
A list of 3203 common API endpoints and objects designed for fuzzing.
0
00
01
02
03
1
1.0
10
100
1000
@dedfft
dedfft / crypt.py
Created October 6, 2021 16:21 — forked from fideloper/crypt.py
Decrypt Laravel-encrypted value
import os
import base64
import json
from Crypto.Cipher import AES
from phpserialize import loads
def decrypt(payload):
data = json.loads(base64.b64decode(payload))
@dedfft
dedfft / gmail_checker_for_blink1.py
Created September 29, 2021 08:48 — forked from dswhite42/gmail_checker_for_blink1.py
Python script to check GMail and trigger blink(1) when new messages are found
# Check mail and trigger the blink(1) when new mail is found
import os, sys, imaplib, email, getopt, time
from subprocess import Popen, DEVNULL
class MailBlinker():
def __init__(self, quiet=False):
# GMail username/password
self.username = 'your_gmail_username'