403Webshell
Server IP : 172.67.134.114  /  Your IP : 162.159.115.41
Web Server : Apache/2.4.37
System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64
User : ricodeal ( 1046)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/libexec/webmin/jailkit/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/libexec/webmin/jailkit/delete_jail.cgi
#!/usr/bin/perl
use strict;
use warnings;

our (%text, %in);
require './jailkit-lib.pl';
ReadParse();

my $jk_init_ini = get_jk_init_ini();
my @sections    = $jk_init_ini->Sections();
my %jail_params;

my @d = split(/\0/, $in{'d'});

# If we've already confirmed go ahead an delete it
if (defined $in{'confirmed'}) {
  foreach my $jail (@d) {
    if ($jk_init_ini->SectionExists($jail)) {
      $jk_init_ini->DeleteSection($jail);
    }
    else {
      # Does this jail exist?
      error(text('error_jail_not_found', "$jail", "<br>\n"));
    }
  }
  write_jk_init_ini($jk_init_ini);
  redirect('');
}
else {
  ui_print_header(undef, $text{'index_delete_jail'}, "");
  print "<center>\n";

  # Check to be sure we really want these jails gone
  print ui_form_start("delete_jail.cgi", "post");
  foreach my $jail (@d) {

    # Re-send all of the d_* items with a confirmed field
    print ui_hidden("d", $jail);
  }

  print $text{'delete_are_you_sure'};
  print "<p>\n";
  foreach my $del_jail (@d) {
    print "<i>$del_jail</i><br>\n";
  }
  print "</p>\n";

  print ui_hidden("confirmed", "1");

  #print ui_submit($text{delete_confirm}, "confirm");
  print ui_form_end([["confirm", $text{'delete_confirm'}]]);
  print "</center>\n";
  ui_print_footer("");
}

ui_print_footer("");

Youez - 2016 - github.com/yon3zu
LinuXploit