MCPcopy Create free account

hub / github.com/Nero22k/teamsc2 / functions

Functions35 in github.com/Nero22k/teamsc2

↓ 5 callersMethod_get_headers
(self, content_type=None)
TeamsExternalC2.py:227
↓ 5 callersMethodensure_token
Ensure the token is valid before making a request
TeamsExternalC2.py:71
↓ 5 callersMethodsend_message
(self, message_content)
TeamsExternalC2.py:111
↓ 3 callersMethodensure_auth
Ensures the auth token is still valid
teamsc2/src/teamsc2.rs:61
↓ 2 callersMethodauthenticate
(&self)
teamsc2/src/auth.rs:48
↓ 2 callersMethodget_latest_message
(&self)
teamsc2/src/teamsclient.rs:91
↓ 2 callersMethodget_user_access_token
(self)
TeamsExternalC2.py:42
↓ 2 callersMethodhandle_message_chunks
Handle large messages
teamsc2/src/teamsc2.rs:71
↓ 2 callersMethodsend_message
(&self, content: &str)
teamsc2/src/teamsclient.rs:67
↓ 2 callersMethodsend_response
(self, response_data)
TeamsExternalC2.py:131
↓ 1 callersMethod_get_chat_data
(self)
TeamsExternalC2.py:236
↓ 1 callersMethodcreate_chat
(self)
TeamsExternalC2.py:76
↓ 1 callersMethoddelete_message
(self, message_id, timeout=2)
TeamsExternalC2.py:100
↓ 1 callersMethodget_new_messages
(self)
TeamsExternalC2.py:88
↓ 1 callersMethodget_user_id
(self)
TeamsExternalC2.py:152
↓ 1 callersMethodis_token_valid
(&self)
teamsc2/src/teamsclient.rs:42
↓ 1 callersMethodis_valid
(&self)
teamsc2/src/auth.rs:33
↓ 1 callersFunctionmain
The chat created is between server-c2 and connector-c2. The server-c2 is responsible for handling the incoming commands from brute ratel and
TeamsExternalC2.py:253
↓ 1 callersMethodprocess_new_messages
(self)
TeamsExternalC2.py:172
↓ 1 callersMethodprocess_received_message
(&mut self, message: &str)
teamsc2/src/teamsc2.rs:103
↓ 1 callersMethodprocess_server_response
(self, server_response)
TeamsExternalC2.py:162
↓ 1 callersMethodread
(&self)
teamsc2/src/named_pipes.rs:36
↓ 1 callersMethodrun
(self)
TeamsExternalC2.py:212
↓ 1 callersMethodrun
Main loop for the TeamsC2 instance It runs indefinitely, handling communication between the named pipe and Teams
teamsc2/src/teamsc2.rs:140
↓ 1 callersMethodtoken_is_valid
Check if the current token is still valid
TeamsExternalC2.py:65
↓ 1 callersMethodupdate_token
(&mut self, token: AuthToken)
teamsc2/src/teamsclient.rs:46
↓ 1 callersMethodwrite
(&self, message: &str)
teamsc2/src/named_pipes.rs:56
Method__init__
(self, config)
TeamsExternalC2.py:16
Methodconnect
(name: &str)
teamsc2/src/named_pipes.rs:13
Methoddrop
(&mut self)
teamsc2/src/named_pipes.rs:78
Methodget_chat_id
(client: &Client, token: &str)
teamsc2/src/teamsclient.rs:52
Functionmain
()
teamsc2/src/main.rs:8
Methodnew
(token: AuthToken)
teamsc2/src/teamsclient.rs:35
Methodnew
(response: AuthResponse)
teamsc2/src/auth.rs:25
Methodnew
Create a new TeamsC2 instance # Arguments `pipe_name` - The name of the named pipe to connect to `config` - The configuration for the TeamsC2 instanc
teamsc2/src/teamsc2.rs:42