Skip to content

Instantly share code, notes, and snippets.

View AsherDLL's full-sized avatar

Asher Davila AsherDLL

View GitHub Profile
{
"name": "gruvbox-material",
"style": "Fusion",
"styleSheet": "QMainWindow {border-image:url(/Users/cynder/Library/Application Support/Binary Ninja/themes/cynder/autumn2.png) 0 0 0 0 stretch stretch;} QMenu { background-color: rgba(0, 0, 0, 90); }",
"colors": {
"transparent": "#00000000",
"black": "#0D0D0D",
"white": "#b5afaa",
"red": "#9fbbbd",
@alexander-hanel
alexander-hanel / bn-cheat.md
Last active June 19, 2024 20:56
Cheat Sheet for Binary Ninja
import binaryninja
sources = [
'snprintf', # int snprintf ( char * s, size_t n, const char * format, ... );
'sprintf', # int sprintf ( char * s, const char * format, ... );
]
sinks = [
'system', # int system(const char *command);
]
@joshwatson
joshwatson / mlil_slice.py
Last active July 6, 2023 08:15
MLIL Slicing in Binary Ninja
from binaryninja import HighlightStandardColor, PluginCommand
def do_backward_slice(instruction, function):
# switch to SSA form (this does nothing if it's already SSA).
instruction_queue = set([instruction.ssa_form.instr_index])
visited_instructions = set()
variables = set()