MCPcopy Create free account
hub / github.com/darkarp/MalwareDevSeries / write

Method write

server/src/models.rs:49–53  ·  view source on GitHub ↗
(&mut self, data: &[u8])

Source from the content-addressed store, hash-verified

47 }
48
49 pub async fn write(&mut self, data: &[u8]) -> std::io::Result<()> {
50 let mut data = data.to_vec();
51 data.append(&mut e!("::OVER::").as_bytes().to_vec());
52 self.socket.write_all(data.as_slice()).await
53 }
54
55 pub async fn write_file(&mut self, data: Vec<u8>, filename: &[u8]) -> std::io::Result<()> {
56 let mut start_seq = e!("::STARTFILE::").as_bytes().to_vec();

Callers 2

interactFunction · 0.80
shell_commandsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected