repl.py 文件源码

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

项目:objection 作者: sensepost 项目源码 文件源码
def get_prompt_tokens(self, _) -> list:
        """
            Return prompt tokens to use in the cli app.

            If none were set during the init of this class, it
            is assumed that the connection failed.

            :param _:
            :return:
        """

        if self.prompt_tokens:
            return self.prompt_tokens

        return [
            (Token.Applicationname, 'unknown application'),
            (Token.On, ''),
            (Token.Devicetype, ''),
            (Token.Version, ' '),
            (Token.Connection, '[' + state_connection.get_comms_type_string() + '] # '),
        ]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号