Skip to content

Instantly share code, notes, and snippets.

@umiiii
umiiii / ida.md
Created December 8, 2025 08:11
ida.md

Reverse Engineering Agent Prompt: Function Analysis & Renaming

Role

You are an expert reverse engineering agent specialized in analyzing Rust-compiled x86_64 binaries. You have access to IDA Pro via MCP (Model Context Protocol) tools. Your task is to analyze decompiled functions, understand their purpose, and improve database readability by applying meaningful names and types.

Systematic Methodology

Phase 1: Information Gathering

  1. Decompile the target function
@umiiii
umiiii / vanity_address_solana.md
Created February 18, 2025 14:26
How to generate your own prefix Solana address (vanity address)
  1. Find a GPU machine, with docker installed
  2. Use a cuda image, I use 12.6.2-cudnn-devel-ubuntu22.04
  3. git clone https://github.com/mcf-rocks/solanity
  4. Change GPU_ARCHS and GPU_PTX_ARCH to match your GPU
  5. Change src/config.h to find your own prefix.
  6. make -j8
  7. Enjoy
from web3 import Web3
from eth_account.messages import encode_defunct
import json
# Initialize Web3 connection
w3 = Web3(Web3.HTTPProvider("https://eth.llamarpc.com"))
YOUR_PRIVATE_KEY = ""
# Smart contract address and ABI
contract_address = "0x8143182a775C54578c8B7b3Ef77982498866945D"
abi = [
#!/bin/bash
CONFIG_DIR="/root/cfg"
YOUR_ADDRESS="0x"
# Iterate through all directories under /root/cfg
for DIR in "$CONFIG_DIR"/*/; do
# Get directory name
CONFIG_PATH="$DIR/.config"
echo "Processing config: $CONFIG_PATH"
import {
LAMPORTS_PER_SOL,
SystemProgram,
Transaction,
sendAndConfirmTransaction,
Keypair,
} from "@solana/web3.js";
// Use Playground cluster connection
const connection = pg.connection;
@umiiii
umiiii / index.ts
Last active October 13, 2024 09:29
import { Connection, PublicKey } from '@solana/web3.js';
const RAYDIUM_PUBLIC_KEY = "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8";
const HTTP_URL = "https://tiniest-holy-river.solana-mainnet.quiknode.pro/";
const WSS_URL = "wss://tiniest-holy-river.solana-mainnet.quiknode.pro/";
const RAYDIUM = new PublicKey(RAYDIUM_PUBLIC_KEY);
const INSTRUCTION_NAME = "initialize2";
const connection = new Connection(HTTP_URL, {
wsEndpoint: WSS_URL
});
@umiiii
umiiii / install_tinyproxy.sh
Last active August 12, 2024 08:54
install_tinyproxy.sh
wget https://github.com/tinyproxy/tinyproxy/releases/download/1.11.2/tinyproxy-1.11.2.tar.gz && tar -xzvf tinyproxy-1.11.2.tar.gz && cd tinyproxy-1.11.2 && ./autogen.sh && make install && echo "Port 8888" > /tmp/tinyproxy.conf && tinyproxy -c /tmp/tinyproxy.conf
alias dislid='sudo pmset -b sleep 0; sudo pmset -b displaysleep 0; sudo pmset -b disablesleep 1'
alias enlid='sudo pmset -b sleep 15; sudo pmset -b displaysleep 10; sudo pmset -b disablesleep 0'
@umiiii
umiiii / xen.sh
Last active September 30, 2023 07:27
sudo apt install ocl-icd-opencl-dev cmake python3-pip nano -y &&git clone https://github.com/shanhaicoder/XENGPUMiner.git && cd XENGPUMiner && git checkout a8df19a6c5d868f47ef9a0850c04422302105452 && chmod +x build.sh &&./build.sh && pip3 install -r requirements.txt && tmux new-session -d -s s2 && tmux send-keys -t s2 "cd /root/XENGPUMiner && ./xengpuminer -b 256" C-m && tmux split-window -v && tmux send-keys -t s2 "cd /root/XENGPUMiner && python3 /root/XENGPUMiner/miner.py --account 0x3739E5d97Dc5d8139FA6Cd290B10B122F56EBC39" C-m && tmux attach -t s2
@umiiii
umiiii / test.sh
Created August 30, 2023 15:21
go2
#!/bin/bash
#
# This script generates the post files for the specified node.
#
## Usage:
#
# ./generate-post.sh <sizeGiB> <nodeId> <commitmentAtxId>
#
## Author:
#