AlpacaHack Logo
Sign InSign Up
Daily AlpacaHack

A CTF challenge series with fun puzzles to enjoy every day

What is Daily AlpacaHack?

We regularly publish simple, beginner-friendly or educational CTF challenges!

Join Anytime

Solve each challenge within its time window 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 the challenge period has ended.

Solve stats

0

/6

No solved challenges yet.

Sign In to view your player stats

Today's Challenge
tchentchen
Not so Pyf**k
Misc
Medium
54 solves
Submissions (latest 3)
chara0x

SOLVED!

Aug 9, 11:53 PM

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🌱
2,084 solves
Upcoming challenges reveal the , , and in advance.
Prev

Aug 2026

Next
Solved
Unsolved
Upcoming
Mon
Tue
Wed
Thu
Fri
Sat
Sun
27
tchentchen
RFC100008
Web
Easy🌱
120 solves
28
2501
One More Approval
Crypto
Medium
59 solves
29
2501
zen.zip
Misc
Medium
63 solves
30
2501
Anyrunner
Misc
Medium
56 solves
31
tchentchen
Small Image Uploader 2
Web
Medium
56 solves
1
admin
Día Nacional de la Alpaca
Misc
Welcome🌱
165 solves
2
2501
Password, Please
Misc
Easy🌱
133 solves
3-4
arkark
Long Long Flag Printer 2026
Misc
Medium
81 solves
5
pppp4649pppp4649
Happy Birthday
Crypto
Easy🌱
84 solves
6-8
hiikunzhiikunz
AESAESAESAESAESAES
Crypto
Hard
49 solves
9-10
tchentchen
Not so Pyf**k
Misc
Medium
54 solves
 
tchentchen
Not so Pyf**k
Misc
Medium
54 solves
11
Coming soon
12
Coming soon
13
Coming soon
14
Coming soon
15
Coming soon
16
Coming soon
17
Coming soon
18
Coming soon
19
Coming soon
20
Coming soon
21
Coming soon
22
Coming soon
23
Coming soon
24
Coming soon
25
Coming soon
26
Coming soon
27
Coming soon
28
Coming soon
29
Coming soon
30
Coming soon
31
Coming soon
1
Coming soon
2
Coming soon
3
Coming soon
4
Coming soon
5
Coming soon
6
Coming soon

Want a harder challenge?

Go to B-SIDE

Writeups

power

Writeup for simpleoverflow

power

ja
simpleoverflow

11 hours ago

power

Writeup for a fact of CTF

ja

11 hours ago

kirehash

Writeup for Cache Me If You Can 2

michikusamichiya

Writeup for Leaked Flag Checker (XORing the Entire Binary!?)

Rows:

permission denied 2

Topic: File PermissionReleased: Apr 30, 2026

85 solves
Misc
Medium5.5

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

Please sign in to submit the flag.

descriptionsolveswriteups