Share
## https://sploitus.com/exploit?id=7E477059-9135-507D-BA5A-D0C1313076A3
# PIE Exploit Challenge

Exploiting a PIE (Position Independent Executable) binary by calculating offsets to redirect execution to the `win()` function.

## Files

- `vuln.c` - Vulnerable C program with function pointer vulnerability
- `exploit.py` - Python exploit script that bruteforces offsets
- `flag.txt` - Test flag file for local testing

## Usage

Compile the vulnerable program:
```bash
gcc vuln.c -o vuln
```

Run exploit locally:
```bash
./exploit.py
```

Run exploit against remote server:
```bash
./exploit.py rescued-float.picoctf.net 61803
```

## How it works

The exploit calculates the offset between `main()` and `win()` functions and redirects execution by providing a calculated address.
# picoCTF_2025_pie_time
# picoCTF_2025_pie_time