Skip to content

lushun2014/lushibo-skills / lushibo-memory

lushibo-memory

Verified

Cross-platform process memory, dump, runtime, heap, pointer-chain, signature, structure, and memory-forensics analysis for Windows, Linux, Android, Unity IL2CPP, Unreal, native applications, crash dumps, and raw memory images. Use when Codex receives a PID, process name, memory dump, module offset, AOB pattern, pointer chain, runtime address, crash dump, Volatility artifact, Frida target, or needs ReadProcessMemory/process_vm_readv code, map/module discovery, structure reconstruction, memory diffing, hooks, watchpoints, dump analysis, or rollback-safe patch tooling.

FileKindSize
SKILL.mdskill md4.0 KB
agents/openai.yamlconfig236 B
references/dump-structures.mdmarkdown1.0 KB
references/linux-android.mdmarkdown768 B
references/windows.mdmarkdown895 B
scripts/aob_scan.pyscript1.5 KB
scripts/dump_strings.pyscript1.0 KB

scripts/aob_scan.py

View on GitHub
#!/usr/bin/env python3
"""Scan a file or dump for AOB patterns such as '48 8B ?? ?? 89'."""
from __future__ import annotations
import argparse, mmap
from pathlib import Path

def parse_pattern(text: str) -> tuple[bytes, bytes]:
    values=[]; masks=[]
    for token in text.replace(',', ' ').split():
        if token in ('?', '??', '**'): values.append(0); masks.append(0)
        else:
            if len(token) != 2: raise ValueError(f"invalid token: {token}")
            values.append(int(token, 16)); masks.append(0xFF)
    if not values: raise ValueError('empty pattern')
    return bytes(values), bytes(masks)

def match_at(buf, offset: int, values: bytes, masks: bytes) -> bool:
    return all(not masks[i] or buf[offset+i] == values[i] for i in range(len(values)))

def main() -> None:
    ap=argparse.ArgumentParser();ap.add_argument('path',type=Path);ap.add_argument('pattern');ap.add_argument('--base',type=lambda x:int(x,0),default=0);ap.add_argument('--max',type=int,default=100)
    args=ap.parse_args(); values,masks=parse_pattern(args.pattern); hits=[]
    with args.path.open('rb') as f:
        if f.seek(0,2)==0: return
        f.seek(0)
        with mmap.mmap(f.fileno(),0,access=mmap.ACCESS_READ) as mm:
            limit=len(mm)-len(values)+1
            for off in range(max(0,limit)):
                if match_at(mm,off,values,masks):
                    hits.append(off)
                    if len(hits)>=args.max:break
    for off in hits: print(f"file=0x{off:x} virtual=0x{args.base+off:x}")
    print(f"hits={len(hits)}")
if __name__=='__main__':main()
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall