So, here's a list of stuff that might be useful but I never implemented.
The basic idea is to have a graph view instead of a linear one.
Ideas:
import glob | |
import os | |
import lief | |
def main(drivers_path): | |
drivers = sorted(glob.glob(os.path.join(drivers_path, '*.sys'))) | |
for driver in drivers: | |
pe = lief.parse(driver) |
#!/usr/bin/env python3 | |
""" | |
draw.io uses foreignObject tags to put fancy text on SVGs. | |
The structure it creates is like this: | |
``` | |
<switch> | |
<foreignObject>...</foreignObject> | |
<text>...</text> |
python3 -c 'import json; import glob; import itertools; print(json.dumps(list(itertools.chain(*[json.load(open(f, "rb")) for f in glob.glob("**/compile_commands.json", recursive=True)])), indent=4))' > ../compile_commands.json |
Linux perf fixes | |
01 overview | |
02 patch to make linux perf report work cleanly with jitdump remap | |
03 perf script for sample input file showing mmap overwrite | |
04 perf report before example | |
05 perf report after example | |
-- | |
KDAB Hotspot specific fixes | |
06 patch to make linux perf output output program headers for KDAB hotspot | |
07 patch to make hotspot UI load cleanly with jitdump remap |
#!/usr/bin/env python3 | |
import pygatt | |
""" | |
adc <= 1000 | |
age <= 120 | |
heigth <= 269 | |
weight <= 220 |
[Suggested description] | |
An integer underflow in the SMB server of MikroTik RouterOS 6.43.16 | |
(x86 and CHR) allows remote unauthenticated attackers to crash the | |
service. | |
------------------------------------------ | |
[Additional Information] | |
The vulnerability likely affects other versions too. | |
The vulnerability might be exploitable to achieve RCE. |
meta: | |
id: spidermonkey | |
endian: le | |
seq: | |
- id: build_id_length | |
type: u4 | |
- id: build_id | |
type: str |
#!/usr/bin/env python3 | |
""" | |
Quick'n'dirty script to translate subs using Yandex. | |
It all started because I didn't have enough time to finish a Japanese movie | |
that I was watching heading back home from DEF CON 27. | |
Anyway, I managed to get a copy of the movie (**cough cough**) but my 日本語 | |
is really bad and the only subs I could find were in Chinese. | |
So I decided to bear the automatic translation for the remaining 30 minutes |
# Cython/pyximport don't work 100% with the `inspect` module. | |
# For this reason, `IPython.embed()` is not able to get the locals from the current frame. | |
# This is how to work around that | |
import IPython | |
def embed(locs): | |
# Pass the locals explicitly | |
IPython.embed(user_ns=locs) |