mirror of
https://github.com/Noratrieb/cluelessh.git
synced 2026-01-14 16:35:06 +01:00
respond to uname
This commit is contained in:
parent
3c1cff927c
commit
7a129eba2e
1 changed files with 7 additions and 1 deletions
|
|
@ -111,7 +111,13 @@ async fn handle_connection(
|
|||
match req.kind {
|
||||
ChannelRequestKind::PtyReq { .. } => {}
|
||||
ChannelRequestKind::Shell => {}
|
||||
ChannelRequestKind::Exec { .. } => {}
|
||||
ChannelRequestKind::Exec { command } => {
|
||||
if command == b"uname -s -v -n -r -m" {
|
||||
state.do_operation(update.number.construct_op(ChannelOperationKind::Data(
|
||||
b"Linux nixos 6.6.35 #1-NixOS SMP PREEMPT_DYNAMIC Fri Jun 21 12:38:50 UTC 2024 x86_64\r\n".to_vec()
|
||||
)));
|
||||
}
|
||||
}
|
||||
ChannelRequestKind::Env { .. } => {}
|
||||
};
|
||||
if req.want_reply {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue