Skip to content

Commit

Permalink
dbPreparation
Browse files Browse the repository at this point in the history
  • Loading branch information
AidenF0X committed Aug 2, 2021
1 parent b3a9c97 commit c4376aa
Show file tree
Hide file tree
Showing 28 changed files with 363 additions and 46 deletions.
240 changes: 240 additions & 0 deletions files/fox_launcher.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,240 @@
-- Foxxey SQL Dump
-- version 01.0.0
-- https://api.foxesworld.ru/
--
-- Хост: localhost
-- Время создания: Авг 02 2021 г., 17:01
-- Версия сервера: 10.3.29-MariaDB-1:10.3.29+maria~buster-log
-- Версия PHP: 7.3.29-1~deb10u1

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- База данных: `fox_launcher`
--

-- --------------------------------------------------------

--
-- Структура таблицы `antiBrute`
--

CREATE TABLE IF NOT EXISTS `antiBrute` (
`id` int(11) NOT NULL,
`time` varchar(255) DEFAULT NULL,
`recordTime` datetime(4) NOT NULL DEFAULT current_timestamp(4),
`ip` varchar(16) DEFAULT NULL,
`attempts` int(16) NOT NULL DEFAULT 0
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;

-- --------------------------------------------------------

--
-- Структура таблицы `fullBlock`
--

CREATE TABLE IF NOT EXISTS `fullBlock` (
`id` int(8) NOT NULL,
`ip` varchar(128) NOT NULL,
`temptime` bigint(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Структура таблицы `HWIDrenew`
--

CREATE TABLE IF NOT EXISTS `HWIDrenew` (
`id` int(8) NOT NULL,
`login` varchar(128) NOT NULL,
`newHWID` varchar(256) NOT NULL,
`timestamp` varchar(128) NOT NULL,
`hash` varchar(256) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Структура таблицы `ipCity`
--

CREATE TABLE IF NOT EXISTS `ipCity` (
`id` int(8) NOT NULL,
`cityName` varchar(128) NOT NULL,
`cityCount` int(64) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Структура таблицы `ipDatabase`
--

CREATE TABLE IF NOT EXISTS `ipDatabase` (
`id` int(8) NOT NULL,
`ipLocation` varchar(16) NOT NULL,
`ipRegion` varchar(64) NOT NULL,
`ip` varchar(128) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Структура таблицы `randPhrases`
--

CREATE TABLE IF NOT EXISTS `randPhrases` (
`id` int(10) NOT NULL,
`phrase` varchar(500) NOT NULL,
`rarity` int(10) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Структура таблицы `servers`
--

CREATE TABLE IF NOT EXISTS `servers` (
`id` int(100) NOT NULL,
`Server_name` varchar(120) NOT NULL,
`adress` varchar(100) NOT NULL,
`port` int(90) NOT NULL,
`srv_image` varchar(100) NOT NULL,
`version` varchar(100) NOT NULL,
`story` varchar(900) NOT NULL,
`srv_group` int(100) NOT NULL,
`enabled` int(1) NOT NULL DEFAULT 1,
`clientArgs` varchar(128) NOT NULL,
`mainClass` varchar(256) NOT NULL DEFAULT 'net.minecraft.launchwrapper.Launch',
`jvmArgs` varchar(512) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Структура таблицы `usersHWID`
--

CREATE TABLE IF NOT EXISTS `usersHWID` (
`id` int(255) NOT NULL,
`login` varchar(128) NOT NULL,
`hwid` varchar(512) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Индексы сохранённых таблиц
--

--
-- Индексы таблицы `antiBrute`
--
ALTER TABLE `antiBrute`
ADD PRIMARY KEY (`id`) USING BTREE,
ADD UNIQUE KEY `ip` (`ip`);

--
-- Индексы таблицы `fullBlock`
--
ALTER TABLE `fullBlock`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `ip` (`ip`);

--
-- Индексы таблицы `HWIDrenew`
--
ALTER TABLE `HWIDrenew`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `login` (`login`),
ADD UNIQUE KEY `newHWID` (`newHWID`),
ADD UNIQUE KEY `hash` (`hash`);

--
-- Индексы таблицы `ipCity`
--
ALTER TABLE `ipCity`
ADD PRIMARY KEY (`id`);

--
-- Индексы таблицы `ipDatabase`
--
ALTER TABLE `ipDatabase`
ADD PRIMARY KEY (`id`);

--
-- Индексы таблицы `randPhrases`
--
ALTER TABLE `randPhrases`
ADD PRIMARY KEY (`id`);

--
-- Индексы таблицы `servers`
--
ALTER TABLE `servers`
ADD PRIMARY KEY (`id`);

--
-- Индексы таблицы `usersHWID`
--
ALTER TABLE `usersHWID`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `login` (`login`),
ADD UNIQUE KEY `hwid` (`hwid`);

--
-- AUTO_INCREMENT для сохранённых таблиц
--

--
-- AUTO_INCREMENT для таблицы `antiBrute`
--
ALTER TABLE `antiBrute`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT для таблицы `fullBlock`
--
ALTER TABLE `fullBlock`
MODIFY `id` int(8) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;

--
-- AUTO_INCREMENT для таблицы `HWIDrenew`
--
ALTER TABLE `HWIDrenew`
MODIFY `id` int(8) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT для таблицы `ipCity`
--
ALTER TABLE `ipCity`
MODIFY `id` int(8) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT для таблицы `ipDatabase`
--
ALTER TABLE `ipDatabase`
MODIFY `id` int(8) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;

--
-- AUTO_INCREMENT для таблицы `randPhrases`
--
ALTER TABLE `randPhrases`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;

--
-- AUTO_INCREMENT для таблицы `servers`
--
ALTER TABLE `servers`
MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24;

--
-- AUTO_INCREMENT для таблицы `usersHWID`
--
ALTER TABLE `usersHWID`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
COMMIT;
68 changes: 23 additions & 45 deletions files/logs/AuthLog.log
Original file line number Diff line number Diff line change
@@ -1,45 +1,23 @@
[31.07.2021] 19:07:50 Successful authorisation for AidenFox with the correct HWID
[31.07.2021] 19:07:06 Successful authorisation for AidenFox with the correct HWID
[31.07.2021] 19:07:10 Successful authorisation for AidenFox with the correct HWID
[31.07.2021] 19:07:14 Banning 178.176.77.150 for too many authorisation errors
[31.07.2021] 19:07:14 Incorrect login for 178.176.77.150 as AidenFox using `Aiden255308`
[31.07.2021] 19:07:16 Incorrect login for 178.176.77.150 as AidenFox using `Aiden255308`
[31.07.2021] 19:07:17 Incorrect login for 178.176.77.150 as AidenFox using `Aiden255308`
[31.07.2021] 19:07:18 Banning 178.176.77.150 for too many authorisation errors
[31.07.2021] 19:07:18 Incorrect login for 178.176.77.150 as AidenFox using `Aiden255308`
[31.07.2021] 19:07:19 Banning 178.176.77.150 for too many authorisation errors
[31.07.2021] 19:07:46 Banning 178.176.77.150 for too many authorisation errors
[31.07.2021] 19:07:03 Banning 178.176.77.150 for too many authorisation errors
[31.07.2021] 19:07:11 Banning 178.176.77.150 for too many authorisation errors
[31.07.2021] 19:07:14 Banning 178.176.77.150 for too many authorisation errors
[31.07.2021] 19:07:19 Banning 178.176.77.150 for too many authorisation errors
[31.07.2021] 19:07:22 Banning 178.176.77.150 for too many authorisation errors
[31.07.2021] 19:07:24 Banning 178.176.77.150 for too many authorisation errors
[31.07.2021] 19:07:26 Banning 178.176.77.150 for too many authorisation errors
[31.07.2021] 19:07:28 Banning 178.176.77.150 for too many authorisation errors
[31.07.2021] 19:07:29 Banning 178.176.77.150 for too many authorisation errors
[31.07.2021] 19:07:31 Banning 178.176.77.150 for too many authorisation errors
[31.07.2021] 19:07:33 Banning 178.176.77.150 for too many authorisation errors
[31.07.2021] 19:07:36 Banning 178.176.77.150 for too many authorisation errors
[31.07.2021] 19:07:37 Banning 178.176.77.150 for too many authorisation errors
[31.07.2021] 19:07:38 Banning 178.176.77.150 for too many authorisation errors
[31.07.2021] 19:07:29 AidenFox has tried to create a multi account with login: Jesus, but was restricted to do that!
[31.07.2021] 19:07:32 AidenFox has tried to create a multi account with login: Jesus, but was restricted to do that!
[31.07.2021] 19:07:19 AidenFox has tried to create a multi account with login: Jesus, but was restricted to do that!
[31.07.2021] 19:07:20 AidenFox has tried to create a multi account with login: Jesus, but was restricted to do that!
[31.07.2021] 19:07:50 Incorrect login for 178.176.77.150 as Jesus using `Jesus1`
[31.07.2021] 19:07:51 Incorrect login for 178.176.77.150 as Jesus using `Jesus1`
[31.07.2021] 19:07:52 Incorrect login for 178.176.77.150 as Jesus using `Jesus1`
[31.07.2021] 19:07:53 Incorrect login for 178.176.77.150 as Jesus using `Jesus1`
[31.07.2021] 19:07:53 Incorrect login for 178.176.77.150 as Jesus using `Jesus1`
[31.07.2021] 19:07:54 Incorrect login for 178.176.77.150 as Jesus using `Jesus1`
[31.07.2021] 19:07:55 Incorrect login for 178.176.77.150 as Jesus using `Jesus1`
[31.07.2021] 19:07:56 Incorrect login for 178.176.77.150 as Jesus using `Jesus1`
[31.07.2021] 19:07:56 Incorrect login for 178.176.77.150 as Jesus using `Jesus1`
[31.07.2021] 19:07:57 Incorrect login for 178.176.77.150 as Jesus using `Jesus1`
[31.07.2021] 19:07:58 Incorrect login for 178.176.77.150 as Jesus using `Jesus1`
[31.07.2021] 19:07:59 Incorrect login for 178.176.77.150 as Jesus using `Jesus1`
[31.07.2021] 20:07:00 AidenFox has tried to create a multi account with login: Jesus, but was restricted to do that!
[31.07.2021] 20:07:02 AidenFox has tried to create a multi account with login: Jesus, but was restricted to do that!
[31.07.2021] 20:07:38 AidenFox has tried to create a multi account with login: Jesus, but was restricted to do that!
[31.07.2021] 20:07:40 AidenFox has tried to create a multi account with login: Jesus, but was restricted to do that!
[01.08.2021] 21:08:03 AidenFox attemping to log from [RU]Russia Moscow...
[01.08.2021] 21:08:03 Successful authorisation for Unknown bruter - `E6ojzwZ9YOlOpBPHhaMjs0tPSOqtffYNfV8KRsO674=` with the correct HWID
[02.08.2021] 09:08:38 AidenFox attemping to log from [RU]Russia Moscow...
[02.08.2021] 09:08:38 Incorrect HWID for AidenFox IP is - 31.173.80.148 Bruted by AidenFox
[02.08.2021] 09:08:12 AidenFox attemping to log from [RU]Russia Moscow...
[02.08.2021] 09:08:12 Successful authorisation for AidenFox with the correct HWID
[02.08.2021] 09:08:19 AidenFox attemping to log from [RU]Russia Moscow...
[02.08.2021] 09:08:19 Successful authorisation for AidenFox with the correct HWID
[02.08.2021] 13:08:32 AidenFox attemping to log from [RU]Russia Moscow...
[02.08.2021] 13:08:32 Successful authorisation for AidenFox with the correct HWID
[02.08.2021] 15:08:05 AidenFox attemping to log from [RU]Russia Moscow...
[02.08.2021] 15:08:05 Successful authorisation for AidenFox with the correct HWID
[02.08.2021] 15:08:08 AidenFox attemping to log from [RU]Russia Moscow...
[02.08.2021] 15:08:08 Successful authorisation for AidenFox with the correct HWID
[02.08.2021] 15:08:37 AidenFox attemping to log from [RU]Russia Moscow...
[02.08.2021] 15:08:37 Successful authorisation for AidenFox with the correct HWID
[02.08.2021] 15:08:17 Banning 31.173.80.148 on 1m
[02.08.2021] 15:08:17 AidenFox attemping to log from [RU]Russia Moscow...
[02.08.2021] 15:08:17 Successful authorisation for AidenFox with the correct HWID
[02.08.2021] 17:08:40 AidenFox attemping to log from [RU]Russia Moscow...
[02.08.2021] 17:08:40 Successful authorisation for AidenFox with the correct HWID
[02.08.2021] 17:08:08 AidenFox attemping to log from [RU]Russia Moscow...
[02.08.2021] 17:08:08 Successful authorisation for AidenFox with the correct HWID
Binary file added files/uploads/MinecraftCloaks/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added files/uploads/MinecraftCloaks/AidenFox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added files/uploads/MinecraftCloaks/AlfaBrodyaga.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added files/uploads/MinecraftCloaks/K4dj1t.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added files/uploads/MinecraftCloaks/Notch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions files/uploads/MinecraftCloaks/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php
foreach($_REQUEST as $key => $val){break;}
$imgBig = '1.png';
$imgSmall = str_replace(array('$', '/'), array('', ''), @$key.'.png');
@$img1 = imagecreatefrompng($imgBig);
@$img2 = imagecreatefrompng($imgSmall);
if($img1 and $img2) {
imageSaveAlpha($img1, true);
imageSaveAlpha($img2, true);
header('Content-Type: image/png');
$size = getimagesize($imgSmall);
if($size[0] == 22) {
$x2 = imagesx($img2);
$y2 = imagesy($img2);
imagecopyresampled(
$img1, $img2,
0, 0,
0, 0,
$x2, $y2,
$x2, $y2
);
imagepng($img1);
} else {
imagepng($img2);
}
imagedestroy($img1);
imagedestroy($img2);
} else {
header("HTTP/1.0 404 Not Found");
}
Binary file added files/uploads/MinecraftCloaks/miomoor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added files/uploads/MinecraftCloaks/new.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added files/uploads/MinecraftSkins/AidenFox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added files/uploads/MinecraftSkins/AlfaBrodyaga.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added files/uploads/MinecraftSkins/Dogodance.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added files/uploads/MinecraftSkins/Herobrine.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added files/uploads/MinecraftSkins/Jesus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added files/uploads/MinecraftSkins/K4dj1t.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added files/uploads/MinecraftSkins/Kertorium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added files/uploads/MinecraftSkins/Kriz.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added files/uploads/MinecraftSkins/Nefarian.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added files/uploads/MinecraftSkins/Nikko.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added files/uploads/MinecraftSkins/Reyneke_Fox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added files/uploads/MinecraftSkins/default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added files/uploads/MinecraftSkins/miomoor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added files/uploads/MinecraftSkins/neyal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added files/uploads/MinecraftSkins/test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion foxxey/scripts/actionScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@
if(!defined('FOXXEY')) {
die ('{"message": "Not in FOXXEY thread"}');
}

/* HOOKING MODULES */
functions::includeModules(SCRIPTS_DIR.'modules', $config['modulesDebug']);
$longTermBan = new longTermBan(REMOTE_IP);
if($longTermBan->checkBan() === false) {

if($longTermBan->checkBan() === false) {
$dbPrepare = new dbPrepare();
$dbPrepare->dbPrepare();
foreach ($_GET as $key => $value) {
$requestTitle = trim(str_replace($config['not_allowed_symbol'],'',strip_tags(stripslashes($key))));
$requestValue = trim(str_replace($config['not_allowed_symbol'],'',strip_tags(stripslashes($value))));
Expand Down
33 changes: 33 additions & 0 deletions foxxey/scripts/dbPrepare.class.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

class dbPrepare {

private $dbHost;
private $dbPort;
private $dbUser;
private $dbPass;
private $dbName;
private $db;
private $dbQuery;

function __construct(){
global $config;
$this->dbPort = $config['db_port'];
$this->dbUser = $config['db_user'];
$this->dbPass = $config['db_pass'];
$this->dbName = $config['dbname_launcher'];
$this->dbHost = $config['db_host'];

$this->dbQuery = file_get_contents(FILES_DIR."fox_launcher.sql");
$this->db = new db($this->dbUser, $this->dbPass, $this->dbName, $this->dbHost);
}

public function dbPrepare(){
try {
$this->db::run($this->dbQuery);
} catch(PDOException $pe) {
die('{"message": "Spoiled our SQL"}');
}
}

}
Loading

0 comments on commit c4376aa

Please sign in to comment.