⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
webmin
/
fsdump
/
Edit File: restore.cgi
#!/usr/bin/perl # restore.cgi # Restore a backup dump require './fsdump-lib.pl'; &ReadParse(); &error_setup($text{'restore_err'}); $access{'restore'} || &error($text{'restore_ecannot'}); $cmd = &parse_restore($in{'fs'}); &ui_print_unbuffered_header(undef, $text{'restore_title'}, ""); &create_wrappers(); print "<b>",&text('restore_now', "<tt>$cmd</tt>"),"</b> <p>\n"; print "<pre>"; $rv = &restore_backup($in{'fs'}, $cmd); print "</pre>\n"; if ($rv) { if ($rv =~ /^\d+$/) { # Bad exit status print "<b>$text{'restore_failed2'}</b><p>\n"; } else { # Some error message print "<b>",&text('restore_failed', $rv),"</b><p>\n"; } } elsif (!$in{'test'}) { print "<b>$text{'restore_complete'}</b><p>\n"; } &webmin_log("restore", undef, $in{'mode'} == 0 ? $in{'file'} : $in{'huser'} ? "$in{'huser'}@$in{'host'}:$in{'hfile'}" : "$in{'huser'}:$in{'hfile'}"); &ui_print_footer("", $text{'index_return'});
Simpan