HEX
Server: nginx/1.24.0
System: Linux ip-10-50-20-85 6.5.0-1022-aws #22~22.04.1-Ubuntu SMP Fri Jun 14 16:31:00 UTC 2024 x86_64
User: usefuloffices.org (1001)
PHP: 8.1.2-1ubuntu2.23
Disabled: NONE
Upload Files
File: //proc/self/root/proc/self/cwd/redirect_sample.php
<?php 

	// if(isset($_GET['banner']) == 'top01'){
	// 	setcookie('banner','top01', time() + (86400 * 30), "/");
	// } elseif (isset($_GET['banner']) == 'right01'){
	// 	setcookie('banner','right01', time() + (86400 * 30), "/");
	// } elseif (isset($_GET['banner']) == 'bottom01'){
	// 	setcookie('banner','bottom01', time() + (86400 * 30), "/");
	// } else {
	// 	setcookie('banner', $_COOKIE['banner'], time() + (86400 * 30), "/");
	// }
	if (isset($_GET['id']) && $_GET['id'] == '02'){
		header ('Location: https://yahoo.com');
	} else {
		header ('Location: https://google.com');		
	}
	
?>