Skip to content

Instantly share code, notes, and snippets.

@jesux
jesux / hk.py
Created June 13, 2023 07:20
Hollow Knight PermaDeath changer
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Requires pycryptodome
import sys, os
if sys.version_info.major<3:
sys.stderr.write("Python3 required\n")
sys.exit(0)
@jesux
jesux / HollowKnight-NoDeath.ps1
Last active March 28, 2023 15:16
Hollow Knight 1.4.3.2/1.5.78.11833 NoDeath Patch (No mod)
$file = "C:\Program Files (x86)\Steam\steamapps\common\Hollow Knight\hollow_knight_Data\Managed\Assembly-CSharp.dll"
Write-Output $file
$bytes = [System.IO.File]::ReadAllBytes($file)
$filehash = (Get-FileHash $file).Hash
$version_1_4_3_2 = [System.Text.Encoding]::Unicode.GetString($bytes[0x335242..0x33524f])
$hash_1_4_3_2 = "52209E09379BCE385473DECA8689369D8843BBBCA5DD93ED9140ED2CE3F48A11"
$hash_patched_1_4_3_2 = "FBC928427818A08DC71B91920C63CD735D41A8C4E139904C907AC6ED0B310DAD"
$version_1_5_78_11833 = [System.Text.Encoding]::Unicode.GetString($bytes[0x2f7284..0x2f729b])
$hash_1_5_78_11833 = "FCC01E0DF1B841A8FAF6B5E39F27030F63204AD02F430B3DEFA262134AE4E8A0"
@jesux
jesux / crack-lm-ntlm.sh
Last active February 21, 2022 19:43
Hashcat Script to Crack LM + NTLM hashes
#/bin/bash
session=ntlmscript
if [ -z "$1" ]; then
echo "No hashfile supplied"
exit
fi
hashfile=$1
if [ ! -f $hashfile ]; then
echo "[ERROR] File not exists."
@jesux
jesux / blueborne-nexus5.py
Created November 3, 2017 10:14
Blueborne RCE PoC - Nexus5 6.0.1
import os
import sys
import time
import struct
import select
import binascii
import bluetooth
from bluetooth import _bluetooth as bt
@jesux
jesux / solitaire-inverse.py
Last active September 9, 2021 03:13
Python implementation of Bruce Schneier's Solitaire with inverse decrypt
#!/bin/env python
"""
Python implementation of Bruce Schneier's Solitaire Encryption
Algorithm.
John Dell'Aquila <jbd@alum.mit.edu>
@jesux
- Final deck decrypt
- Set deck order without passphrase