Quick notes on pyproject.toml
my-project
├── pyproject.toml
└── src
└── my-project
└── my_module.py
import idautils | |
ea = 0x000000140013188 | |
name = ida_name.get_ea_name(ea) | |
print("found") | |
# get xrefs to function | |
xrefs = [x for x in idautils.CodeRefsTo(ea, 0)] | |
for func in xrefs: |
from cmd or Run
powershell -Command "Start-Process cmd -Verb RunAs"
import os | |
import pefile | |
import json | |
INTERESTING_DLLS = [ | |
'kernel32.dll', 'comctl32.dll', 'advapi32.dll', 'comdlg32.dll', | |
'gdi32.dll', 'msvcrt.dll', 'netapi32.dll', 'ntdll.dll', | |
'ntoskrnl.exe', 'oleaut32.dll', 'psapi.dll', 'shell32.dll', | |
'shlwapi.dll', 'srsvc.dll', 'urlmon.dll', 'user32.dll', |
This is my current warmup routine. I have been doing variations of it for over 10 years. I usually row or jump rope for 5 minutes and then do the warmup which typically takes about 10 minutes. Once warmed-up I start with squats and then I do a combination of overhead press, bent-over row, bench-press or deadlifts.
Prevent distractions within slack by making the sidebar black.
Slack > Settings > Themes > Create a Custom Theme > "Copy and paste these values to share your custom theme with others"
Cut and paste the following values
#000000,#000000,#000000,#000000,#000000,#000000,#000000,#000000,#000000,#000000
import ctypes | |
class BYTE2UUID(ctypes.Structure): | |
""" | |
Variant 2 UUIDs | |
https://en.wikipedia.org/wiki/Universally_unique_identifier#Encoding | |
""" | |
_fields_ = [ | |
("time_low", ctypes.c_uint), ("time_mid", ctypes.c_ushort), ("time_hi_and_version", ctypes.c_ushort), | |
("clock_seq_hi_and_res", ctypes.c_char * 2), ("node", ctypes.c_char * 6) |
import re | |
from anytree import Node, RenderTree, find | |
""" | |
Author: Alexander Hanel | |
Description: POC for displaying function names as a folder-like structure. Relies on function names being labled with a pdb. | |
Version: 0.5 - 2023/04/10 | |
Execution: open script in IDA, run export_layout() to save to file or export_layout() to print to command line | |
TODO: | |
- review how mangled names are used in IDA. I'm seeing some strange results. |