Skip to content

Instantly share code, notes, and snippets.

View borzacchiello's full-sized avatar
👽
Focusing

borzacchiello

👽
Focusing
View GitHub Profile
@borzacchiello
borzacchiello / DecompilerExporter.java
Last active February 7, 2024 09:03
Ghidra script to export C pseudo-code on multiple files, including defined types
/* ###
* IP: GHIDRA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@borzacchiello
borzacchiello / ImportDwarf.py
Last active January 31, 2022 21:52
BinaryNinja plugin that import DWARF info using addr2line
import subprocess
import sys
import os
import re
from binaryninja import BackgroundTaskThread, PluginCommand
from binaryninja.interaction import get_directory_name_input
def print_err(*msg):
@borzacchiello
borzacchiello / load_cov.py
Last active February 17, 2024 15:42
Binary Ninja plugin that highlights instructions based on a csv file
from binaryninja import PluginCommand, highlight, enums
from binaryninja.interaction import get_open_filename_input
from collections import namedtuple
FunctionData = namedtuple("FunctionData", ["function", "counts"])
g_highlights = dict()
def get_functions(view, address):