Skip to content

Instantly share code, notes, and snippets.

View fuzzamos's full-sized avatar
🤑

fuzzamos

🤑
View GitHub Profile
sudo apt install build-essential git vim
sudo apt install pip python-lz4 libpython-dev xdot python-psutil
pip install --upgrade pip
sudo pip install setuptools mmh3
git clone https://github.com/richinseattle/kAFL
cd kAFL
bash install.sh
sudo apt install qemu-utils
@fuzzamos
fuzzamos / install-api.py
Created May 25, 2019 11:56 — forked from withzombies/install-api.py
Install the Binary Ninja Python API
#!/usr/bin/env python
import os
import sys
import os.path
import site
try:
import binaryninja
print "Binary Ninja API Installed"
@fuzzamos
fuzzamos / peb.c
Created May 25, 2019 11:56 — forked from Wack0/peb.c
Getting a pointer to the PEB in C, for every architecture that NT was ported to (where at least one build of the port was leaked/released)
// Gets a pointer to the PEB for x86, x64, ARM, ARM64, IA64, Alpha AXP, MIPS, and PowerPC.
// This relies on MS-compiler intrinsics.
// It has only been tested on x86/x64/ARMv7.
inline PEB* NtCurrentPeb() {
#ifdef _M_X64
return (PEB*)(__readgsqword(0x60));
#elif _M_IX86
return (PEB*)(__readfsdword(0x30));
import reven
def read_symbolic(point, symbolic):
if isinstance(symbolic, reven.SymbolicRegister):
return point.cpu().read_register(symbolic.name)
elif isinstance(symbolic, reven.SymbolicPhysicalMemory):
mem = point.memory().read_physical(symbolic.address, symbolic.size)
value = 0
for byte in reversed(mem):
value <<= 8
@fuzzamos
fuzzamos / private_fork.md
Created May 25, 2019 11:55 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

/*
VLC harness
sudo apt-get install libvlc-dev
gcc fuzz-harness-vlc.c -l vlc -o fuzz-harness-vlc
*/
#include <stdio.h>
#include <vlc/vlc.h>

Choco Install

Install Choco

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

Install Ghidra 9.0.2

choco install ghidra
@fuzzamos
fuzzamos / ghidra_processor_docs_downloader.py
Created May 25, 2019 11:55 — forked from richinseattle/ghidra_processor_docs_downloader.py
Ghidra Processor Documentation Downloader
#!/usr/bin/env python
# vim: tabstop=4:softtabstop=4:shiftwidth=4:expandtab:
import os
import requests
import sys
docs = {
'68000': {
'M68000PRM.pdf': 'https://www.nxp.com/files-static/archives/doc/ref_manual/M68000PRM.pdf',

History

// Launch WinAFL with current function as hook location
//@author richinseattle
//@category _NEW_
//@keybinding
//@menupath
//@toolbar
// Usage:
// Install DynamoRIO and WinAFL
// Add LaunchWinAFL to Ghidra scripts