New command: add command aliases (aka) #2032
                
     Open
            
            
          
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Card
Add a new command to support operator-defined command aliases, similar to
aliasin bash. From the client, users will be able to specify an alias name, the command they are aliasing, and default arguments they want to always pass. Use of the command alias will expand the actual command and default arguments then append the remaining arguments provided to the invoked alias.Details
akaaka create: defines a new alias. Takes the alias name, the command being aliased, and any default args the user wants to use for every invocationaka/aka list: list out any created aliasesaka delete: remove any aliases createdRootAppDir/aka-aliases.json. When creating aliases, the alias will be added to the file. When removing aliases, the alias will be removed from the file.Usage examples for commonly used commands:
aka create bg background. When in the implant menu, now users can simply runbgto background.aka create execw execute -o "C:\Windows\System32\cmd.exe" /c. When in the implant menu, users can run something like thearp -acommand with:execw arp -a