Mommy! What is a file descriptor in Linux?
This problem is about the file descriptor in Linux.
As given, connect the ssh fd@pwnable.kr -p2222
when using the vim, we can see the source about fd.
0x1234 is equal to 4660. So, we need to give 0x1234 ( 4660 in demical ) as argv[1]
then, Let see if(!strcmp("LETMEWIN\n", buf).
at that point, the return value must be 1.
so, we also input the "LETMEWIN\n"
as a result, we can find the flag.
"mommy! I think I know what a file descriptor is!!"
No comments:
Post a Comment