Server IP : 195.201.23.43 / Your IP : 3.22.42.249 Web Server : Apache System : Linux webserver2.vercom.be 5.4.0-192-generic #212-Ubuntu SMP Fri Jul 5 09:47:39 UTC 2024 x86_64 User : kdecoratie ( 1041) PHP Version : 7.1.33-63+ubuntu20.04.1+deb.sury.org+1 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/usermin/gnupg/ |
Upload File : |
#!/usr/bin/perl # verify.cgi # Verify the signature on a file require './gnupg-lib.pl'; &ReadParseMime(); # Get file data if ($in{'mode'} == 0) { $in{'upload'} || &error($text{'verify_eupload'}); $data = $in{'upload'}; } elsif ($in{'mode'} == 1) { $in{'local'} || &error($text{'verify_eupload'}); -r $in{'local'} || &error($text{'verify_elocal'}); $data = &read_file_contents($in{'local'}); } elsif ($in{'mode'} == 3) { $data = $in{'text'}; $data =~ s/\r//g; } # Get signature data if ($in{'sigmode'} == 0) { $in{'sigupload'} || &error($text{'verify_esigupload'}); $sigdata = $in{'sigupload'}; } elsif ($in{'sigmode'} == 1) { $in{'siglocal'} || &error($text{'verify_esigupload'}); -r $in{'siglocal'} || &error($text{'verify_esiglocal'}); $sigdata = &read_file_contents($in{'siglocal'}); } elsif ($in{'mode'} == 3) { $sigdata = $in{'sigtext'}; $sigdata =~ s/\r//g; } else { $sigdata = undef; } ($code, $message) = &verify_data($data, $sigdata); &ui_print_header(undef, $text{'verify_title'}, ""); $red = "<font color=#ff0000>"; $end = "</font>"; if ($code == 0 || $code == 1) { print &text('verify_good', &html_escape($message)),"<p>\n"; if ($code == 1) { print "<b>$red$text{'verify_warning'}$end</b><p>\n"; } } elsif ($code == 2) { print "$red",&text('verify_bad', &html_escape($message)),"$end<p>\n"; } elsif ($code == 3) { print "$red",&text('verify_noid', &html_escape($message)),"$end<p>\n"; } else { print "$red",&text('verify_failed', "<pre>$message</pre>"),"$end<p>\n"; } &ui_print_footer("", $text{'index_return'});Private