Skip to content

Instantly share code, notes, and snippets.

@kuteteen
kuteteen / stringobf-cpp11.cpp
Created September 3, 2021 01:53 — forked from mattypiper/stringobf-cpp11.cpp
compile time string obfuscation
// http://www.rohitab.com/discuss/topic/39611-malware-related-compile-time-hacks-with-c11/
#include <stdio.h>
#include <stdint.h>
//-------------------------------------------------------------//
// "Malware related compile-time hacks with C++11" by LeFF //
// You can use this code however you like, I just don't really //
// give a shit, but if you feel some respect for me, please //
// don't cut off this comment when copy-pasting... ;-) //

#Loading Tweaks in the Simulator

With the latest updates to the simulator, this turns out to be pretty simple:

You need to be using kirb/theos

In order not to require MobileSubstrate to be loaded and your tweak to be compiled for i386/x86_64, add

In your makefile:

@kuteteen
kuteteen / gist:577a5ce15e41840fdcc88ef35d4c0ff4
Created May 14, 2020 02:51 — forked from RiANOl/gist:1077723
AES128 / AES256 CBC with PKCS7Padding in PHP
<?
function aes128_cbc_encrypt($key, $data, $iv) {
if(16 !== strlen($key)) $key = hash('MD5', $key, true);
if(16 !== strlen($iv)) $iv = hash('MD5', $iv, true);
$padding = 16 - (strlen($data) % 16);
$data .= str_repeat(chr($padding), $padding);
return mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $data, MCRYPT_MODE_CBC, $iv);
}
@kuteteen
kuteteen / writeData.h
Created March 19, 2019 05:09 — forked from Razzile/writeData.h
writeData using MSHookMemory as a backend for iOS 12
//**************************************************//
//**This Header File is used in combination********//
//**with a dynamic Library and must be rewritten**//
//**if you want to use it for another purpose****//
//**********************************************//
//******************************************//
//**Credits: HackJack & Razzile(Kamizoom)**//
//****************************************//
@kuteteen
kuteteen / pgyer.md
Created May 25, 2017 08:12 — forked from vineetchoudhary/pgyer.md
Download .ipa file from pgyer.com