mirror of
https://github.com/ivre/masscanned.git
synced 2025-10-02 06:38:21 +00:00
Merge pull request #61 from p-l-/fix-ssh-output
Display data using safe byte2str()
This commit is contained in:
commit
64161228ed
1 changed files with 1 additions and 6 deletions
|
@ -176,12 +176,7 @@ pub fn repl<'a>(
|
|||
}
|
||||
let repl_data = b"SSH-2.0-1\r\n".to_vec();
|
||||
debug!("sending SSH answer");
|
||||
warn!(
|
||||
"SSH server banner to {}",
|
||||
std::str::from_utf8(&pstate.ssh_software)
|
||||
.unwrap()
|
||||
.trim_end()
|
||||
);
|
||||
warn!("SSH server banner to {}", byte2str(&pstate.ssh_software));
|
||||
Some(repl_data)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue