Skip to content

Instantly share code, notes, and snippets.

View h4sh5's full-sized avatar

Haoxi Tan h4sh5

View GitHub Profile
@h4sh5
h4sh5 / RC4.c
Created April 28, 2024 01:54 — forked from rverton/RC4.c
/*
robin verton, dec 2015
implementation of the RC4 algo
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define N 256 // 2^8
@h4sh5
h4sh5 / Exploitation.md
Created February 16, 2024 15:48 — forked from yezz123/Exploitation.md
Pentesting-Exploitation
@h4sh5
h4sh5 / touchid_sudo.sh
Last active October 14, 2023 06:13 — forked from RichardBronosky/touchid_sudo.sh
Use TouchID for sudo on modern MacBook Pro machines
#!/bin/bash
# curl -sL https://gist.githubusercontent.com/RichardBronosky/31660eb4b0f0ba5e673b9bc3c9148a70/raw/touchid_sudo.sh | bash
# This script is ready to copy-paste in whole, or just the line above (without the leading #)
# Use TouchID for sudo on modern MacBook Pro machines
# This script adds a single line to the top of the PAM configuration for sudo
# See: https://apple.stackexchange.com/q/259093/41827 for more info.
touchid_sudo(){
@h4sh5
h4sh5 / random_session_key_calc.py
Created May 28, 2022 09:39 — forked from khr0x40sh/random_session_key_calc.py
Random Session Key calculator based off of data from a packet capture
#!/usr/bin/env python3
import hashlib
import hmac
import argparse
import binascii
#stolen from impacket. Thank you all for your wonderful contributions to the community
try:
from Cryptodome.Cipher import ARC4
from Cryptodome.Cipher import DES