AlpacaHack Logo

Challenges

Sign InSign Up

Type

Display

Difficulty

Rows:

DIFF.CHALLENGEAUTHORS

SOLVES

Loading challenges...

Rows:

cowsay jail

Daily AlpacaHackTopic: JailReleased: Oct 13, 2026

52 solves
Misc
Medium4.0

by

tan90909090

tan90909090

The cowsay command is a great command for emphasizing a text!

šŸ¦™ < flag is at /flag.txt.

Beginner Hint: Approach to Solving the Challenge
  • It seems difficult to read /flag.txt using only the cowsay command. In this challenge, the shell=True argument is specified for subprocess.run. Let's consider how we leverage that to execute other commands using characters not included in the deny_list.
  • Even if we can execute other commands, passing arguments is difficult because deny_list contains spaces. Let's try to find a way to represent spaces using characters not included in deny_list.
cowsay-jail.tar.gz

Please sign in to submit the flag.

descriptionsolveswriteups