This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: buffer overflow on cygwin vs solaris.

Song Ken Vern-E11804 wrote:

>    for (i=0; i<=4028; i++)
>        buffer[i]='A';

Wow.  That's some horrible code.  Hasn't this person heard of memset()?

> On Solaris, it does.
> How do I get the core dump equivalent on cygwin installation?

That's because you're trying to exploit a bug in Solaris.  Cygwin is not
Solaris.  It does not have this vulnerability.  This is a good thing. 
Ideally Cygwin (and any other library for that matter) would have zero
exploitable buffer overflows.  And even if it did, you most certainly
can't expect to use shellcode intended for Solaris under Cygwin.  They
aren't even remotely similar under the hood, so don't expect a single
thing on that page to work.  You'll need to use win32 shellcode

If you want to play around with buffer overflows, I suggest that you
create your own buffer and overflow it.  And find a better guide.  There
are plenty of win32-oriented guides to overflowing buffers and executing
your code.


Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]