This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// LemonHaze - 2025 | |
#include <iostream> | |
#include <ostream> | |
#include <fstream> | |
#include <vector> | |
#include <zlib.h> | |
struct arc { | |
struct entry { | |
int a, b, c, size; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import idc | |
import idautils | |
import idaapi | |
rename_funcs = True | |
name_regs = ["rax", "r12", "r13", "r14", "r15", "rdi", "rbp"] | |
exclude_func_substrings = ["Queue_", "_Callback"] | |
unwanted_chars = ["[", ">"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import re | |
import sys | |
def split_c_file(input_file, output_dir): | |
os.makedirs(output_dir, exist_ok=True) | |
marker_pattern = re.compile(r"//----- \(0000000[0-9A-Fa-f]+\) ----------------------------------------------------") | |
function_decl_keyword = "Function declarations" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Dylan E - 2024 | |
#include <iostream> | |
#include <ostream> | |
#include <fstream> | |
#include <string> | |
#include <vector> | |
struct header_t { | |
int fourcc; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Dylan E. - 2022 | |
#include "VehicleController.h" | |
#include "NavigationSystem.h" | |
#include "NavFilters/RecastFilter_UseDefaultArea.h" | |
#include "NavigationPath.h" | |
#include "Kismet/GameplayStatics.h" | |
#include "Kismet/KismetSystemLibrary.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unsigned int Shenmue::CalculateAngleBetweenAngles(float firstFloat, float secondFloat) | |
{ | |
if ( secondFloat < firstFloat ) | |
{ | |
if ( secondFloat < -firstFloat ) | |
{ | |
if ( secondFloat == 0.0 ) | |
return 32768; // -180 degrees | |
else | |
return ((((atanf(firstFloat / secondFloat) * 65536.0) / 6.2831855) + 0.5) + 32768); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import idaapi as ida | |
try: | |
the_string = ida_kernwin.ask_str("", 0, "Please enter a string to search for.") | |
b = bytearray() | |
b.extend(map(ord, the_string)) | |
address = ida.get_first_seg().start_ea | |
while address != BADADDR: | |
if b == get_bytes(address, len(b)): | |
print ("Found at 0x%X" % address) | |
address += 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "pch.h" | |
#define UNK2_DebugLog_offs 0x005657C0 | |
#define ADX_DebugLog_offs 0x0055F030 | |
#define UNK_DebugLog_offs 0x005670E0 | |
#define MH_Call(x) status = x; \ | |
if (status != MH_OK) \ | |
return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <curl\curl.h> | |
#include <nlohmann/json.hpp> | |
using json = nlohmann::json; | |
size_t WriteCallback(char* contents, size_t size, size_t nmemb, void* userp) | |
{ | |
((std::string*)userp)->append((char*)contents, size * nmemb); | |
return size * nmemb; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Configuration | |
device="XX:XX:XX:XX:XX:XX" | |
device_san="XX_XX_XX_XX_XX_XX" | |
characteristic="/org/bluez/hci0/dev_$device_san/service0006/char0007" | |
mode=on | |
brightness=100 | |
red=255 |