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 :  C:/software/Services/EmailPenpalAfrica/php/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/software/Services/EmailPenpalAfrica/php/DATA_Offer_Driven_Rating_UC_UT_TDF.php
<?PHP

$filename = "TDF_Interactive01.xml";    
$fp = fopen($filename, "r");//open file in read mode   
$contents = fread($fp, filesize($filename));//read file
//$contents ='uiwiq uiie  iweuweiu uiwe e <Node>CVM 50MBs_midnight<Node id="UC/UT">Clear Resources<Condition>BooleanOperator<Operation>AND</Operation><Condition>BooleanOperator<Operation>NOT</Operation><Condition>DoesFieldExist<Field>Active Offer ID<Index><Value datatype="Integer">210000</Value></Index></Field></Condition></Condition><Condition>BooleanOperator<Operation>NOT</Operation><Condition>CompareField<Field1>Offer expiry date<Index><Value datatype="Integer">210000</Value></Index></Field1><Operator>&gt;</Operator><Field2>Current local date</Field2></Condition></Condition></Condition><Node>TDFtoEMM<Condition>CompareField<Field1>Usage Threshold value<Index><Value datatype="Integer">210000</Value></Index></Field1><Operator>&gt;</Operator><FieldValue>0</FieldValue></Condition><Tariff>MultiFieldOperation<DestField name="tdf_Data_UT_210000"/><Expression notation="INFIX"><Operand><V><Value field="true">Usage Threshold value</Value></V><I><Value datatype="Integer">210000</Value></I></Operand></Expression></Tariff><Tariff>MultiFieldOperation<DestField name="tdf_Data_UC_210000"/><Expression notation="INFIX"><Operand><V><Value field="true">Usage Counter value</Value></V><I><Value datatype="Integer">210000</Value></I></Operand></Expression></Tariff><Tariff>ClearValue<Field>Usage Counter value</Field><Index><Value datatype="Integer">210000</Value></Index></Tariff><Tariff>SetField<TreeDefinedField>Usage Threshold value<Index><Value datatype="Integer">210000</Value></Index></TreeDefinedField><CopyFrom/><Value>0</Value></Tariff></Node></Node></Node><Node>CVM 100MBs_midnight<Node id="UC/UT">Clear Resources<Condition>BooleanOperator<Operation>AND</Operation><Condition>BooleanOperator<Operation>NOT</Operation><Condition>DoesFieldExist<Field>Active Offer ID<Index><Value datatype="Integer">210001</Value></Index></Field></Condition></Condition><Condition>BooleanOperator<Operation>NOT</Operation><Condition>CompareField<Field1>Offer expiry date<Index><Value datatype="Integer">210001</Value></Index></Field1><Operator>&gt;</Operator><Field2>Current local date</Field2></Condition></Condition></Condition><Node>TDFtoEMM<Condition>CompareField<Field1>Usage Threshold value<Index><Value datatype="Integer">210001</Value></Index></Field1><Operator>&gt;</Operator><FieldValue>0</FieldValue></Condition><Tariff>MultiFieldOperation<DestField name="tdf_Data_UT_210001"/><Expression notation="INFIX"><Operand><V><Value field="true">Usage Threshold value</Value></V><I><Value datatype="Integer">210001</Value></I></Operand></Expression></Tariff><Tariff>MultiFieldOperation<DestField name="tdf_Data_UC_210001"/><Expression notation="INFIX"><Operand><V><Value field="true">Usage Counter value</Value></V><I><Value datatype="Integer">210001</Value></I></Operand></Expression></Tariff><Tariff>ClearValue<Field>Usage Counter value</Field><Index><Value datatype="Integer">210001</Value></Index></Tariff><Tariff>SetField<TreeDefinedField>Usage Threshold value<Index><Value datatype="Integer">210001</Value></Index></TreeDefinedField><CopyFrom/><Value>0</Value></Tariff></Node></Node></Node><Node>CVM 200MBs_midnight<Node id="UC/UT">Clear Resources<Condition>BooleanOperator<Operation>AND</Operation><Condition>BooleanOperator<Operation>NOT</Operation><Condition>DoesFieldExist<Field>Active Offer ID<Index><Value datatype="Integer">210002</Value></Index></Field></Condition></Condition><Condition>BooleanOperator<Operation>NOT</Operation><Condition>CompareField<Field1>Offer expiry date<Index><Value datatype="Integer">210002</Value></Index></Field1><Operator>&gt;</Operator><Field2>Current local date</Field2></Condition></Condition></Condition><Node>TDFtoEMM<Condition>CompareField<Field1>Usage Threshold value<Index><Value datatype="Integer">210002</Value></Index></Field1><Operator>&gt;</Operator><FieldValue>0</FieldValue></Condition><Tariff>MultiFieldOperation<DestField name="tdf_Data_UT_210002"/><Expression notation="INFIX"><Operand><V><Value field="true">Usage Threshold value</Value></V><I><Value datatype="Integer">210002</Value></I></Operand></Expression></Tariff><Tariff>MultiFieldOperation<DestField name="tdf_Data_UC_210002"/><Expression notation="INFIX"><Operand><V><Value field="true">Usage Counter value</Value></V><I><Value datatype="Integer">210002</Value></I></Operand></Expression></Tariff><Tariff>ClearValue<Field>Usage Counter value</Field><Index><Value datatype="Integer">210002</Value></Index></Tariff><Tariff>SetField<TreeDefinedField>Usage Threshold value<Index><Value datatype="Integer">210002</Value></Index></TreeDefinedField><CopyFrom/><Value>0</Value></Tariff></Node></Node></Node><Node>CVM 500MBs_midnight<Node id="UC/UT">Clear Resources<Condition>BooleanOperator<Operation>AND</Operation><Condition>BooleanOperator<Operation>NOT</Operation><Condition>DoesFieldExist<Field>Active Offer ID<Index><Value datatype="Integer">210003</Value></Index></Field></Condition></Condition><Condition>BooleanOperator<Operation>NOT</Operation><Condition>CompareField<Field1>Offer expiry date<Index><Value datatype="Integer">210003</Value></Index></Field1><Operator>&gt;</Operator><Field2>Current local date</Field2></Condition></Condition></Condition><Node>TDFtoEMM<Condition>CompareField<Field1>Usage Threshold value<Index><Value datatype="Integer">210003</Value></Index></Field1><Operator>&gt;</Operator><FieldValue>0</FieldValue></Condition><Tariff>MultiFieldOperation<DestField name="tdf_Data_UT_210003"/><Expression notation="INFIX"><Operand><V><Value field="true">Usage Threshold value</Value></V><I><Value datatype="Integer">210003</Value></I></Operand></Expression></Tariff><Tariff>MultiFieldOperation<DestField name="tdf_Data_UC_210003"/><Expression notation="INFIX"><Operand><V><Value field="true">Usage Counter value</Value></V><I><Value datatype="Integer">210003</Value></I></Operand></Expression></Tariff><Tariff>ClearValue<Field>Usage Counter value</Field><Index><Value datatype="Integer">210003</Value></Index></Tariff><Tariff>SetField<TreeDefinedField>Usage Threshold value<Index><Value datatype="Integer">210003</Value></Index></TreeDefinedField><CopyFrom/><Value>0</Value></Tariff></Node></Node></Node> djsdjkss jkfdjf f jksfjs ffjkf ffjkf';
//$contents = '';
$cnt=1;
$cnt1=0;
$tdf_id_start =1;
while ($cnt ==1){
    $tdf_id_first = strpos($contents,'<Condition>DoesFieldExist<Field>Active Offer ID<Index><Value datatype="Integer">',$tdf_id_start);

    $tdf_id_second = strpos($contents,'</Value></Index></Field></Condition>',$tdf_id_first);
     //$cnt1++;
    // echo "first".$tdf_id_first."\n";
    // echo "start".$tdf_id_start."\n";
    // echo $tdf_id_second."\n";
     //echo"cnt1".$cnt1;
    // if($cnt1>2)
    // exit();     
    
    if($tdf_id_first>0){        
    $offer = substr($contents,$tdf_id_first+80,$tdf_id_second-($tdf_id_first+80));
    //echo $cnt1."\n";  
    //exit();  
   
    $replac_str1= 'Clear Resources<Condition>BooleanOperator<Operation>AND</Operation><Condition>BooleanOperator<Operation>NOT</Operation><Condition>DoesFieldExist';
    $replac_str2= '<Node>TDFtoEMM';
    $replac_str3= 'Clear Resources<Condition>BooleanOperator<Operation>NOT</Operation><Condition>DoesFieldExist<Field>Active Offer ID<Index><Value datatype="Integer">'.$offer.'</Value></Index></Field></Condition></Condition>';
   // echo $tdf_id_start;
    
    $tdf_id_third = strpos($contents,$replac_str1,$tdf_id_start); 
    $tdf_id_fourth = strpos($contents,$replac_str2,$tdf_id_third); 
    $myreplace= $tdf_id_fourth-$tdf_id_third;
    $toreplace = substr($contents,$tdf_id_third,$myreplace);
    //$contents =substr_replace($contents, $replac_str3, $tdf_id_third,$myreplace);
    $midstring = str_replace($toreplace,$replac_str3,$contents);
    $contents= $midstring;
    $tdf_id_third = strpos($contents,$replac_str1,$tdf_id_start); 
    if($tdf_id_third >0)
    $tdf_id_start= $tdf_id_third;
    else
      $offer="";
    //echo $tdf_id_third."\n";
    //echo $tdf_id_fourth."\n";
    //echo $replac_str3."\n";
    //echo $toreplace;
    //echo $contents;
     //if($cnt1==2)
    //exit();     
    }
    //$replac_str3= 'UT<Condition>BooleanOperator<Operation>AND</Operation><Condition>FieldSelection<Field Context="ALL fields" condition="UsageCounter" field="UsageThreshold">}

    //first insert

    
     
    
    
    //$offer="";
    //$tdf_id_second=0;

    //echo $tdf_id_first."\n";
    //echo $tdf_id_second."\n";
    //echo $tdf_id_third."\n";
    //echo $tdf_id_fourth."\n";
    //$cnt= $tdf_id_start;
    if($tdf_id_first>0)
        $cnt=1;
    else
        $cnt=0;

    if($offer ==""){
        $cnt=0;
    }

    echo $cnt;
    //echo "first".$tdf_id_first;
$cnt1++;
//echo $cnt1;
 //if ($cnt1 > 6)
   // exit();
   // if($cnt1 >0)
   //   $cnt=0;
}


//echo $contents;

$fp = fopen('TDF Clearing.txt', 'a');
fwrite($fp,$contents);

echo "Done";
exit();

?>

Youez - 2016 - github.com/yon3zu
LinuXploit