__init__.py 文件源码

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

项目:binja_dynamics 作者: nccgroup 项目源码 文件源码
def decode(self, encoded):
        """ Takes the input from the text box and decodes it using the parameter
        set in the combobox """
        mode = self._encodings[self._decoder.currentIndex()]
        if mode == 'raw':
            return str(encoded)
        try:
            if mode == 'hex':
                return encoded.decode('hex')
            if mode == 'b64':
                return b64decode(encoded)
            if mode == 'py2':
                return eval(encoded)
        except:
            log_alert("Failed to decode input")
            return None
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号