Commit 1a0fa189 authored by Heiko Reese's avatar Heiko Reese
Browse files

parent 4ceb67ee
...@@ -23,21 +23,21 @@ changes to the local filesystems. This only works if the compromized machine is ...@@ -23,21 +23,21 @@ changes to the local filesystems. This only works if the compromized machine is
still able to connect to your server. still able to connect to your server.
Open a listener on your server: Open a listener on your server:
```bash ```sh
nc -l 6789 >> logfilename.txt nc -l 6789 >> logfilename.txt
``` ```
To send the standard output of a command, simply add this To send the standard output of a command, simply add this
```bash ```sh
| nc -w 2 name_or_ip_of_server 6789 | nc -w 2 name_or_ip_of_server 6789
``` ```
Encrypt all data in transition to prevent eavesdropping. Simply insert Encrypt all data in transition to prevent eavesdropping. Simply insert
[`openssl`](https://openssl.org/) into the toolchain: [`openssl`](https://openssl.org/) into the toolchain:
```bash ```sh
nc -l 6789 | openssl enc -aes128 -d -k supersecretpw >> log.txt nc -l 6789 | openssl enc -aes128 -d -k supersecretpw >> log.txt
``` ```
```bash ```sh
| openssl enc -aes128 -e -k supersecretpw | nc -w 2 name_or_ip_of_server 6789 | openssl enc -aes128 -e -k supersecretpw | nc -w 2 name_or_ip_of_server 6789
``` ```
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment