Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# certwatch.py - SQL and API adapter Python library for crt.sh
#
# from certwatch import CertWatch
#
#
# usage: certwatch.py [-h] -d DOMAIN [-a {api,psql}] [-e] [--proxy PROXY] [--debug]
#
# Break up normal password spraying into smaller chunks
# i.e. Spray `Password` against 100/5,000 users at a time
# The reason for this code is to expand on the functionality of o365spray as
# it currently only supports breaking up sprays by groups of passwords. Instead
# this allows us to break sprays up by groups of users per password.
DOMAIN=changeme # TODO: Fill this out
USERFILE=changeme # TODO: Fill this out
# Break up user enumeration into chunks of users
# i.e. Enumerate 100/5,000 users at a time
# The reason for this code is to expand on the functionality of o365spray as
# it currently only supports enumerating a single user or an entire list of users.
# Instead this allows us to break enumeration attempts up by groups of users.
DOMAIN=changeme # TODO: Fill this out
USERFILE=changeme # TODO: Fill this out
" From: https://github.com/tomnomnom/dotfiles/blob/master/.vimrc
" Highlighting
syntax on
set encoding=utf-8
set pastetoggle=<F2>
" History
set history=50
@0xZDH
0xZDH / .tmux.conf
Last active February 21, 2021 00:21
# Remove the escape key delay
# This should help speed up vim interactions
set -sg escape-time 0
# Set default history size
set -g history-limit 100000
# Easily reload the tmux config
bind-key r source-file ~/.tmux.conf \; display ".tmux.conf reloaded!"
@0xZDH
0xZDH / amsi.py
Created April 5, 2020 07:33
Python implementation of AMSI API
#!/usr/bin/env python3
#> ------------------------------------
# Antimalware Scan Interface
#> ------------------------------------
import sys
from enum import IntEnum
@0xZDH
0xZDH / osxmonitor.sh
Last active May 18, 2021 17:12
Continuously monitor the network connections on OS X.
#!/bin/bash
#
# OSX Monitor: Continuously monitor network connections on OS X
#
VERSION="0.1"
# Confirm a PID (provided by the user) exists within the list of
# running processes with open network connections
@0xZDH
0xZDH / .bashrc
Last active February 21, 2021 00:28
# Some functions and aliases pulled from:
# https://github.com/tomnomnom/dotfiles/blob/master/.bashrc
# https://github.com/denysdovhan/dotfiles/blob/master/lib/aliases.zsh
# .bashrc
# curl -o ~/.bashrc https://gist.githubusercontent.com/0xZDH/0402f8659f9cb0ca60bd2d97f1a63657/raw
# .vimrc:
# curl -o ~/.vimrc https://gist.githubusercontent.com/0xZDH/6cd52c5b440edd6a4155719eebfb4f6e/raw
@0xZDH
0xZDH / SV-s3e1.md
Created July 17, 2019 15:03
Silicon Valley Season 3 Episode 1 Code

wb-combined.c

Original C Code

#include <stdio.h>
#include <stdlib.h>

typedef unsigned long u64;