honeypot_db_interface.py 文件源码

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

项目:SuperHoneyPot 作者: TheFixers 项目源码 文件源码
def receive_data(self, json_dump_in):
        # receives data from the plugins
        result = None
        current_data = json.loads(json_dump_in)
        # data may need to be formatted here, prior to sending to database below

        try:
            honeypot_database_interface.database.clientInfo.insert_one(current_data).inserted_id
        except errors.ServerSelectionTimeoutError:
            self.mail_server.send_mail()
        except errors.NetworkTimeout:
            print('Timed out.')
        return
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号