mirror of
https://github.com/Noratrieb/cluelessh.git
synced 2026-01-14 16:35:06 +01:00
Start implementing SFTP
This commit is contained in:
parent
a9e2edc572
commit
2ad87d3a14
11 changed files with 549 additions and 32 deletions
|
|
@ -376,7 +376,10 @@ impl SessionState {
|
|||
if let Some(writer) = &mut self.writer {
|
||||
writer.shutdown().await?;
|
||||
}
|
||||
// TODO: somehow this isn't enough to close an SFTP connection....
|
||||
self.writer = None;
|
||||
self.reader = None;
|
||||
self.reader_ext = None;
|
||||
}
|
||||
ChannelUpdateKind::Open(_)
|
||||
| ChannelUpdateKind::Closed
|
||||
|
|
@ -409,7 +412,11 @@ impl SessionState {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
async fn shell(&mut self, shell_command: Option<String>, subsystem: Option<String>) -> Result<()> {
|
||||
async fn shell(
|
||||
&mut self,
|
||||
shell_command: Option<String>,
|
||||
subsystem: Option<String>,
|
||||
) -> Result<()> {
|
||||
let mut fds = self
|
||||
.rpc_client
|
||||
.shell(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue