AlpacaHack Logo

Tag: File Descriptor

Sign InSign Up

File Descriptor

No description is available for this tag.

Updated Apr 27, 2026
File Descriptor Challenges
permission denied 3
minaminao

minaminao

Misc
101 solves
silence

blackade

Misc
100 solves
readme 2022
ptr-yudai

ptr-yudai

Misc
14 solves

permission denied 3

Daily AlpacaHackTopic: File PermissionReleased: May 7, 2026

101 solves
Misc

by

minaminao

minaminao

cat: flag.txt: No such file or directory

Beginner Hint 1 (AI-translated)
  • When you connect with nc, you'll see that a shell is launched.
  • Reading chal.sh, you can see that flag.txt is created with permission 400 before the shell starts.
  • Then all files in the current directory are deleted by rm *.
  • After that, a shell is launched via sh.
  • Of course, running cat flag.txt results in No such file or directory, so you can't read the flag directly.
  • So, how can you read the flag?
Beginner Hint 2 (AI-translated)
  • flag.txt is completely gone, but it wasn't the only file that contained the flag.
  • Think about chal.sh, which also contained the flag.
permission-denied-3.tar.gz
descriptionsolveswriteups