Skip to content

Commit f4e4a5d

Browse files
committed
Fix struts_default_action_mapper payload request delay
MS-1609
1 parent a6ba386 commit f4e4a5d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/exploits/multi/http/struts_default_action_mapper.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def initialize(info = {})
7474
Opt::RPORT(8080),
7575
OptString.new('TARGETURI', [true, 'Action URI', '/struts2-blank/example/HelloWorld.action']),
7676
OptInt.new('HTTP_DELAY', [true, 'Time that the HTTP Server will wait for the payload request', 60]),
77+
OptInt.new('PAYLOAD_REQUEST_DELAY', [true, 'Time to wait for the payload request', 5]),
7778
# It isn't OptPath becuase it's a *remote* path
7879
OptString.new("WritableDir", [ true, "A directory where we can write files (only on Linux targets)", "/tmp" ])
7980
], self.class)
@@ -359,6 +360,8 @@ def wait_payload
359360
fail_with(Failure::Unknown, "#{rhost}:#{rport} - Target didn't request request the ELF payload -- Maybe it cant connect back to us?")
360361
end
361362
end
363+
364+
sleep(datastore['PAYLOAD_REQUEST_DELAY'])
362365
end
363366

364367
def build_hta

0 commit comments

Comments
 (0)