Skip to content

Instantly share code, notes, and snippets.

@bytehow
bytehow / pwntools-progress.py
Last active December 5, 2023 03:54
pwntools bruteforce progress logging
import random
from pwn import *
SEED = 0xdeadbeef
RANGE_MIN = 1
RANGE_MAX = 5
ROUNDS = 20
SLEEP_TIME = 0.100 # 100ms
random.seed(SEED)
@bytehow
bytehow / quick-samba.md
Last active April 30, 2020 23:17
Using a containerized samba network file share, and connecting to it from multiple OSes

Starting the containerized samba server

sudo docker run \
  -p 139:139 \
  -p 445:445 \
  -v `pwd`:/mount \
  -d dperson/samba \
  -u 'myuser;mypassword' \
  -s 'myshare;/mount;yes;no;no;myuser;myuser;myuser'
@bytehow
bytehow / run-ghidra-python-script.sh
Created October 4, 2020 04:33
A bash script to run a python Ghidra script from the command line
#!/bin/bash
GHIDRA_DIR=/path/to/Ghidra
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
PROJECT_DIR=/path/to/project
PROJECT=<project name>
FILE=<file within project>
SCRIPT=<script path in relation to this script's dir>
@bytehow
bytehow / screen-to-gif
Created April 30, 2021 20:20
Turn screen recording on macos into gif
Handy for demos & writing docs
Install:
$ brew install --cask xquartz
$ brew install ffmpeg imagemagick@6 gifsicle pkg-config
$ sudo gem install screengif
Record:
Shift + Cmd + 5
@bytehow
bytehow / Summer Games Fest 2024.md
Last active June 9, 2024 23:38
Games I am most excited about from SGF 2024, ranked