added client type reporting and detection for the servers and clients to

handle different client types differently in the future.
This commit is contained in:
2026-08-17 11:02:19 -05:00
parent 9b29c20c7e
commit 2fefa8daa8
3 changed files with 24 additions and 4 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ pub struct Server {
impl Server {
pub fn connect(&mut self) -> Result<usize, Box<dyn Error>> {
let mut stream = self.tls_connect()?;
stream.write("HELLO".as_bytes())?;
stream.write("HELLO|victim".as_bytes())?;
let mut buf = [0; 8192];
let bytes_read = stream.read(&mut buf)?;
let response = String::from_utf8_lossy(&buf[..bytes_read]);