commons
index
commons.py

This file implement basic functions for Shell and ReverseShell.

 
Modules
       
logging

 
Functions
       
async execute_command(commande: str) -> str
This method execute command and return output.
async launch_asynchronous_commands(commandes: str) -> List[str]
This method parse commands and launch asynchronous execution.
Return a list of commands output.
parse_args(process_name: str) -> Tuple[str, int]
This function parse arguments.
Return a tuple with interface and port.
async special_command(commande: str) -> str
This method execute "cd" or "chdir" command and "exit" command.
Return str or None.

 
Data
        __all__ = ['special_command', 'execute_command', 'launch_asynchronous_commands', 'parse_args']