예제 #1
0
    def help(self):
        """
        Print this help menu 

        Usage: help
        """
        msg = main_help()

        msg += f"""
Database commands
=================

        Interact with the neo4j database.

List of available commands :\n"""

        for x in self._cmd_list:
            msg += f'\t{x}\n'

        msg += f"""
For more information about any commands hit : 
        <command name> -h
        """

        print(msg)
예제 #2
0
    def help(self):
        """
        Print this help menu 

        Usage: help
        """        
        # Print the global commands
        # and the context-aware commands
        msg = main_help()

        msg += f"""
Modelling commands
==================

        Map the network of IoT devices detected by sniffing.

List of available commands :\n"""

        for x in self._cmd_list:
            msg += f'\t{x}\n'

        msg += f"""
For more information about any commands hit : 
        <command name> -h
        """
        
        print(msg)
예제 #3
0
    def help(self):
        """
        Print this help menu 

        Usage: help
        """        
        # Print the global commands
        # and the context-aware commands
        msg = main_help()

        msg += f"""
Sniffing commands
=================

        Used defined sniffers to intercept IoT networks.

List of available commands :\n"""

        for x in self._cmd_list:
            msg += f'\t{x}\n'

        msg += f"""
For more information about any commands hit : 
        <command name> -h
        """
        
        print(msg)
예제 #4
0
    def __call__(self):
        if self.options['module']:
            self.run_options()

        while True:
            result = self.prompt_session.prompt()
            if result == 'help' and self.current_context.name == 'main':
                print(main_help())
                continue

            if result == 'exit':
                break

            self.parse_result(result)