shell_use_ctrl.py 文件源码

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

项目:packetweaver 作者: ANSSI-FR 项目源码 文件源码
def do_cmd(self, s=''):
        """
        Generate a command line to call the
        ability with the current parameters from
        a standard system's script.

        Your can specify the 'oneline' argument to have
        a one-line version to run the ability directly
        from a system's shell.
        """
        self._view.delimiter("Cmd to replay the module")
        options, command = self._generate_command()
        if s == "oneline":
            sep = ' '
            self._view.info('{}{};{}'.format(sep.join(options), sep, command))
        else:
            sep = '\n'
            self._view.info('{}{}{}'.format(
                sep.join(['export {}'.format(opt) for opt in options]),
                sep, command
            ))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号