Skip to content

Instantly share code, notes, and snippets.

View MlsDmitry's full-sized avatar

MlsDmitry

View GitHub Profile
@nbulischeck
nbulischeck / install-glibc-debug.sh
Last active January 16, 2024 12:06
Install glibc debug symbols on Arch Linux for pwndbg heap analysis
#!/bin/bash
# Install Dependencies
sudo pacman -S git svn gd lib32-gcc-libs patch make bison fakeroot
# Checkout glibc source
svn checkout --depth=empty svn://svn.archlinux.org/packages
cd packages
svn update glibc
cd glibc/repos/core-x86_64
@guedou
guedou / GhidraDecompiler.java
Last active September 11, 2024 16:52
Call the Ghidra decompiler from the command line
// Copyright (C) 2019 Guillaume Valadon <guillaume@valadon.net>
// This program is published under a GPLv2 license
/*
* Decompile a function with Ghidra
*
* analyzeHeadless . Test.gpr -import $BINARY_NAME -postScript GhidraDecompiler.java $FUNCTION_ADDRESS -deleteProject -noanalysis
*
*/