AlpacaHack Logo
Sign InSign Up

Daily AlpacaHack

A daily CTF challenge with a fun new puzzle every day

What is Daily AlpacaHack?

We publish one simple, beginner-friendly or educational CTF challenge every day!

Join Anytime

Solve within 24 hours of release to appear on the leaderboard.

Not a Competition

Discussion with friends or AI is welcome (account sharing is prohibited).

Solution Sharing Rules

Sharing solutions is allowed only after 24 hours have passed since release.

Solve stats

0

/161

No solved challenges yet.

Sign In to view your player stats

Today's Challenge
rsk0315
Bounds Checking
Pwn
Hard
28 solves
Submissions (latest 3)
juito

SOLVED!

May 10, 2:19 AM

a01sa01to

SOLVED!

May 10, 2:16 AM

Leaderboard

Try the first challenge

Is this your first CTF? Let's begin by tackling the first challenge released on Daily AlpacaHack.

View challenge
admin
AlpacaHack 2100
Misc
Welcome
1,761 solves
Upcoming challenges reveal the , , and in advance.
Prev

May 2026

Next
Solved
Unsolved
Upcoming
Mon
Tue
Wed
Thu
Fri
Sat
Sun
27
shiragishiragi
Unrevealed TXT
Misc
Easy
123 solves
28
seriotonserioton
unheard
Misc
Medium
73 solves
29
minaminaominaminao
permission denied
Misc
Hard
76 solves
30
minaminaominaminao
permission denied 2
Misc
Medium
75 solves
1
admin
Alpaca++
Misc
Welcome
181 solves
2
tchentchen
Alpaca Rangers 2
Web
Easy
158 solves
3
pppp4649pppp4649
Small N
Crypto
Easy
120 solves
4
hiikunzhiikunz
secret-table-2
Web
Medium
119 solves
5
seriotonserioton
do the math
Misc
Medium
100 solves
6
trimscashtrimscash
func-array
Pwn
Easy
111 solves
7
minaminaominaminao
permission denied 3
Misc
Medium
101 solves
8
baumroll1234
Vending Machine
Misc
Easy
136 solves
9
hiikunzhiikunz
reused n
Crypto
Medium
94 solves
10
rsk0315
Bounds Checking
Pwn
Hard
28 solves
11
seriotonserioton
Planned topicLFSR
Rev
Easy
12
Planned topicDocker
Misc
Medium
13
Coming soon
14
Coming soon
15
Coming soon
16
Planned topicProcedure Linkage Table
Pwn
Hard
17
Coming soon
18
Coming soon
19
Coming soon
20
Coming soon
21
Coming soon
22
Coming soon
23
Coming soon
24
Planned topicCUDA
Rev
Hard
25
Coming soon
26
Coming soon
27
Coming soon
28
Coming soon
29
Coming soon
30
Coming soon
31
Planned topicStack
Pwn
Hard

Want a harder challenge?

Go to B-SIDE

Writeups

tadanobutubutu

Writeup for reused n

tadanobutubutu

ja
reused n

9 hours ago

kakur41

Writeup for Daily AlpacaHack 5/3-5/9

ja
reused n

+6

10 hours ago

Writeup for Vending Machine

author
ja

13 hours ago

tadanobutubutu

Writeup for Vending Machine

Daily AlpacaHackに挑戦するつくよみちゃん 05/08 misc/Vending Machine/baumroll1234

Daily AlpacaHackに挑戦するつくよみちゃん 05/07 misc/Permission Denied 3/minaminao

Rows:

permission denied 2

Topic: File PermissionReleased: Apr 30, 2026

75 solves
Misc
Medium

by

minaminao

minaminao

cat: flag.txt: Permission denied

NOTE: This challenge is related to permission denied.

Beginner Hint 1 (AI-translated)
  • If you connect with nc, you will notice that a shell starts.
  • If you read chal.sh, you can see that flag.txt is created with permission 400 before the shell starts.
  • This command is executed by the root user.
  • So 400 means that only the root user can read the file.
  • After that, runuser -u alpaca -- sh starts a shell as the alpaca user.
  • However, if you run cat flag.txt, you still get Permission denied, so you cannot read the flag.
  • How can you read the flag, then?
Beginner Hint 2 (AI-translated)
  • This is a meta-level hint, but why is the permission of flag.txt being set inside chal.sh in the first place?
  • The permission of chal.sh is specified in the Dockerfile.
  • In the same way, it should also be possible to set the permission of flag.txt in the Dockerfile.
  • Think about what behavioral difference is created between setting permissions in the Dockerfile and setting them later in chal.sh.
Beginner Hint 3 (AI-translated)
  • In the previous challenge, permission denied, the nobody user was used, but this time the alpaca user is used.
  • Also, the shell runs in the /home/alpaca directory.
  • What does this make possible?

[Announcement] Thank you for playing Daily AlpacaHack! We'd appreciate it if you could fill out the survey

permission-denied-2.tar.gz
descriptionsolveswriteups