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

/20

No solved challenges yet.

Sign In to view your player stats

Today's Challenge
nozokare
xorshift521
Crypto
Hard
12 solves
Submissions (latest 3)
toomer

SOLVED!

Jun 19, 4:21 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🌱
1,898 solves
Upcoming challenges reveal the , , and in advance.
Prev

Jun 2026

Next
Solved
Unsolved
Upcoming
Mon
Tue
Wed
Thu
Fri
Sat
Sun
1
admin
Half-Year Recap
Misc
Welcome🌱
222 solves
2
minaminaominaminao
Cache Me If You Can
Web
Easy🌱
186 solves
3
minaminaominaminao
vm1
Misc
Medium
92 solves
4
pppp4649pppp4649
Small e
Crypto
Easy🌱
128 solves
5
minaminaominaminao
RPS GAME
Misc
Crypto
Medium
95 solves
6
nozokare
Flag for localhost
Web
Easy🌱
147 solves
7
tan90909090tan90909090
C++ flag checker
Rev
Hard
81 solves
8
shiragishiragi
Guess IP
Misc
Easy🌱
135 solves
9
nozokare
A Piece of DHKE
Crypto
Medium
80 solves
10
shiragishiragi
chmod-swapper
Misc
Medium
80 solves
11
tchentchen
Alpaca Certification
Web
Easy🌱
146 solves
12
rsk0315
Floating Equality
Misc
Medium
89 solves
13
pppp4649pppp4649
Elliptic Equation
Crypto
Hard
57 solves
14
tchentchen
CAuth
Web
Hard
61 solves
15
minaminaominaminao
SITE/2
Web
Easy🌱
111 solves
16
tan90909090tan90909090
Xored PNG
Misc
Medium
84 solves
17
tchentchen
Looks like Alpacahack
Web
Medium
75 solves
18
shiragishiragi
Catrunner 2
Misc
Easy🌱
90 solves
19
minaminaominaminao
Flag Printer 20XX
Misc
Medium
52 solves
20
nozokare
xorshift521
Crypto
Hard
12 solves
21
k0080k0080
Planned topicHeap
Pwn
Hard
22
Planned topicSecret Sharing
Crypto
Easy🌱
23
Planned topicNginx
Web
Medium
24
Coming soon
26
Coming soon
28
Planned topicTBA
Pwn
Hard
29
Coming soon
30
Coming soon
2
Coming soon
3
Coming soon
4
Coming soon
5
Coming soon

Want a harder challenge?

Go to B-SIDE

Writeups

Writeup for Flag Printer 20XX

baumroll1234

ja
Flag Printer 20XX

58 minutes ago

nirvana

Writeup for Catrunner 2

ja

8 hours ago

Daily AlpacaHackに挑戦するつくよみちゃん 06/18/Catrunner 2/shiragi

ja

2026/06/18 15:02

nirvana

Writeup for Looks like Alpacahack

Daily AlpacaHackに挑戦するつくよみちゃん 06/17/Looks like Alpacahack/tchen

tadanobutubutu

Writeup for Xored PNG

ja

2026/06/16 17:17

Rows:

xorshift521

Topic: RNGReleased: Jun 20, 2026

12 solves
Crypto
Hard

by

nozokare

The galactic flag checker determines whether an input string is the correct flag in finite time!

Beginner Hint 1
  • To solve this problem, it seems necessary to calculate the result of applying the next function to state=521 for (521**521)**521 times.
  • However, performing this calculation simply would take far too long, so some ingenuity is required.
  • Is there another way to calculate what the function is computing?
Beginner Hint 2
  • Think of an n-bit integer as an n-dimensional vector over GF(2). (GF(2) = Z/2Z is the field consisting of {0, 1}.)
  • The next function consists of a combination of bit shifts and XOR, forming a linear transformation from GF(2)^n to GF(2)^n.
  • This leads us to consider linear algebra over GF(2), and many properties that hold in linear algebra over the real numbers also hold over GF(2).
Beginner Hint 3
  • The next function is a state transition function of a type of pseudorandom number generator called an LFSR.
  • For example, Xorshift32 is an LFSR with a 32-bit internal state.
  • The period of a typical Xorshift32 is 2^32 - 1, and if you start from a state other than 0 and apply the state transition function, it will cycle through 2^32 - 1 states before returning to the initial state.
  • What is the period of the next function?
Beginner Hint: About SageMath
  • I recommend using SageMath to solve this problem.
  • For a short introduction to SageMath, see this short guide.
  • You can call the next function directly from SageMath by importing chal.py.
  • If you copy the code from chal.py, keep in mind that the XOR operator in SageMath is ^^, not ^.
chal.py

Please sign in to submit the flag.

descriptionsolves