generic_dll_hijacking.py 文件源码

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

项目:uac-a-mola 作者: ElevenPaths 项目源码 文件源码
def clean_path(self, subpath, binary):
        print "[-] Deleting the path and cleaning up\n"
        for pid in psutil.pids():
            if binary in psutil.Process(pid).name():
                try:
                    print "Killing the process..."
                    subprocess.check_call(["taskkill", "/t", "/f", "/pid", str(pid)])
                except subprocess.CalledProcessError:
                    self.print_ko("[!!] The process %s can't be killed" % binary)
        subprocess.check_call(
            ["powershell", "-C", "rm", "-r", "-Force", subpath])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号