PDA

Просмотр полной версии : Can you?


PxL
11.03.2005, 11:54
Ok I have a question it`s a kind of a quest:
Can ypu overflow the buffer and call the function DontCallMe() in this sample code?

#include <stdio.h>

typedef char sbuf[10];

void getstring(sbuf is)
{
gets(is);
puts("You entered: ");
puts(is);
}

void DontCallMe()
{
puts ("Nice!");
}

void main ()
{
sbuf is = "Hi!";

puts("Enter something:");
getstring(is);
}

SladerNon
11.03.2005, 13:34
Что-то нифига я не понял, что ты хочешь....

KEZ
11.03.2005, 15:44
Блин почитай про переполнение буфера.
Тут все просто...

PxL
11.03.2005, 15:58
0x080483f8 there`s the addres which you need to overrite the return...please english if it`s possible

Ekstazi
11.03.2005, 16:13
to PxL
I'm sorry, but can you send me this compiled programm to mail kiber00@mail.ru and I try to help you...

PxL
11.03.2005, 16:53
Hi, I gave the challange cause I tought you gues will like it. I know the answer ;)

e.g. I`ll send the compiled code to you ..

PxL
14.03.2005, 03:55
Is there somebody else except me here who knows what realy is Buffer overflow?

Ekstazi
14.03.2005, 16:25
I'm sorry, but I wait you too long time... =(((, so I can do it, but i don't have a executable program.. =((

PxL
16.03.2005, 14:36
Why you don`t just compile it?

KEZ
16.03.2005, 23:40
Плохо по англиски говорю...

Вообщем
Chech the buffer size (overflow -range)) of varible.
Enter the adress of function DontCallMe...

Блин я статью пишу...