text: from CommandBase import *
  import json
  
  
  class CdArguments(TaskArguments):
  
      def __init__(self, command_line):
          super().__init__(command_line)
          self.args = {}
  
      async def parse_arguments(self):
          if len(self.command_line) == 0:
              raise Exception("Require path to change directory to.")
  
  
  class CdCommand(CommandBase):
      cmd = "cd"
      needs_admin = False
      help_cmd = "cd [path]"
      description = "Change directory to [path]. Path relative identifiers such as ../ are accepted."
      version = 1
      is_exit = False
      is_file_browse = False
      is_process_list = False
      is_download_file = False
      is_upload_file = False
      is_remove_file = False
      author = "@djhohnstein"
      argument_class = CdArguments
      attackmapping = []
  
      async def create_tasking(self, task: MythicTask) -> MythicTask:
          return task
  
      async def process_response(self, response: AgentResponse):
          pass