Skip to content

Instantly share code, notes, and snippets.

@bodik
bodik / flask-graphimage.py
Last active February 22, 2021 09:10 — forked from carc1n0gen/flask-domain-matching.py
Flask Graph Image
from flask import Flask, send_file, url_for
app = Flask(__name__)
@app.route('/page1')
def page1():
# would be a render_template() at last
return '<img src="' + url_for('image1') + '">'
@bodik
bodik / kerberos_attacks_cheatsheet.md
Created September 12, 2019 06:43 — forked from TarlogicSecurity/kerberos_attacks_cheatsheet.md
A cheatsheet with commands that can be used to perform kerberos attacks

Kerberos cheatsheet

Bruteforcing

With kerbrute.py:

python kerbrute.py -domain <domain_name> -users <users_file> -passwords <passwords_file> -outputfile <output_file>

With Rubeus version with brute module:

@bodik
bodik / psx.py
Created November 14, 2016 11:50 — forked from anonymous/psx.py
PowerShell decoder by @JohnLaTwC
## hacked together by @JohnLaTwC, Nov 2016, v 0.5
## This script attempts to decode common PowerShell encoded scripts. This version handles:
## * base64 data which encode unicode, gzip, or deflate encoded strings
## * it can operate on a file or stdin
## * it can run recursively in the event of multiple layers
## With apologies to @Lee_Holmes for using Python instead of PowerShell
##
import sys
import zlib
import re