Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SaladinoBelisario/RAT_Rust
/ functions
Functions
88 in github.com/SaladinoBelisario/RAT_Rust
⨍
Functions
88
◇
Types & classes
24
↓ 13 callers
Method
into
(self)
rat/server/src/entities.rs:21
↓ 12 callers
Method
into
(self)
rat/server/src/api/error.rs:11
↓ 4 callers
Function
get_agent_directory
()
rat/agent/src/config.rs:9
↓ 3 callers
Function
copy_executable
()
rat/agent/src/install/mod.rs:5
↓ 3 callers
Method
find_agent_by_id
( &self, db: &Pool<Postgres>, agent_id: Uuid, )
rat/server/src/repository/agents.rs:62
↓ 3 callers
Function
json_body
( )
rat/server/src/api/mod.rs:11
↓ 3 callers
Method
ok
(data: T)
rat/common/src/api.rs:16
↓ 3 callers
Function
run
(api_client: &Client, agent_id: &str, command: &str, conf: Config)
rat/client/src/cli/exec.rs:20
↓ 2 callers
Function
connect
(database_url: &str)
rat/server/src/db.rs:5
↓ 2 callers
Function
consume_stdio
(channel: &mut Channel)
rat/agent/src/spread.rs:140
↓ 2 callers
Method
find_job_by_id
(&self, db: &Pool<Postgres>, job_id: Uuid)
rat/server/src/repository/jobs.rs:54
↓ 2 callers
Function
get_agent_install_target
()
rat/agent/src/config.rs:20
↓ 2 callers
Function
install
()
rat/agent/src/install.rs:5
↓ 1 callers
Function
bruteforce
(ssh: &Session)
rat/agent/src/spread.rs:99
↓ 1 callers
Method
create_agent
(&self, db: &Pool<Postgres>, agent: &Agent)
rat/server/src/repository/agents.rs:8
↓ 1 callers
Method
create_job
(&self, input: api::CreateJob)
rat/client/src/api/create_job.rs:8
↓ 1 callers
Method
create_job
(&self, input: CreateJob)
rat/server/src/service/jobs.rs:78
↓ 1 callers
Function
decrypt_and_verify_job
( conf: &config::Config, job: AgentJob, )
rat/agent/src/run.rs:113
↓ 1 callers
Function
decrypt_and_verify_job_output
( job: api::Job, job_ephemeral_private_key: [u8; crypto::X25519_PRIVATE_KEY_SIZE], agent_identity_
rat/client/src/cli/exec.rs:174
↓ 1 callers
Method
delete_job
(&self, db: &Pool<Postgres>, job_id: Uuid)
rat/server/src/repository/jobs.rs:94
↓ 1 callers
Function
encrypt_and_sign_job
( conf: &config::Config, command: String, args: Vec<String>, agent_id: Uuid, agent_public_
rat/client/src/cli/exec.rs:75
↓ 1 callers
Function
encrypt_and_sign_job_result
( conf: &config::Config, job_id: Uuid, output: String, job_result_ephemeral_public_key: [u8; c
rat/agent/src/run.rs:164
↓ 1 callers
Function
env_not_found
(var: &str)
rat/server/src/config.rs:44
↓ 1 callers
Function
execute_command
(command: String, args: Vec<String>)
rat/agent/src/run.rs:91
↓ 1 callers
Function
execute_remote_agent
(ssh: &Session, remote_path: &str)
rat/agent/src/spread.rs:91
↓ 1 callers
Function
extract_bundle
(install_dir: PathBuf, bundle: PathBuf)
rat/agent/src/install.rs:34
↓ 1 callers
Method
find_agent
(&self, agent_id: Uuid)
rat/server/src/service/agents.rs:17
↓ 1 callers
Method
find_all_agents
(&self, db: &Pool<Postgres>)
rat/server/src/repository/agents.rs:50
↓ 1 callers
Method
find_job_for_agent
( &self, db: &Pool<Postgres>, agent_id: Uuid, )
rat/server/src/repository/jobs.rs:71
↓ 1 callers
Method
get_agent
(&self, agent_id: Uuid)
rat/client/src/api/get_agent.rs:7
↓ 1 callers
Method
get_agent_job
(&self, agent_id: Uuid)
rat/server/src/service/jobs.rs:25
↓ 1 callers
Method
get_job_result
(&self, job_id: uuid::Uuid)
rat/client/src/api/get_job_result.rs:6
↓ 1 callers
Method
get_job_result
(&self, job_id: Uuid)
rat/server/src/service/jobs.rs:13
↓ 1 callers
Function
get_saved_agent_config
()
rat/agent/src/init.rs:59
↓ 1 callers
Function
identify_platform
(ssh: &Session)
rat/agent/src/spread.rs:112
↓ 1 callers
Function
install_crontab
(executable: &PathBuf)
rat/agent/src/install/linux.rs:28
↓ 1 callers
Function
install_launchd
(executable: &PathBuf)
rat/agent/src/install/macos.rs:21
↓ 1 callers
Function
install_registry_user_run
(executable: &PathBuf)
rat/agent/src/install/windows.rs:21
↓ 1 callers
Function
install_systemd
(executable: &PathBuf)
rat/agent/src/install/linux.rs:57
↓ 1 callers
Method
list_agents
(&self)
rat/client/src/api/list_agents.rs:6
↓ 1 callers
Method
list_agents
(&self)
rat/server/src/service/agents.rs:13
↓ 1 callers
Function
migrate
(db: &Pool<Postgres>)
rat/server/src/db.rs:17
↓ 1 callers
Function
register
()
rat/agent/src/init.rs:23
↓ 1 callers
Method
register_agent
( &self, input: api::RegisterAgent, )
rat/server/src/service/agents.rs:21
↓ 1 callers
Function
routes
( app_state: Arc<AppState>, )
rat/server/src/api/routes/mod.rs:13
↓ 1 callers
Function
save_agent_config
(conf: &config::Config)
rat/agent/src/init.rs:48
↓ 1 callers
Function
spread
(install_dir: PathBuf, host_port: &str)
rat/agent/src/spread.rs:30
↓ 1 callers
Function
syscall1
(syscall: usize, arg1: usize)
shellcode/hello_world/src/main.rs:43
↓ 1 callers
Function
syscall3
(syscall: usize, arg1: usize, arg2: usize, arg3: usize)
shellcode/hello_world/src/main.rs:58
↓ 1 callers
Method
update_agent
(&self, db: &Pool<Postgres>, agent: &Agent)
rat/server/src/repository/agents.rs:31
↓ 1 callers
Method
update_job
(&self, db: &Pool<Postgres>, job: &Job)
rat/server/src/repository/jobs.rs:31
↓ 1 callers
Method
update_job_result
(&self, input: UpdateJobResult)
rat/server/src/service/jobs.rs:39
↓ 1 callers
Function
upload_agent
(ssh: &Session, agent_path: &PathBuf)
rat/agent/src/spread.rs:70
↓ 1 callers
Function
with_state
( state: Arc<AppState>, )
rat/server/src/api/state.rs:16
Function
_start
()
shellcode/hello_world/src/main.rs:30
Function
create_job
( state: Arc<AppState>, input: api::CreateJob, )
rat/server/src/api/routes/jobs.rs:8
Method
create_job
(&self, db: &Pool<Postgres>, job: &Job)
rat/server/src/repository/jobs.rs:8
Method
err
(err: Error)
rat/common/src/api.rs:23
Method
fmt
(&self, f: &mut fmt::Formatter)
rat/agent/src/spread.rs:19
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
rat/agent/src/error.rs:13
Method
from
(err: uuid::Error)
rat/client/src/error.rs:12
Method
from
(err: sqlx::migrate::MigrateError)
rat/server/src/error.rs:16
Method
from
(err: std::io::Error)
rat/agent/src/error.rs:21
Function
get_agent
( state: Arc<AppState>, agent_id: Uuid, )
rat/server/src/api/routes/agents.rs:17
Function
get_agent_job
( state: Arc<AppState>, agent_id: Uuid, )
rat/server/src/api/routes/jobs.rs:56
Function
get_agents
(state: Arc<AppState>)
rat/server/src/api/routes/agents.rs:7
Function
get_job_result
( state: Arc<AppState>, job_id: Uuid, )
rat/server/src/api/routes/jobs.rs:31
Function
handle_error
(rejection: Rejection)
rat/server/src/api/error.rs:39
Function
index
()
rat/server/src/api/routes/index.rs:5
Function
init_and_install
()
rat/agent/src/init.rs:7
Function
install
()
rat/agent/src/install/linux.rs:6
Function
install
()
rat/agent/src/install/windows.rs:6
Function
install
()
rat/agent/src/install/macos.rs:6
Method
load
()
rat/client/src/config.rs:13
Method
load
()
rat/server/src/config.rs:17
Function
main
()
shellcode/executor/src/main.rs:11
Function
main
()
rat/client/src/main.rs:12
Function
main
()
rat/server/src/main.rs:17
Function
main
()
rat/agent/src/main.rs:12
Method
new
(server_url: String)
rat/client/src/api/mod.rs:16
Method
new
(db: Pool<Postgres>, config: config::Config)
rat/server/src/service/mod.rs:19
Method
new
(service: Service)
rat/server/src/api/state.rs:11
Function
panic
(_: &core::panic::PanicInfo)
shellcode/hello_world/src/main.rs:7
Function
post_agents
( state: Arc<AppState>, input: api::RegisterAgent, )
rat/server/src/api/routes/agents.rs:29
Function
post_job_result
( state: Arc<AppState>, input: api::UpdateJobResult, )
rat/server/src/api/routes/jobs.rs:20
Function
run
(api_client: &api::Client)
rat/client/src/cli/agents.rs:5
Function
run
()
rat/client/src/cli/identity.rs:1
Function
run
(api_client: &ureq::Agent, conf: config::Config)
rat/agent/src/run.rs:19