seg 0.1.0

seg is a cli tool for analyzing binaries and generating structured reports to help ai agents and security researchers understand and exploit them.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Ret2libc target — NX enabled, no canary, partial RELRO
// Compile: gcc -fno-stack-protector -no-pie -o ret2libc ret2libc.c
#include <stdio.h>
#include <string.h>
#include <unistd.h>

void vuln() {
    char buf[128];
    puts("Tell me something:");
    read(0, buf, 512);
}

int main() {
    puts("Welcome to the ret2libc challenge!");
    vuln();
    puts("Bye!");
    return 0;
}