AlpacaHack Logo

Tag: Win Function

Sign InSign Up

Win Function

Related:
#Buffer Overflow
#GOT Overwrite
#Out-Of-Bounds Write
#C++
#Return Address Overwrite
#Function Pointer
#Out-Of-Bounds Read
#Stack Buffer Overflow
#Stack Canary

This tag is used for challenges that contain a win function. (automatically translated from Japanese)

Updated Apr 24, 2026
Win Function Challenges
echo
ptr-yudai

ptr-yudai

Pwn
363 solves
Integer Writer
mora

mora

Pwn
342 solves
inbound
ptr-yudai

ptr-yudai

Pwn
209 solves
Basic Buffer Overflow
hiikunz

hiikunz

Pwn
193 solves
before-write
ptr-yudai

ptr-yudai

Pwn
163 solves
catcpy
ptr-yudai

ptr-yudai

Pwn
148 solves
Short Writer
k0080

k0080

Pwn
129 solves
kappa overflow

colza

Pwn
127 solves
Disappeared
k0080

k0080

Pwn
120 solves
func-array
trimscash

trimscash

Pwn
111 solves
Noob programmer
k0080

k0080

Pwn
108 solves
vuln4vuln
k0080

k0080

Pwn
100 solves
Erased Secret

rsk0315

Misc
88 solves
write
ptr-yudai

ptr-yudai

Pwn
88 solves
vtable4b
ptr-yudai

ptr-yudai

Pwn
62 solves
memset note
mora

mora

Pwn
45 solves
deck
ptr-yudai

ptr-yudai

Pwn
43 solves
read-write
ptr-yudai

ptr-yudai

Pwn
41 solves
bofww
ptr-yudai

ptr-yudai

Pwn
38 solves
cache crasher
keymoon

keymoon

Pwn
33 solves
Takahashi
ptr-yudai

ptr-yudai

Pwn
29 solves

Integer Writer

Daily AlpacaHackTopic: Out-of-Bounds WriteReleased: Dec 5, 2025

342 solves
Pwn

by

mora

mora

If the return address gets overwritten by accident, you could even spawn a shell... but this program is totally safe, right?

Beginner Hint (AI-translated)
  • This challenge is in the Pwn category, specifically Pwnable (Binary Exploitation).
  • Its difficulty is Hard. It is harder than the previous Easy and Medium challenges, so especially if Daily AlpacaHack is your first exposure to CTF, solving it entirely on your own will likely be difficult.
  • If you get stuck, we recommend making good use of AI as needed to find a starting point for the solution.
  • Pwn can seem difficult for beginners, but it is an exciting category where you can enjoy low-level computer behavior, so please give it a try.
  • Even if you cannot solve it, check other players' solutions, called writeups, after the challenge ends and review them.
  • 24 hours after the challenge is released, a writeup tab will be added to the list of tabs below.
  • In this challenge's attachment, you are given the C source code main.c and the compiled binary chal.
  • This program accepts pos and val inputs from the player.
  • The goal is to execute the win function in the remote environment and spawn a shell.
  • If you send appropriate pos and val values, you can call the win function, so find such values.
  • Connect to the remote environment with the nc command.
  • Once you get a shell, read flag.txt and obtain the flag.
integer-writer.tar.gz
descriptionsolveswriteupsupdates