- панель работает на PHP 8.4 (оригинал под PHP 7.0): elFinder utf8_encode, apache_get_modules, warnings - капча выключена и управляется из админки (флаг captcha_enable + блок настроек) - закрыты две SQL-инъекции без авторизации (createAuthLog: пароль из POST и CF-Connecting-IP) - убрано хранение паролей в открытом виде в authlog, XSS в поле ref - установщики install-panel.sh и install-node.sh (оригинальный затирал sources.list репозиториями Debian 9) - современный Dockerfile (оригинальный на debian:stretch больше не собирается) - планировщик и автозапуск работают без systemd - брендинг REDL.IO, год 2026, ссылки на redl.io - документация на русском: ИЗМЕНЕНИЯ, БЕЗОПАСНОСТЬ, ИНСТРУКЦИЯ
37 lines
736 B
PHP
37 lines
736 B
PHP
<?php
|
|
/*
|
|
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
|
|
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
|
|
*/
|
|
class QueryBase {
|
|
protected $ip;
|
|
protected $port;
|
|
|
|
protected $socket;
|
|
|
|
protected function write($bytes) {
|
|
return fwrite($this->socket, $bytes);
|
|
}
|
|
|
|
protected function readInt8() {
|
|
return ord($this->read(1));
|
|
}
|
|
|
|
protected function readInt16() {
|
|
$int = unpack('Sint', $this->read(2));
|
|
return $int['int'];
|
|
}
|
|
|
|
protected function readString() {
|
|
$string = null;
|
|
while(($char = $this->read(1)) != "\x00") {
|
|
$string .= $char;
|
|
}
|
|
return $string;
|
|
}
|
|
|
|
protected function read($len) {
|
|
return fread($this->socket, $len);
|
|
}
|
|
}
|
|
?>
|