← BACK TO CHALLENGES
LINUX

FD

File Descriptor
50
POINTS
DESCRIPTION
Linux represents every open file, socket, or pipe as a file descriptor (fd) - an integer index. The three standard descriptors are: 0=stdin, 1=stdout, 2=stderr. The program reads from a given fd number. If you pass fd=0, it reads from stdin. Figure out what integer to pass so the program reads from stdin, then provide the secret string.
HOW TO CONNECT
SSH into the challenge server: Host: pwnable.kr Port: 2222 User: fd Pass: guest Command: ssh [email protected] -p2222 Once connected: ls -la cat fd.c ./fd <number>
ssh [email protected] -p2222
SUBMIT FLAG
Login or register to submit flags and earn points.
Flags are found on the challenge server after successful exploitation.