Get_vul_from_RSAS_Repo.py 文件源码

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

项目:SecTools 作者: Shad0wpf 项目源码 文件源码
def get_summary(self, host_soup):
        ''' host report -> section 1: host summary, return list '''
        result = []
        condition = (u'IP??', u'????')
        p = host_soup.find('tr', class_='even').parent
        for i in p.contents:
            if type(i) is NavigableString:
                continue
            elif i.th.string in condition:
                result.append(i.td.string)
        if len(result) < 2:
            result.append(None)
        return result
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号