..you how to make a multi bridge between THC_DO, THC_SS and THC_II and keep track of the output in realtime using iframes. So what exactly are we going to do? First of all if you don't..
Mister LG can create upload forms and test targets on file upload vulnerabilities
<?php
/* Authentication checker */
if(!defined('IN_SCRIPT')){
exit;
}
if(!defined("PASS_WO_LOGIN")){
// make sure we have any sort of authentication setup
if(!@$_CONTEXT['pass_access']){
if(!@$_CONTEXT['ip_access']){
// as long as we don't have any type of authentication, redirect to setup
header("Location: setup.php");
exit;
}
}
// block unauthorized ip access
if(isset($_CONTEXT['ip_access']) && $_CONTEXT['ip_access']){
if(in_array($_SERVER['REMOTE_ADDR'],$_CONTEXT['ip_allowed'])){
$bLoggedTHC = true;
}
}
// block unauthorized access without a password specified
if(isset($_CONTEXT['pass_access']) && $_CONTEXT['pass_access']==true){
$sCookieName = "thcauth_".substr($_CONTEXT['pass_hash'],0,5);
if(!isset($_COOKIE[$sCookieName])){
header("Location: ".$_PATHS['root_http']."/login.php");
exit;
}
$bLoggedTHC = ($_COOKIE[$sCookieName]==$_CONTEXT['pass_hash'] ? true : false);
}
if(!$bLoggedTHC){
// redirect on login failure
header("Location: ".$_CONTEXT['redirect_fail_login']);
exit;
}
}
?>