Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Nero22k/teamsc2
/ functions
Functions
35 in github.com/Nero22k/teamsc2
⨍
Functions
35
◇
Types & classes
12
↓ 5 callers
Method
_get_headers
(self, content_type=None)
TeamsExternalC2.py:227
↓ 5 callers
Method
ensure_token
Ensure the token is valid before making a request
TeamsExternalC2.py:71
↓ 5 callers
Method
send_message
(self, message_content)
TeamsExternalC2.py:111
↓ 3 callers
Method
ensure_auth
Ensures the auth token is still valid
teamsc2/src/teamsc2.rs:61
↓ 2 callers
Method
authenticate
(&self)
teamsc2/src/auth.rs:48
↓ 2 callers
Method
get_latest_message
(&self)
teamsc2/src/teamsclient.rs:91
↓ 2 callers
Method
get_user_access_token
(self)
TeamsExternalC2.py:42
↓ 2 callers
Method
handle_message_chunks
Handle large messages
teamsc2/src/teamsc2.rs:71
↓ 2 callers
Method
send_message
(&self, content: &str)
teamsc2/src/teamsclient.rs:67
↓ 2 callers
Method
send_response
(self, response_data)
TeamsExternalC2.py:131
↓ 1 callers
Method
_get_chat_data
(self)
TeamsExternalC2.py:236
↓ 1 callers
Method
create_chat
(self)
TeamsExternalC2.py:76
↓ 1 callers
Method
delete_message
(self, message_id, timeout=2)
TeamsExternalC2.py:100
↓ 1 callers
Method
get_new_messages
(self)
TeamsExternalC2.py:88
↓ 1 callers
Method
get_user_id
(self)
TeamsExternalC2.py:152
↓ 1 callers
Method
is_token_valid
(&self)
teamsc2/src/teamsclient.rs:42
↓ 1 callers
Method
is_valid
(&self)
teamsc2/src/auth.rs:33
↓ 1 callers
Function
main
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 callers
Method
process_new_messages
(self)
TeamsExternalC2.py:172
↓ 1 callers
Method
process_received_message
(&mut self, message: &str)
teamsc2/src/teamsc2.rs:103
↓ 1 callers
Method
process_server_response
(self, server_response)
TeamsExternalC2.py:162
↓ 1 callers
Method
read
(&self)
teamsc2/src/named_pipes.rs:36
↓ 1 callers
Method
run
(self)
TeamsExternalC2.py:212
↓ 1 callers
Method
run
Main loop for the TeamsC2 instance It runs indefinitely, handling communication between the named pipe and Teams
teamsc2/src/teamsc2.rs:140
↓ 1 callers
Method
token_is_valid
Check if the current token is still valid
TeamsExternalC2.py:65
↓ 1 callers
Method
update_token
(&mut self, token: AuthToken)
teamsc2/src/teamsclient.rs:46
↓ 1 callers
Method
write
(&self, message: &str)
teamsc2/src/named_pipes.rs:56
Method
__init__
(self, config)
TeamsExternalC2.py:16
Method
connect
(name: &str)
teamsc2/src/named_pipes.rs:13
Method
drop
(&mut self)
teamsc2/src/named_pipes.rs:78
Method
get_chat_id
(client: &Client, token: &str)
teamsc2/src/teamsclient.rs:52
Function
main
()
teamsc2/src/main.rs:8
Method
new
(token: AuthToken)
teamsc2/src/teamsclient.rs:35
Method
new
(response: AuthResponse)
teamsc2/src/auth.rs:25
Method
new
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