cuckoo.py 文件源码

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

项目:telnet-iot-honeypot 作者: Phype 项目源码 文件源码
def cuckoo_check_if_dup(self, sha256):
        """
        Check if file already was analyzed by cuckoo
        """
        try:
            print("Looking for tasks for: {}".format(sha256))
            res = requests.get(urljoin(self.url_base, "/files/view/sha256/{}".format(sha256)),
                verify=False,
                auth=HTTPBasicAuth(self.api_user,self.api_passwd),
                timeout=60)
            if res and res.ok and res.status_code == 200:
                print("Sample found in Sandbox, with ID: {}".format(res.json().get("sample", {}).get("id", 0)))
                return True
            else:
                return False
        except Exception as e:
            print(e)

        return False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号