Skip to main content
Challenges Full exploit payload
PWN Medium Stack overflow Solves: 5

Full exploit payload

Author: CyberSamSU
Points
35

Now we will implement the concept from challenge 1: instead of just finding the offset, we will construct the full byte sequence (exploit payload) to be sent to the program.

For simplicity, in ALL examples in this section, addresses/registers are assumed to be 4-byte (32-bit), little-endian — in real 64-bit systems they are usually 8-byte, but the concept itself (offset, ROP, canary, GOT...) remains the same.

OffsetContentsSize (bytes)
0buffer34
34saqlangan registr4
38qaytish manzili (return address)4

The vulnerable program has a function named maxfiy_funksiya() and it is located at address 0x0040F2FF — it is normally never called, but if the program calls it, it will output the flag for you.

How the payload is constructed: first offset 'A' (hex: 0x41) bytes (to fill the buffer + saved register), then the target address written in exactly 4 bytes, in little-endian order.

Submit the answer in the format BAYROQ{PWN_PAYLOAD_<to'liq payload, uzluksiz hex satr>} (case-insensitive).

Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −3 pts Log in
Hint 2 −7 pts Log in
Hint 3 −10 pts Log in
To submit a flag, log in.

First solvers

1. anonym 27.10.2026
2. Mirjaxon Qaxxarov 27.10.2026
3. Odam 04.11.2026
4. arcanum 11.11.2026
5. Furqat Turayev 11.11.2026