Skip to content

Instantly share code, notes, and snippets.

View mozark24's full-sized avatar

Mozark mozark24

View GitHub Profile
@lwerdna
lwerdna / binvis_binja.py
Created May 14, 2020 19:32
strive for binvis.io effect using pygame and udp_nav plugin
#!/usr/bin/env python3
# invoke with path to the binary to be analyzed
# use 'a' and 'q' to change palette
# binja needs to be running udp_nav plugin to have clicks here move binja around https://gist.github.com/lwerdna/360446a59dedeb1defa2f86128e591bf
import os
import sys
import random
import socket
@lwerdna
lwerdna / binja_udp_nav.py
Created May 14, 2020 19:30
make binja listen on udp for navigation commands
# binja listens on UDP for navigate commands
import socket
import threading
import binaryninja
headless = False
try:
from binaryninjaui import DockHandler
except ModuleNotFoundError:
@lwerdna
lwerdna / cc_binjaplug.py
Created May 12, 2020 16:49
Binary Ninja plugin that pops open a PySimpleGUI to navigate functions by cyclomatic complexity
#!/usr/bin/env python
import sys
import time
bv = None
lookup = {}
table_data = []
def gui_thread():
#!/usr/bin/env python
# Copyright 2017 Ryan Stortz (@withzombies)
#
# 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