Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 50 guests and 1 member online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Programmingarrow Questions about the "Smashing the Stack for Fun And Profit" sample code
EH-Net
May 25, 2013, 03:05:38 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 2583 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
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.06 seconds with 23 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Advertisement

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.