Theme Layout

Boxed or Wide or Framed

Wide

Theme Translation

Display Featured Slider

Featured Slider Styles

Display Grid Slider

yes

Grid Slider Styles

Display Trending Posts

Display Author Bio

Display Instagram Footer

off

Dark or Light Style

Light
Powered by Blogger.

Wednesday, December 7, 2016

[Pwnable.kr/Toddler's Bottle] fd ( Solved 16.12.07 )



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!!"












QuickEdit
Unknown
0 Comments
Share This Post :

You Might Also Like

No comments:

Post a Comment

Follow @SunriseSunsetBlog