!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/home/scripts/pba/phc-read-only/test/framework/records/   drwxrwxr-x
Free 83.23 GB of 96.73 GB (86.05%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     diff.php (1.63 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

    
include ("common.php");

    function 
run_main ()
    {
        
$old_rev = (int)$_GET["old_rev"];
        
$new_rev = (int)$_GET["new_rev"];
        
$unsafe_filename $_GET["filename"];
        
$sort_first $_GET["sort"] or false;

        
# Sanitize the revisions: 0 < old_rev < new_rev < 5000
        
if (!($old_rev)) bad ();
        if (!(
$old_rev $new_rev)) bad ();
        if (!(
$new_rev 5000)) bad ();

        
# Sanitize the inputs: the file should be within the results/$rev subdirectory
        
$relative_filename "results/$new_rev/$unsafe_filename";
        
$real_filename realpath ($relative_filename);

        
# We find the dir by checking the fullname of this script, and stripping off the script name at the end
        
$real_scriptname realpath (__FILE__);
        
$scriptname "test/framework/records/diff.php";
        
$script_dir str_replace ($scriptname""$real_scriptname);

        
# Check that the script is within these bounds
        
if (strpos ($real_filename$script_dir) !== 0# FALSE is a fail, but 0 isnt
            
bad ();

        
$old_filename realpath ("results/$old_rev/$unsafe_filename");
        
$new_filename realpath ("results/$new_rev/$unsafe_filename");

        if (!
file_exists ($old_filename))
            die (
"No old file");

        if (!
file_exists ($new_filename))
            die (
"No new file");

        
$old file_get_contents ($old_filename);
        if (
$sort_first)
        {
            
$split split ("\n"$old);
            
sort ($split);
            
$old join ("\n"$split);
        }

        
$new file_get_contents ($new_filename);
        if (
$sort_first)
        {
            
$split split ("\n"$new);
            
sort ($split);
            
$new join ("\n"$split);
        }


        echo 
"<pre>" .diff ($old$new) ."</pre>\n";

    }

    function 
bad ()
    {
        die (
"An error has been made with input variables");
    }


?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.0042 ]--