CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/spec/file_fixtures/modules/exploits/single_target_exploit.rb
Views: 11783
1
2
class MetasploitModule < Msf::Exploit::Remote
3
include Exploit::Remote::Tcp
4
5
Rank = ManualRanking
6
7
def initialize(info = {})
8
super(update_info(info,
9
'Name' => 'Exploit With a Single Target',
10
'Description' => %q{ This module is a test bed for automatic targeting when there is only one target. },
11
'Author' => [ 'thelightcosine' ],
12
'License' => MSF_LICENSE,
13
'Privileged' => true,
14
'DefaultOptions' =>
15
{
16
'WfsDelay' => 10,
17
'EXITFUNC' => 'thread'
18
},
19
'Payload' =>
20
{
21
'Space' => 3072,
22
'DisableNops' => true
23
},
24
'Platform' => 'win',
25
'Arch' => [ARCH_X86, ARCH_X64],
26
'Targets' =>
27
[
28
['Windows 2000 Universal',
29
{
30
'Ret' => 0x001f1cb0,
31
'Scratch' => 0x00020408,
32
}
33
], # JMP EDI SVCHOST.EXE
34
],
35
'DisclosureDate' => '1999-01-01'
36
))
37
end
38
39
def exploit
40
print_status("This exploit doesn't actually do anything")
41
end
42
43
44
end
45