EH-Net
May 24, 2013, 06:03:18 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Questions about the "Smashing the Stack for Fun And Profit" sample code  (Read 2580 times)
0 Members and 1 Guest are viewing this topic.
metalhead
Newbie
*
Offline Offline

Posts: 1


View Profile
« on: February 15, 2012, 11:21:15 AM »

Hi guys,

I'm newbie in the security field and I've recently started to read the famous paper of Aleph One "Smashing the Stack for Fun And Profit".
I have some problems running the sample code that Aleph1 provides though.

I have managed to run all the examples until the exploit2.c which gives me a sigsegv.

The problem seems to be in this piece of code:

ptr = buff;
addr_ptr = (long *) ptr;
for (i = 0; i < bsize; i+=4)
  *(addr_ptr++) = addr;   

Does anyone know what might be responsible for the segmentation fault?

I have compiled it without the stack protector (-fno-stack-protector) and I have disabled aslr.

Thanks in advance Smiley
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.156 seconds with 20 queries.