File tree Expand file tree Collapse file tree 11 files changed +193
-8
lines changed
lib/rex/post/meterpreter/extensions/extapi
payloads/singles/windows/x64 Expand file tree Collapse file tree 11 files changed +193
-8
lines changed Original file line number Diff line number Diff line change 10
10
metasm (~> 1.0.2 )
11
11
metasploit-concern (= 1.0.0 )
12
12
metasploit-model (= 1.0.0 )
13
- metasploit-payloads (= 1.0.13 )
13
+ metasploit-payloads (= 1.0.14 )
14
14
msgpack
15
15
nokogiri
16
16
packetfu (= 1.1.11 )
125
125
activemodel (>= 4.0.9 , < 4.1.0 )
126
126
activesupport (>= 4.0.9 , < 4.1.0 )
127
127
railties (>= 4.0.9 , < 4.1.0 )
128
- metasploit-payloads (1.0.13 )
128
+ metasploit-payloads (1.0.14 )
129
129
metasploit_data_models (1.2.5 )
130
130
activerecord (>= 4.0.9 , < 4.1.0 )
131
131
activesupport (>= 4.0.9 , < 4.1.0 )
Original file line number Diff line number Diff line change 6
6
require 'rex/post/meterpreter/extensions/extapi/clipboard/clipboard'
7
7
require 'rex/post/meterpreter/extensions/extapi/adsi/adsi'
8
8
require 'rex/post/meterpreter/extensions/extapi/ntds/ntds'
9
+ require 'rex/post/meterpreter/extensions/extapi/pageant/pageant'
9
10
require 'rex/post/meterpreter/extensions/extapi/wmi/wmi'
10
11
11
12
module Rex
@@ -36,6 +37,7 @@ def initialize(client)
36
37
'clipboard' => Rex ::Post ::Meterpreter ::Extensions ::Extapi ::Clipboard ::Clipboard . new ( client ) ,
37
38
'adsi' => Rex ::Post ::Meterpreter ::Extensions ::Extapi ::Adsi ::Adsi . new ( client ) ,
38
39
'ntds' => Rex ::Post ::Meterpreter ::Extensions ::Extapi ::Ntds ::Ntds . new ( client ) ,
40
+ 'pageant' => Rex ::Post ::Meterpreter ::Extensions ::Extapi ::Pageant ::Pageant . new ( client ) ,
39
41
'wmi' => Rex ::Post ::Meterpreter ::Extensions ::Extapi ::Wmi ::Wmi . new ( client )
40
42
} )
41
43
} ,
Original file line number Diff line number Diff line change
1
+ # -*- coding: binary -*-
2
+
3
+ module Rex
4
+ module Post
5
+ module Meterpreter
6
+ module Extensions
7
+ module Extapi
8
+ module Pageant
9
+ ###
10
+ # PageantJacker extension - Hijack and interact with Pageant
11
+ #
12
+ # Stuart Morgan <[email protected] >
13
+ #
14
+ ###
15
+ class Pageant
16
+ def initialize ( client )
17
+ @client = client
18
+ end
19
+
20
+ def forward ( blob , size )
21
+ return nil unless size > 0 && blob . size > 0
22
+
23
+ packet_request = Packet . create_request ( 'extapi_pageant_send_query' )
24
+ packet_request . add_tlv ( TLV_TYPE_EXTENSION_PAGEANT_SIZE_IN , size )
25
+ packet_request . add_tlv ( TLV_TYPE_EXTENSION_PAGEANT_BLOB_IN , blob )
26
+
27
+ response = client . send_request ( packet_request )
28
+ return nil unless response
29
+
30
+ {
31
+ success : response . get_tlv_value ( TLV_TYPE_EXTENSION_PAGEANT_STATUS ) ,
32
+ blob : response . get_tlv_value ( TLV_TYPE_EXTENSION_PAGEANT_RETURNEDBLOB ) ,
33
+ error : response . get_tlv_value ( TLV_TYPE_EXTENSION_PAGEANT_ERRORMESSAGE )
34
+ }
35
+ end
36
+
37
+ attr_accessor :client
38
+ end
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
Original file line number Diff line number Diff line change @@ -75,6 +75,12 @@ module Extapi
75
75
TLV_TYPE_NTDS_TEST = TLV_META_TYPE_STRING | ( TLV_TYPE_EXTENSION_EXTAPI + TLV_EXTENSIONS + 80 )
76
76
TLV_TYPE_NTDS_PATH = TLV_META_TYPE_STRING | ( TLV_TYPE_EXTENSION_EXTAPI + TLV_EXTENSIONS + 81 )
77
77
78
+ TLV_TYPE_EXTENSION_PAGEANT_STATUS = TLV_META_TYPE_BOOL | ( TLV_TYPE_EXTENSION_EXTAPI + TLV_EXTENSIONS + 85 )
79
+ TLV_TYPE_EXTENSION_PAGEANT_ERRORMESSAGE = TLV_META_TYPE_UINT | ( TLV_TYPE_EXTENSION_EXTAPI + TLV_EXTENSIONS + 86 )
80
+ TLV_TYPE_EXTENSION_PAGEANT_RETURNEDBLOB = TLV_META_TYPE_RAW | ( TLV_TYPE_EXTENSION_EXTAPI + TLV_EXTENSIONS + 87 )
81
+ TLV_TYPE_EXTENSION_PAGEANT_SIZE_IN = TLV_META_TYPE_UINT | ( TLV_TYPE_EXTENSION_EXTAPI + TLV_EXTENSIONS + 88 )
82
+ TLV_TYPE_EXTENSION_PAGEANT_BLOB_IN = TLV_META_TYPE_RAW | ( TLV_TYPE_EXTENSION_EXTAPI + TLV_EXTENSIONS + 89 )
83
+
78
84
TLV_TYPE_EXT_WMI_DOMAIN = TLV_META_TYPE_STRING | ( TLV_TYPE_EXTENSION_EXTAPI + TLV_EXTENSIONS + 90 )
79
85
TLV_TYPE_EXT_WMI_QUERY = TLV_META_TYPE_STRING | ( TLV_TYPE_EXTENSION_EXTAPI + TLV_EXTENSIONS + 91 )
80
86
TLV_TYPE_EXT_WMI_FIELD = TLV_META_TYPE_STRING | ( TLV_TYPE_EXTENSION_EXTAPI + TLV_EXTENSIONS + 92 )
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ Gem::Specification.new do |spec|
63
63
# are needed when there's no database
64
64
spec . add_runtime_dependency 'metasploit-model' , '1.0.0'
65
65
# Needed for Meterpreter
66
- spec . add_runtime_dependency 'metasploit-payloads' , '1.0.13 '
66
+ spec . add_runtime_dependency 'metasploit-payloads' , '1.0.14 '
67
67
# Needed by msfgui and other rpc components
68
68
spec . add_runtime_dependency 'msgpack'
69
69
# Needed by anemone crawler
Original file line number Diff line number Diff line change 13
13
14
14
module Metasploit4
15
15
16
- CachedSize = 1105970
16
+ CachedSize = 1106482
17
17
18
18
include Msf ::Payload ::TransportConfig
19
19
include Msf ::Payload ::Windows
Original file line number Diff line number Diff line change 13
13
14
14
module Metasploit4
15
15
16
- CachedSize = 1107014
16
+ CachedSize = 1107526
17
17
18
18
include Msf ::Payload ::TransportConfig
19
19
include Msf ::Payload ::Windows
Original file line number Diff line number Diff line change 13
13
14
14
module Metasploit4
15
15
16
- CachedSize = 1107014
16
+ CachedSize = 1107526
17
17
18
18
include Msf ::Payload ::TransportConfig
19
19
include Msf ::Payload ::Windows
Original file line number Diff line number Diff line change 13
13
14
14
module Metasploit4
15
15
16
- CachedSize = 1105970
16
+ CachedSize = 1106482
17
17
18
18
include Msf ::Payload ::TransportConfig
19
19
include Msf ::Payload ::Windows
Original file line number Diff line number Diff line change 13
13
14
14
module Metasploit4
15
15
16
- CachedSize = 1105970
16
+ CachedSize = 1106482
17
17
18
18
include Msf ::Payload ::TransportConfig
19
19
include Msf ::Payload ::Windows
You can’t perform that action at this time.
0 commit comments