!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache. PHP/5.6.40-67+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux hosting1.erectacloud.it 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC
2024 x86_64
 

uid=5229(web473) gid=5117(client172) groups=5117(client172),5002(sshusers) 

Safe-mode: OFF (not secure)

/var/www/clients/client172/web473/web/OLD_WP/wp-content/plugins/https-redirection/   drwxr-xr-x
Free 181.25 GB of 490.84 GB (36.93%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     https-utillity-functions.php (1.15 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

function httpsrdrctn_force_https_embeds$content ){
    
$files_to_check = array( 'jpg''jpeg''gif''png''js''css' );

    if ( 
strposhome_url(), 'https' ) !== false ) {
        
$http_domain str_replace'https''http'home_url() );
    } else {
        
$http_domain home_url();
    }
    
    
$matches = array();
    
$pattern '/' str_replace'/''\/'quotemeta$http_domain ) ) . '\/[^\"\']*\.[' implode"|"$files_to_check ) . ']+/';

    
preg_match_all$pattern$content$matches );

    if( ! empty( 
$matches ) ){
        foreach( 
$matches[0] as $match ){
            
$match_https str_replace'http''https'$match );
            
$content str_replace$match$match_https$content );
        }
    }

    return 
$content;
}

/*** 
 * Test Code
 */
/*
echo httpsrdrctn_force_https_embeds( '<img src="http://test.com/image.jpg" />
    <a href="http://test.com/image.jpeg"></a>
    "http://test.com/image.gif"
    <img src="http://test.com/image.png" />
    <link rel="javascript" type="text/javascript" href="http://test.com/somescript.js" />
    <link rel="stylesheet" type="text/css" href="http://test.com/somestyles.css" />
    http://test.com/somescript.bmp' );
*/

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0138 ]--