!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/wataxi.picotech.app/public_html/packages/codedge/laravel-selfupdater/src/   drwxr-xr-x
Free 28.51 GB of 117.98 GB (24.16%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Codedge\Updater;

use 
Codedge\Updater\Commands\CheckForUpdate;
use 
Codedge\Updater\Contracts\SourceRepositoryTypeContract;
use 
Codedge\Updater\Models\Release;
use 
Codedge\Updater\Models\UpdateExecutor;
use 
Codedge\Updater\Notifications\EventHandler;
use 
Codedge\Updater\SourceRepositoryTypes\GithubRepositoryType;
use 
Codedge\Updater\SourceRepositoryTypes\GithubRepositoryTypes\GithubBranchType;
use 
Codedge\Updater\SourceRepositoryTypes\GithubRepositoryTypes\GithubTagType;
use 
Codedge\Updater\SourceRepositoryTypes\HttpRepositoryType;
use 
GuzzleHttp\Client;
use 
GuzzleHttp\ClientInterface;
use 
Illuminate\Filesystem\Filesystem;
use 
Illuminate\Support\Facades\App;
use 
Illuminate\Support\ServiceProvider;

/**
 * UpdaterServiceProvider.php.
 *
 * @author Holger Lösken <holger.loesken@codedge.de>
 * @copyright See LICENSE file that was distributed with this source code.
 */
class UpdaterServiceProvider extends ServiceProvider
{
    
/**
     * Indicates if loading of the provider is deferred.
     *
     * @var bool
     */
    
protected $defer false;

    
/**
     * Perform post-registration booting of services.
     */
    
public function boot()
    {
        
$this->publishes([
            
__DIR__.'/../config/self-update.php' => config_path('self-update.php'),
        ], 
'config');

        
$this->loadViews();
    }

    
/**
     * Set up views.
     */
    
protected function loadViews()
    {
        
$this->loadViewsFrom(__DIR__.'/../resources/views''self-update');
        
$this->publishes([
            
__DIR__.'/../resources/views' => resource_path('views/vendor/self-update'),
        ]);
    }

    
/**
     * Register the service provider.
     */
    
public function register()
    {
        
$this->mergeConfigFrom(__DIR__.'/../config/self-update.php''self-update');

        
$this->app['events']->subscribe(EventHandler::class);

        
$this->registerCommands();
        
$this->registerManager();
    }

    
/**
     * Register the package its commands.
     */
    
protected function registerCommands()
    {
        
$this->commands([
            
CheckForUpdate::class,
        ]);

        
// Register custom commands from config
        
collect(config('self-update.artisan_commands.pre_update'))->each(function ($command) {
            
$this->commands([$command['class']]);
        });
        
collect(config('self-update.artisan_commands.post_update'))->each(function ($command) {
            
$this->commands([$command['class']]);
        });
    }

    
/**
     * Register the manager class.
     */
    
protected function registerManager()
    {
        
$this->app->singleton('updater', function () {
            return new 
UpdaterManager(app());
        });

        
$this->app->bind(Release::class, function (): Release {
            return new 
Release(new Filesystem());
        });

        
$this->app->bind(UpdateExecutor::class, function () {
            return new 
UpdateExecutor();
        });

        
$this->app->bind(ClientInterface::class, Client::class);
        
$this->app->bind(Client::class, function () {
            return new 
Client(['base_uri' => GithubRepositoryType::GITHUB_API_URL]);
        });

        
$this->app->bind(GithubRepositoryType::class, function (): GithubRepositoryType {
            return new 
GithubRepositoryType(
                
config('self-update.repository_types.github'),
                
$this->app->make(UpdateExecutor::class)
            );
        });

        
$this->app->bind(GithubBranchType::class, function (): SourceRepositoryTypeContract {
            return new 
GithubBranchType(
                
config('self-update.repository_types.github'),
                
$this->app->make(ClientInterface::class),
                
$this->app->make(UpdateExecutor::class)
            );
        });

        
$this->app->bind(GithubTagType::class, function (): SourceRepositoryTypeContract {
            return new 
GithubTagType(
                
config('self-update.repository_types.github'),
                
$this->app->make(ClientInterface::class),
                
$this->app->make(UpdateExecutor::class)
            );
        });

        
$this->app->bind(HttpRepositoryType::class, function () {
            return new 
HttpRepositoryType(
                
config('self-update.repository_types.http'),
                
$this->app->make(ClientInterface::class),
                
$this->app->make(UpdateExecutor::class)
            );
        });

        
$this->app->alias('updater'UpdaterManager::class);
    }

    
/**
     * Get the services provided by the provider.
     *
     * @return array
     */
    
public function provides()
    {
        return [
            
'updater',
        ];
    }
}

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