mirror of
https://github.com/ivre/masscanned.git
synced 2025-10-02 06:38:21 +00:00
commit
af659e272b
2 changed files with 10 additions and 1 deletions
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
|
@ -31,6 +31,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
|
|
||||||
|
- name: Run cargo fmt
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: fmt
|
||||||
|
args: -- --check
|
||||||
|
|
||||||
- name: Run cargo build
|
- name: Run cargo build
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -31,6 +31,9 @@ pub fn repl<'a>(
|
||||||
debug!("receiving SSH data");
|
debug!("receiving SSH data");
|
||||||
let repl_data = b"SSH-2.0-1\r\n".to_vec();
|
let repl_data = b"SSH-2.0-1\r\n".to_vec();
|
||||||
debug!("sending SSH answer");
|
debug!("sending SSH answer");
|
||||||
warn!("SSH server banner to {}", str::from_utf8(&data).unwrap().trim_end());
|
warn!(
|
||||||
|
"SSH server banner to {}",
|
||||||
|
str::from_utf8(&data).unwrap().trim_end()
|
||||||
|
);
|
||||||
return Some(repl_data);
|
return Some(repl_data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue