Join the Stack Overflow Community
Stack Overflow is a community of 6.4 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up

I tried buffer overflow with return to libc along https://blog.techorganic.com/2015/04/21/64-bit-linux-stack-smashing-tutorial-part-2/ this site.

But I get error

__libc_system (line=0x7ffff7b9a58b "/bin/sh") at ../sysdeps/posix/system.c:179
179 ../sysdeps/posix/system.c: No such file or directory.

I want to know why I failed.

I have little difference result between site.

gdb-peda$ p system
$1 = {<text variable, no debug info>} 0x7ffff7a5ac40 <system>

Above is site's one

(gdb) p system
$1 = {<text variable, no debug info>} 0x7ffff7a53380 <__libc_system>

But my result is like this. Does this difference make failure?

I'm using Ubuntu 16.04 for practice

share|improve this question
    
    
I can't understand why that link is related with my question – user4929293 Oct 26 at 2:56
    
... system() function, is different from a system call – invictus1306 Oct 26 at 7:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.