!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 29.33 GB of 117.98 GB (24.86%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     save_known.cgi (1.09 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# save_known.cgi
# Save, create or delete a known host

require './ssh-lib.pl';
&ReadParse();
@knowns = &list_knowns();
$known = $knowns[$in{'idx'}] if (!$in{'new'});

if ($in{'delete'}) {
    # Just delete this known host key
    &delete_known($known);
    }
else {
    # Validate inputs
    &error_setup($text{'known_err'});
    if ($in{'hosts'}) {
        $in{'hosts'} =~ /\S/ || &error($text{'known_ehosts'});
        $known->{'hosts'} = [ split(/\s+/, $in{'hosts'}) ];
        }
        if ($in{type} eq 'ssh-rsa1') {
        $in{'bits'} =~ /^\d+$/ || &error($text{'auth_ebits'});
        $known->{'bits'} = $in{'bits'};
        $in{'exp'} =~ /^\d+$/ || &error($text{'auth_eexp'});
        $known->{'exp'} = $in{'exp'};
        $in{'key'} =~ s/\r|\n//g;
        $in{'key'} =~ /^\d+$/ || &error($text{'auth_ekey'});
        }
    else {
        $known->{'type'} = $in{'type'};
        $in{'key'} =~ s/\r|\n//g;
        $in{'key'} =~ /^\S+$/ || &error($text{'auth_ekey'});
        }
    $known->{'key'} = $in{'key'};
    $known->{'comment'} = $in{'comment'};

    # Create or save the known host
    if ($in{'new'}) {
        &create_known($known);
        }
    else {
        &modify_known($known);
        }
    }
&redirect("list_knowns.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.0095 ]--