Skip to content

Instantly share code, notes, and snippets.

View junron's full-sized avatar
😀
;;;

junron

😀
;;;
View GitHub Profile
@junron
junron / demo.py
Last active February 7, 2025 05:14
C Types for Python
import real_ctypes
arr = (char[16])(b'I love Python+C!')
print("A big integer:", (uint128)(arr))
arr2 = (long[:])(arr)
print("Chunked:", arr2)
arr2 += 1
print("Back to bytes, but offset:", bytes((char[:])(arr2)))
@junron
junron / rexref.py
Last active December 17, 2024 03:26
Recursive xref plugin for IDA
import sark
import idaapi
import ida_kernwin
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
class Hooks(idaapi.UI_Hooks):
def finish_populating_widget_popup(self, form, popup):
type = idaapi.get_widget_type(form)
@junron
junron / keybase.md
Created December 19, 2022 03:11
keybaseverification

Keybase proof

I hereby claim:

  • I am junron on github.
  • I am junron (https://keybase.io/junron) on keybase.
  • I have a public key ASCxEGONvC9o7Wg3R2cbBlhRYa74xPVa9WhiWi_m6rDpjwo

To claim this, I am signing this object: