Skip to content

Instantly share code, notes, and snippets.

man() {
if [ "$1" = "which" ]; then
shift
curl -sL "https://attackd.com/man-which" | grep -m1 -A10 "Sloppy joe."
else
command man "$@"
fi
}
@flakpaket
flakpaket / python3.11-enum.patch
Created December 22, 2023 03:06
This patch fixes an error when using certipy-ad with python3.11 (Default in Kali 2023.4)
# This patch fixes the following error when using certipy-ad with python3.11 (Default in Kali 2023.4):
# [-] Got error: module 'enum' has no attribute '_decompose'
# Reference for fix: https://github.com/ly4k/Certipy/issues/159#issuecomment-1665921154
# Because the comment's code was not formatted correctly, I used python3.10's enum.py as a reference:
# https://github.com/python/cpython/blob/3.10/Lib/enum.py#L1026-L1053
# To apply this patch, run the following commands to backup enum.py and apply the patch:
# cp /usr/lib/python3.11/enum.py enum.py.bak
# sudo patch /usr/lib/python3.11/enum.py python3.11-enum.patch
--- enum.py 2023-12-21 20:11:33.166093911 -0500
+++ /usr/lib/python3.11/enum.py 2023-12-21 20:20:30.649163172 -0500
@flakpaket
flakpaket / all.txt
Created June 4, 2021 20:07 — forked from jhaddix/all.txt
all wordlists from every dns enumeration tool... ever. Please excuse the lewd entries =/
This file has been truncated, but you can view the full file.
.
..
........
@
*
*.*
*.*.*
🐎
@flakpaket
flakpaket / make_router.sh
Created August 29, 2020 11:45
Simple Linux Router, DNS, and DHCP
#!/bin/bash
# Turn it into a router
echo 1 > /proc/sys/net/ipv4/ip_forward
# dnsmasq for DNS and DHCP
# DHCP Options 3 and 6 are for Routers and DNS respectively
dnsmasq --interface=eth0 --bind-interfaces --except-interface=lo \
--dhcp-range=10.5.5.50,10.5.5.150,12h \
--conf-file=/dev/null \
#!/usr/bin/env python
'''
Demo app to teach my daughter how we can make cool tools and apps with python.
She's working on speeding up her times tables at school, so this creates
a set of multiplication problems for her to solve.
'''
import random, sys
def makeProblems(num):
x = 0
while x < num: