RSS

Contoh Script Buffer Overflow

07 Nov

here is an axample for buffer overflow on C

#include <stdio.h>

#include <string.h>

#include <stdlib.h>

int main (int argc, char *argv[])

{

char buffer[5];

if (argc<2)

{

printf(“teks belum dimasukkan…\n”);

exit(0);

}

strcpy(buffer, argv[1]);

printf(“teks = %s \n”, buffer);

return 0;

}

 

 

 
Tinggalkan komentar

Ditulis oleh pada November 7, 2011 in Uncategorized

 

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

 
%d blogger menyukai ini: