lundi 22 août 2016, 16:04 #3
App - Script python input()
app-script-ch6@challenge02 : $ ltrace ./setuid-wrapper
__libc_start_main(0x80483e4, 1, 0xbffff8a4, 0x8048400, 0x8048470
system("/challenge/app-script/ch6/ch6.py"Please enter password : 123232
Traceback (most recent call last) :
File "/challenge/app-script/ch6/ch6.py", line 16, in
with open(".passwd") as f :
IOError : [Errno 13] Permission denied : ’.passwd’
— - SIGCHLD (Child exited) ---
<... system resumed> ) = 256
+++ exited (status 0) +++
mercredi 22 février 2017, 11:42 #4
App - Script python input()
Linux ignores the setuid bit when running a process under strace or similar programs.