Ja :: 23 maj 2009 o 13:03:05
Napiszę Ci prosty program i przepełnisz buforek xD
Ja :: 23 maj 2009 o 13:03:56
#include <stdio.h>
int main(int argc, char *argv[]){
int Admin = 0;
char bufor[20];
strcpy(bufor, argv[1]);
printf("Wartosc: %d\n", Admin);
}
Ja :: 23 maj 2009 o 13:04:19 / S 23 maj 2009 o 13:03:00
Przepełnij bufor tak żeby program pokazał
"Wartosc: 666"
Jeżeli nie umiesz, po prostu się przyznaj. Możesz umieć. xD
12067165 :: 23 maj 2009 o 13:04:23
moja stronka
www.hakerpiro.dbv.pl ja tam mam tez jakieś programy hakerskie ale nie mam czasu robićtej str
12067165 :: 23 maj 2009 o 13:05:57
dawno sie tym nie zajmowałem musze se przypomnieć
12067165 :: 23 maj 2009 o 13:06:17
chwila
12067165 :: 23 maj 2009 o 13:14:17
holera nie moge sobie przypomnieć /* remove example: remove myfile.txt */
#include
int main ()
{
if( remove( "myfile.txt" ) != 0 )
perror( "Error deleting file" );
else
puts( "File successfully deleted" );
return 0;
}
Ja :: 23 maj 2009 o 13:14:51
To jest program usuwający plik o nazwie myfile.txt xD
Ja :: 23 maj 2009 o 13:15:24 / S 23 maj 2009 o 13:14:18
Nie ma zbyt wiele wspólnego z przepełnieniem bufora. xD
12067165 :: 23 maj 2009 o 13:15:36
no raczej
12067165 :: 23 maj 2009 o 13:16:49
/* setbuf example */
#include
int main ()
{
char buffer[BUFSIZ];
FILE *pFile1, *pFile2;
pFile1=fopen ("myfile.txt","w");
pFile2=fopen ("myfile2.txt","a");
setbuf ( pFile1 , buffer );
fputs ("This is sent to a buffered stream",pFile1);
fflush (pFile1);
setbuf ( pFile2 , NULL );
fputs ("This is sent to an unbuffered stream",pFile2);
fclose (pFile1);
fclose (pFile2);
return 0;
}[/b]