sshmitm.plugins.scp.rewrite_command module
SCPRewriteCommand - A plugin for ssh-mitm that rewrites SCP commands.
This plugin is used to modify SCP commands, either by appending a string to the existing command or replacing the command with a different string. It can also be used to modify rsync and git commands. The new command is specified using the –scp-append-string and –scp-replace-string options, respectively.
- class sshmitm.plugins.scp.rewrite_command.SCPRewriteCommand(session)
Bases:
SCPForwarder
Rewrite SCP Commands (can also used for rsync and git)
- Parameters:
session (
Session
)
- classmethod parser_arguments()
- Return type:
None
- rewrite_scp_command(command)
- Parameters:
command (
str
)- Return type:
str