Skip to content

Instantly share code, notes, and snippets.

@four0four
four0four / microcorruption.py
Last active January 8, 2023 03:21 — forked from joshwatson/microcorruption.py
Microcorruption Memory Dump BinaryView for Binary Ninja
import struct
import traceback
from binaryninja import (
BinaryView, Architecture, log
)
from binaryninja.enums import (
SegmentFlag
)
class MicrocorruptionView(BinaryView):
@four0four
four0four / ring_thing.scad
Last active March 24, 2023 03:16
Simple piston-ring-pusher tool to help with measuring gaps repeatably. Requires https://github.com/revarbat/BOSL2 for the chamfer.
include <BOSL2/std.scad>
$fn=500;
difference() {
union() {
difference() {
cylinder(h=25, r = 50, center = false);
up(25) #chamfer_cylinder_mask(r=50, chamfer=2);
@four0four
four0four / GetProcAddressEx.rs
Created April 14, 2023 02:12
GetProcAddressEx "in Rust"
use windows::core::*;
use windows::Win32::Foundation::HMODULE;
use windows::Win32::System::LibraryLoader::{GetProcAddress, LoadLibraryA};
//use windows::Win32::UI::Input::XboxController::XINPUT_STATE;
// ref: https://gist.github.com/robindegen/9446175
#[repr(C)]
#[derive(Debug,Default)]
@four0four
four0four / seal_installer.scad
Created May 26, 2023 06:07
janky seal press
$fn=500;
inner_dia = 47.5;
outer_dia = 57.5;
clearance = 1.0;
height = 10;
@four0four
four0four / smurw-gpu.c
Last active June 1, 2023 21:18
hacked up smurw.c tested on an rx580 (should work on most?) invocation is like ./smurw [path to resource5 BAR] [addr] (dword to write)
/* smutool Tool for SMU
* Copyright (C) 2015 Damien Zammit <damien@zamaudio.com>
* Copyright (C) 2023 Sheep Sun <sunxiaoyang2003@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,