You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(2) you need to be root,and run "sysctl -w kernel.randomize_va_space=0" to shut the random space down
7
+
(3) export MYSH=/bin/sh to tell the getenv the vaiable value(it's a way to pass paramters)
8
+
(4) chmod 4777 retlib (you need to be root)
9
+
(5) run getenv.c first to get the "/bin/bash" address,and use the value to alter exploit.c and run it.run the retlib at last.you'll see the "$" indicator for root.
0 commit comments