!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/net/   drwxr-xr-x
Free 25.9 GB of 117.98 GB (21.96%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     delete_bifcs.cgi (1.44 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Delete some boot-time interfaces, and perhaps de-activate them too

require './net-lib.pl';
&ReadParse();
&error_setup($in{'apply'} ? $text{'dbifcs_err2'} : $text{'dbifcs_err'});
@d = split(/\0/, $in{'b'});
@d || &error($text{'daifcs_enone'});

# Do the deletes
@boot = &boot_interfaces();
@active = &active_interfaces();
foreach $d (reverse(@d)) {
    ($b) = grep { $_->{'fullname'} eq $d } @boot;
    $b || &error($text{'daifcs_egone'});
    &can_iface($b) || &error($text{'ifcs_ecannot_this'});
    if ($in{'apply'}) {
        # Make this interface active
        &activate_interface($b);
        }
    else {
        # Deleting
        if ($in{'deleteapply'}) {
            # De-activate first
            ($act) = grep { $_->{'fullname'} eq $b->{'fullname'} }
                      @active;
            if ($act) {
                if (defined(&unapply_interface)) {
                    $err = &unapply_interface($act);
                    $err && &error("<pre>$err</pre>");
                    }
                else {
                    &deactivate_interface($act);                    
                    if(&iface_type($b->{'name'}) eq 'Bonded'){
                                        if (($gconfig{'os_type'} eq 'debian-linux') && ($gconfig{'os_version'} >= 5)) {}
                                           else {&unload_module($b->{'name'});}
                     }
                    }
                }
            }

        # Delete config
        &delete_interface($b);
        if(&iface_type($b->{'name'}) eq 'Bonded' &&
           defined(&delete_module_def)){
            &delete_module_def($b->{'name'});    
         }
        }
    }

&webmin_log($in{'apply'} ? "apply" : "delete", "bifcs", scalar(@d));
&redirect("list_ifcs.cgi?mode=boot");


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