Skip to content

Instantly share code, notes, and snippets.

@smx-smx
smx-smx / vl805.c
Last active July 14, 2024 00:56
VL805 USB Init Code
/**
Moved to https://github.com/smx-smx/tools/tree/master/vl805
**/
@smx-smx
smx-smx / AsrockFlashrom.jpg
Last active June 30, 2024 01:08
z270 coreboot
AsrockFlashrom.jpg
@smx-smx
smx-smx / !readme.md
Last active May 12, 2024 15:49
MSDelta flows dump

Dumped from compo::Environment::PutAllComponentFactories in msdelta.dll

@smx-smx
smx-smx / XZ Backdoor Analysis
Last active October 12, 2024 07:23
[WIP] XZ Backdoor Analysis and symbol mapping
XZ Backdoor symbol deobfuscation. Updated as i make progress
@smx-smx
smx-smx / !microsoft_pe.txt
Last active July 14, 2024 13:15
microsoft_pe.ksy
Moved to https://github.com/smx-smx/tools/tree/master/kaitai/microsoft_pe
@smx-smx
smx-smx / CMakeLists.txt
Created February 9, 2024 01:41
!linker_proxy
project(linker_test)
macro(handle_asm_file file)
set_property(SOURCE "${file}" PROPERTY LANGUAGE C)
set_property(SOURCE "${file}" PROPERTY COMPILE_DEFINITIONS __ASSEMBLY__)
endmacro()
find_library(LIBCRYPTO_LIBRARY NAMES crypto REQUIRED)
message(STATUS ${LIBCRYPTO_LIBRARY})
@smx-smx
smx-smx / lgsym.ksy
Last active January 6, 2024 21:23
LG Sym Kaitai definition
meta:
id: lg_sym
file-extension: sym
endian: le
encoding: ascii
seq:
- id: header
type: header
- id: sym_entries
type: sym_entry
@smx-smx
smx-smx / _INSTALL.md
Created December 5, 2023 01:38 — forked from robinsmidsrod/_INSTALL.md
Bootstrapping full iPXE native menu with customizable default option with timeout (also includes working Ubuntu 12.04 preseed install)

Add the following chunk to your existing ISC dhcpd.conf file.

if exists user-class and ( option user-class = "iPXE" ) {
    filename "http://boot.smidsrod.lan/boot.ipxe";
}
else {
    filename "undionly.kpxe";
}

(or see https://gist.github.com/4008017 for a more elaborate setup

@smx-smx
smx-smx / ffi.patch
Created November 28, 2023 01:29
PHP FFI Thread Safe patch
diff --git a/ext/ffi/ffi.c b/ext/ffi/ffi.c
index 9be5ac3405..81ac091750 100644
--- a/ext/ffi/ffi.c
+++ b/ext/ffi/ffi.c
@@ -922,9 +922,11 @@ static void zend_ffi_callback_hash_dtor(zval *zv) /* {{{ */
}
/* }}} */
-static void zend_ffi_callback_trampoline(ffi_cif* cif, void* ret, void** args, void* data) /* {{{ */
-{