-
Notifications
You must be signed in to change notification settings - Fork 85
Modules: Copilot Interactive Chat
lanasalameh1 edited this page Jul 30, 2024
·
2 revisions
Interactive chat with Copilot M365 through the terminal.
- Run the following command to start a new conversation with Copilot:
powerpwn copilot chat --user {user} --password {password} --scenario {scenario} --verbose {verbosity level}
The access token is cached in
tokens.json
local cache file if acquired successfully.
- Run the
copilot chat
command with following arguments to use the cached access token:
powerpwn copilot chat --user {user} --cached-token --scenario {scenario} --verbose {verbosity level}
-
user: The email of the connected user. Required parameter.
-
password: The password of the connected account. Optional parameter.
-
scenario: Copilot application to connect to. 'teamshub' for Teams and 'officeweb' Business Chat web applications. Required parameter.
-
verbose: Verbosity flag for writing logs to a local file with name 'session_{session_id}.log'. Options are 'off', 'mid' and 'full'. Default is
'off'
- cached-token: If presents in the command arguments, it tries to use the cached access token if exists, otherwise it falls back to user/password authentication if password is provided.
-
exit: Exists the chat.
-
list available plugins: Prints the list of available plugins to the terminal.
-
select plugins idx1,idx2: Adds the selected plugins to the conversation. idx1,idx2 are plugins indices as they appeared in the list command.
-
unselect plugins idx1,idx2 : Removes the selected plugins from the conversation. idx1,idx2 are plugins indices as they appeared in the list command.
Note: these are case-sensitive