⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
webmin
/
webmin
/
View File Name :
change_ca.cgi
#!/usr/bin/perl # change_ca.cgi # Update the CA cert manually require './webmin-lib.pl'; &ReadParseMime(); &lock_file($ENV{'MINISERV_CONFIG'}); &get_miniserv_config(\%miniserv); if (!$miniserv{'ca'}) { &setup_ca(\%miniserv); } &lock_file($miniserv{'ca'}); &open_tempfile(CA, ">$miniserv{'ca'}"); $in{'cert'} =~ s/\r//g; $in{'cert'} =~ s/\n*$/\n/; &print_tempfile(CA, $in{'cert'}); &close_tempfile(CA); chmod(0700, $miniserv{'ca'}); &unlock_file($miniserv{'ca'}); unlink("$config_directory/acl/crl.pem"); &put_miniserv_config(\%miniserv); &unlock_file($ENV{'MINISERV_CONFIG'}); &redirect(""); sleep(1); &show_restart_page(); &webmin_log("changeca", undef, undef, \%in);