security - The stack is executable, but should not? -


my issue simple explain !

a vulnerable program able execute shellcode in stack :

(with gdb)    0xbffff6f3:  push   ... => 0xbffff6f8:  jns    ... 

but, stack marked not executable :

(vmmap) ... b7fff000-b8000000 rw-p 0001c000 08:01 525141     /lib/i386-linux-gnu/ld-2.13.so bffdf000-c0000000 rw-p 00000000 00:00 0          [stack] 

how can possible ? don't know look. have idea ?

thank you. jc !


may can useful :

jc@kali:~/init$ uname -a linux kali 3.18.0-kali1-586 #1 debian 3.18.3-1~kali4 (2015-01-22) i686 gnu/linux jc@kali:~/init$ gcc -v using built-in specs. collect_gcc=gcc collect_lto_wrapper=/usr/lib/gcc/i486-linux-gnu/4.7/lto-wrapper target: i486-linux-gnu configured with: ../src/configure -v --with-pkgversion='debian 4.7.2-5' --with-bugurl=file:///usr/share/doc/gcc-4.7/readme.bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --enable-targets=all --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu thread model: posix gcc version 4.7.2 (debian 4.7.2-5)  


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -