Thisislegal.com
:[ Offline ]:

welcome, please log-in:




 Remember Me  ?
About: Remember Me
Ticking this box will make the site remember you for 24 hours. However, each time you visit the site this time is renewed, so if you are a regular visitor you will stay logged in.


Register An Account
Forgot Password?

:[ Forums ]:
Latest Post In:
Challenge Help
Topic:
Challenge 5
By:
Tiffyish
:[ Like ]:
:[ Alexa ]:
 
:[ Forums ]:
 Thisislegal ForumsHelp → C program | buffer overflow

Topic: C program | buffer overflow
  Author:  Message:
therock_wall
Offline
Forum Rank: kiddie
rankrank
avatar
Posts: 48
Thanks: 0
Standard User

thank
This is a simple C program but i am unable to decode it .

<------------ C PROGRAM STARTS HERE ------------>
#include <stdio.h>
#include <string.h>
void echo(char* input) {
char buf[16];
strcpy(buf, input);
printf("%s\n", buf);
}
int main(int argc, char **argv)
{
echo(argv[1]); // call the function to print the first 16 characters
return 0; // denote that the program has finished executing successfully
}
<------------ C PROGRAM ENDS HERE ------------->


the output of the above code is => segmentation fault:11
i want to know whether the above code is a victim of buffer overflow and if yes what is the exploit code and a basic explanation. thanx in advance
  #1   Back To Top

Locked.



Online (last 15 mins): metallover

DareYourMind   WeChall.net   Thenetsend.info   Powered by CloudFlare   Download Firefox   Opera Web Browser
Valid XHTML 1.0 Transitional
Home | Challenges | Forums | Contact | About (Disclaimer)
Copyright © 2007-12 Thisislegal.com, All Rights Reserved.


:[ ShoutBox ]:
Guest - Login to post comments


shoutbox bot:
no more proxy
iS33stars:
It helps if you read the tutorials before you attempt a challenge.
howboutdemboyzz:
wheres the proxy they offer?
mejizz420:
uh... i got lucky with the first challenge... dont really get the second challenge..
Nutu2000:
man, what are you doing here if you can't look at the source code of a web page?
adapt760:
whts the pass word for the 1st challenege
zurenarrh:
Nobody really uses the forums :/
Pages: 1, 2...343
Goto:
 
0.332 sec