Skip to content

buyalsky/remote-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

remote-shell

This repository contains a remote shell for learning purposes. Remote shell has two modes: client and server. Basically the client authenticates sending the specified username and password with server. After that the client takes commands from command line and sends those commands to the server through a tcp connection. Server executes corresponding commands and sends the result back to client.

Server is able to parse pipes as well. To implement this functionality I've followed this article.

Usage

If you provide host name then the application acts as a client.

For server

cargo run -- -u [username] -P [password] -p [port]

For client

cargo run -- -u [username] -P [password] -h [host name] -p [port]

Run with executable

Compile using cargo:

cargo build --release

Finally, run the executable located at target/release directory:

./remote-shell -u [username] -P [password] -p [port]

About

Yet another remote shell implementation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages