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:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user