Skip to content

Instantly share code, notes, and snippets.

View defunctio's full-sized avatar

defunct defunctio

View GitHub Profile
@defunctio
defunctio / function_reg_test.py
Created February 4, 2020 20:28
simple example of BN functionrecognizer
from binaryninja.functionrecognizer import FunctionRecognizer
from binaryninja.enums import MediumLevelILOperation, BranchType
from binaryninja.log import log
class CheckArgRec(FunctionRecognizer):
def recognize_medium_level_il(self, data, func, il):
for edge in il.basic_blocks[0].outgoing_edges:
if edge.type == BranchType.FalseBranch:
for i in edge.target:
if i.operation == MediumLevelILOperation.MLIL_CALL:

Keybase proof

I hereby claim:

  • I am defunctio on github.
  • I am defunct (https://keybase.io/defunct) on keybase.
  • I have a public key ASDVKKEy6kan-Fu8sZt-KduBes_XBYNwpfW5xsVZkLx1gQo

To claim this, I am signing this object:

@defunctio
defunctio / fixbacklight
Created September 18, 2016 19:32
Dell 5500 resume backlight fix in Ubuntu
#!/bin/sh
# From patchwork.freedesktop.org/.../
# and en.community.dell.com/.../19985320
# /lib/systemd/system-sleep/fixbacklight
# Suspend Resume fails to restore PWM_GRANUALITY
# Based on script by Tony.Jewell@Cregganna.Com
INTEL_REG=/usr/bin/intel_reg
ADDR="0x000c2000"
SAVE_FILE=/var/lib/systemd/save_intel_reg_pwm_granuality