Skip to content

Instantly share code, notes, and snippets.

View stuartw1's full-sized avatar

Stuart Walker stuartw1

View GitHub Profile
@stuartw1
stuartw1 / apreq2hashcat.py
Created July 7, 2026 13:40
Convert AP-REQ to hashcat
#!/usr/bin/env python3
"""
apreq2hashcat.py -- convert a raw Kerberos AP-REQ / ticket (hex) into a
hashcat-ready Kerberoasting hash.
Input is the hex you get from, e.g., PowerShell:
$Request = New-Object System.IdentityModel.Tokens.KerberosRequestorSecurityToken -ArgumentList $SPN
($Request.GetRequest() | % { '{0:X2}' -f $_ }) -join ''
It accepts the GSS-wrapped AP-REQ (starts 0x60), a bare AP-REQ (0x6E),
or a bare Ticket (0x61). The etype is auto-detected and the correct
@stuartw1
stuartw1 / postinst.sh
Last active May 30, 2024 06:34
Install ZeroTier without locking while loop at end. Useful for chroot build environments
#!/bin/sh
# The reference version of this script is maintained in
# ./live-build-config/kali-config/common/includes.installer/kali-finish-install
#
# It is used in multiple places to finish configuring the target system
# and build.sh copies it where required (in the simple-cdd configuration
# and in the live-build configuration).
configure_sources_list() {
@stuartw1
stuartw1 / install-openvpn3-kali.sh
Last active November 4, 2025 11:41
install openvpn3 and dependencies on Kali Linux
#!/bin/bash
# The following commands should install openvpn3 successfully on Kali Linux as of 2023-10-11
# Please check libssl1.1 version is newest at https://packages.debian.org/bullseye/amd64/libssl1.1
# PM me if broken and I will update
# Thanks to the following for bug reports / additions
# asingh-lp, Pyr0technicien
# update packages
sudo apt update
@stuartw1
stuartw1 / harvest.rb
Created March 27, 2023 16:48 — forked from claudijd/harvest.rb
IKE-Scan Mode/TransformSet/VID Enumeration Helper
# An quick and dirty ike-scan wrapper to enumerate
# supported transform sets and vendor ID fingerprints
# on IPSec VPN Endpoints.
#
# Example Targeted Run Output
#
#$ rvmsudo ruby harvest.rb --targets 192.168.1.1 --enc-types 5 --hash-types 2 --dh-types 2 --auth-types 1
#I, [2013-08-12T23:53:14.490138 #27197] INFO -- : 5 transform combinations to try
#D, [2013-08-12T23:53:14.490221 #27197] DEBUG -- : Trying ike-scan --multiline 192.168.1.1
#I, [2013-08-12T23:53:14.726363 #27197] INFO -- : Found a new VID VID=5b362bc820f60001
@stuartw1
stuartw1 / keybase.md
Created March 8, 2020 18:01
keybase claim

Keybase proof

I hereby claim:

  • I am stuartw1 on github.
  • I am stuartw1 (https://keybase.io/stuartw1) on keybase.
  • I have a public key ASDtLZ8IOSPJlS1aUMxGkr2-16ZhMpcOO-ZPRyQyTKtPOgo

To claim this, I am signing this object: