Login Register






Tutorial Source Code Tutorial - Simple Reverse Shell in C filter_list
Author
Message
RE: Source Code Tutorial - Simple Reverse Shell in C #5
I want to take note of two issues:
  1. errors are not sent over the connection
  2. you can't change your directory
My solutions are:
  1. append `2>&1` to the end of the command
  2. prepend a command to change the directory for the second command
For example, if the user previously changed the directory to `mydir` and the current command was something like `mkdir test`, then the command executed would be:
Code:
cd mydir & mkdir test 2>&1
explanation: `2>&1` should pass the stderr output into stdout

I will try to implement my solutions soon.

Reply





Messages In This Thread
RE: Source Code Tutorial - Simple Reverse Shell in C - by m0dem - 10-10-2015, 04:05 AM