%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /data/www_bck/varak.net_bck/broot.varak.net/
Upload File :
Create Path :
Current File : //data/www_bck/varak.net_bck/broot.varak.net/sessiontest.php

<?php
session_start();
if($_GET['action'] == 'insert')
{
	$_SESSION['data'][] = $_POST['text'];
	header("Location: sessiontest.php");
}
?>
<html>
	<head>
		<meta charset="utf-8">
		<title>Session hijacking test</title>
	</head>
	<body>
	<?php
	if(isset($_SESSION['data']))
	{
		foreach($_SESSION['data'] as $data)
		{
			echo "<p>$data</p>\n";
		}
	}
	else
	{
		$_SESSION['data'] = array();
	}
	?>
	<br><hr><br>
	<pre><?php print_r($_SESSION); ?></pre>
	<br><hr><br>
	<form action="sessiontest.php?action=insert" method="post">
		<input type="text" name="text" id="text" size="60"><input type="submit" name="submit" value="Insert" id="submit">
	</form>
	<img src="image.png">
</body>
<html>

Zerion Mini Shell 1.0