Skip to content

Instantly share code, notes, and snippets.

View AssassinK786's full-sized avatar
🎯
Focusing

Khush Vasudeo Patil AssassinK786

🎯
Focusing
View GitHub Profile
"""
31-round sha256 collision.
Not my research, just a PoC script I put together with numbers plugged in from the slide at
https://twitter.com/jedisct1/status/1772647350554464448 from FSE2024
SHA256 impl follows FIPS 180-4
https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf
"""
@ross-newman
ross-newman / QEMU PPC Setup for Debian
Last active June 9, 2024 18:51
Building PPC Linux code using QEMU on Ubuntu 18.04 LTS
#!/bin/bash
echo "Building Debina 10 QEMU instance..."
wget https://cdimage.debian.org/cdimage/ports/10.0/powerpc/iso-cd/debian-10.0-powerpc-NETINST-1.iso
sudo apt install qemu
# Create new disk for install
qemu-img create -f qcow2 debian10.qcow2 2000M
# Boot the install image
qemu-system-ppc -L pc-bios -boot d -M mac99 -m 1024 -net nic,model=sungem -net user -hda debian10.qcow2 -cdrom ./debian-10.0-powerpc-NETINST-1.iso -g 1024x768x8
# Run the image
qemu-system-ppc -L pc-bios -boot c -prom-env "boot-device=hd:,\yaboot" -prom-env "boot-args=conf=hd:,\yaboot.conf" \
@samm-git
samm-git / Dockerfile
Last active November 13, 2023 17:51
FreeBSD crossbuild with GCC on Linux host
FROM ubuntu:latest
RUN apt-get update
# install dependencies
RUN apt-get install --yes gcc g++ bison make wget xz-utils
# Compile binutils
RUN mkdir /build && cd /build && \
wget https://ftp.gnu.org/gnu/binutils/binutils-2.29.tar.xz && \
tar -xf binutils-2.29.tar.xz && cd binutils-2.29 && \