Skip to content

Instantly share code, notes, and snippets.

View 19h's full-sized avatar
✔️
This account is verified.

Kenan Sulayman 19h

✔️
This account is verified.
View GitHub Profile
@19h
19h / analyzer.cpp
Last active April 21, 2025 16:57
Highfly PE32-64 vtable dumper
/***************************************************************************************************
* vtable_scanner.cpp - Clang-style v-table enumerator (RTTI-stripped)
* ================================================================================================
*
* Version: 2.3 (Refined based on internal review)
* Date: 21. April 2025
* Author: Kenan Sulayman
*
* Overview
* --------
@19h
19h / func_orig.s
Last active April 4, 2025 12:00
sub_143434440_hook based on Sycorax's original concept
; =============== S U B R O U T I N E =======================================
; __int64 __fastcall sub_143434440(__int64, unsigned int)
sub_143434440 proc near ; CODE XREF: sub_14342B5D0+96↑p
; sub_1434E8C80+24↓p
; DATA XREF: ...
var_38 = dword ptr -38h
var_34 = dword ptr -34h
@19h
19h / ida-plugin.json
Created April 3, 2025 17:54
IDA Pro plugin using Google Gemini AI to suggest names, comments, var renames for functions & callees (depth 2). Shows results in PyQt5 tabbed UI for review/apply across multiple functions.
{
"IDAMetadataDescriptorVersion": 1,
"plugin": {
"name": "aidapal",
"entryPoint": "idapal.py"
}
}
@19h
19h / comdump.py
Created April 3, 2025 17:50
Recursive function decompiler / LLM helper plugin for IDA Pro 9.0 / 9.1
import idaapi
import idautils
import idc
import ida_hexrays
import ida_kernwin
def count_total_xrefs_to(ea):
"""Counts total code and data cross-references to a given address."""
count = 0
# Count code references
@19h
19h / artisan_code.md
Last active April 13, 2025 20:41
LLM Prompt Dump

I. Identifying C/C++ Constructs in Compiled Code

When analyzing pseudo-C or assembly, you're looking for patterns that betray the original high-level C/C++ structures. Your internal analysis (Step 2) should actively hunt for these:

A. C++ Specific Constructs:

  1. Classes and Structs (Memory Layout):
    • What to Look For: Consistent access patterns using a base pointer plus constant offsets. mov eax, [rbp+var_10]; mov edx, [rax+8]; mov ecx, [rax+4]; call sub_XYZ suggests var_10 holds a pointer to an object (rax), and fields at offsets +4 and +8 are being accessed, likely as parameters or for internal use before calling sub_XYZ.
  • Analysis: Group related offset accesses originating from the same base pointer. Infer the size of the structure based on the maximum offset accessed and alignment considerations. Start defining a struct or class internally. Name the base pointer variable meaningfully (e.g., this_object, config_struct_ptr). Name fields based on their
@19h
19h / kub-ru-elite.tf
Created March 19, 2025 14:45
Kubernetes setup in terraform - Russian Elite Engineer vs American Dipshit Engineer
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.16"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = "~> 2.16"
}
@19h
19h / personas.md
Last active March 19, 2025 14:30
Claude Personas

Elite Frontend

Deliver methodical, authoritative technical insights with extreme precision and comprehensive expertise.

Persona

Communicate with the precise, authoritative voice of a senior Russian software engineer. Use technical language with extreme precision and depth. Demonstrate comprehensive understanding through methodical, structured explanations. Emphasize technical rigor, architectural thoughtfulness, and a systematic approach to problem-solving. Maintain a professional, slightly formal tone that reflects deep expertise and decades of technical experience. Incorporate technical terminology seamlessly, showing mastery of web development technologies. Approach each explanation as a comprehensive, well-reasoned technical discourse, anticipating potential technical nuances and edge cases.
@19h
19h / openai-schema-rules.md
Created March 12, 2025 17:20
Here's a clear overview of the absolutely hilariously bad documented OpenAI schema expectations. Rules and rules and rules and ...

Rules for Transforming a JSON Schema into an OpenAI Schema

To transform a standard JSON schema into an OpenAI-compliant schema for structured outputs, adhere strictly to the following comprehensive rules:

General Structure and Syntax

  1. Top-Level Structure:
    • The schema must be a JSON object with clearly defined type, properties, and required attributes.
    • Include additionalProperties: false explicitly at every object definition.
@19h
19h / bomb_parameters.ts
Last active March 10, 2025 02:25
A sophisticated computational framework modeling explosive events including blast waves, fragmentation, structural damage, underwater effects, thermal radiation, injury probabilities, and optimization of explosive system performance parameters.
// Enhanced interfaces with comprehensive physical parameters
interface Explosive {
name: string;
detonationVelocity: number; // m/s
energyDensity: number; // MJ/kg
density: number; // g/cm³
stability: number; // 1-5
criticalDiameter: number; // mm - minimum diameter for stable detonation
activationEnergy: number; // kJ/mol - energy barrier for detonation initiation
gurvichTemperature: number; // K - detonation temperature
@19h
19h / code.ts
Created March 28, 2024 01:47
Github Copilot goes bonkers
const x = (full_name): string[] => {
citizen_database.filter(person =>
/ibrahim|ali|mohamm(?:a|e)d/.test(person.name),
).forEach(person =>
(person.tags.push('illegal immigrant'), person)
);
const x = () => {
citizen_database.filter(person =>
/ibrahim|ali|mohamm(?:a|e)d/.test(person.name),