我尝试了缓冲区溢出,并返回到https://blog.techorganic.com/2015/04/21/64-bit-linux-stack-smashing-tutorial-part-2/此站点的libc。
但我收到错误
__libc_system (line=0x7ffff7b9a58b "/bin/sh") at ../sysdeps/posix/system.c:179
179 ../sysdeps/posix/system.c: No such file or directory.
我想知道我失败的原因。
网站之间的结果差别不大。
gdb-peda$ p system
$1 = {<text variable, no debug info>} 0x7ffff7a5ac40 <system>
以上是网站的一个
(gdb) p system
$1 = {<text variable, no debug info>} 0x7ffff7a53380 <__libc_system>
但我的结果是这样的。这种差异会导致失败吗?
我正在使用Ubuntu 16.04进行练习