Skip to content

Instantly share code, notes, and snippets.

View ilp-sys's full-sized avatar

Jiwoo Ahn ilp-sys

View GitHub Profile
@ilp-sys
ilp-sys / client.go
Created April 23, 2026 04:44
simple grpc client fetching OCI Image manifest and config from cotainerd
package main
import (
"context"
"encoding/json"
"flag"
"fmt"
"io"
"net"
"os"
static uint64_t get_next_addr(uint32_t eip) {
uint32_t *ptr = (uint32_t*)(eip - 4);
int offset = (int)(*ptr);
return (offset + eip);
}
uint32_t find_symbol(uint32_t addr) {
int i = symtab.index;
Elf32_Shdr *sections = symtab.sections;