Skip to content

Instantly share code, notes, and snippets.

use std::error::Error;
use std::io::{Read, Write};
use std::net::TcpStream;
const TARGET: &str = "127.0.0.1:2222";
const IDENTIFICATION: &[u8] = b"SSH-2.0-rusty-0.1\r\n";
const COMMAND :&[u8] = br#"file:write_file("/test.txt", <<"TEST">>)."#;
const BUF_SIZE: usize = 256;