Linux server.thearyasamaj.org 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
Apache
: 103.90.241.146 | : 216.73.216.84
Cant Read [ /etc/named.conf ]
5.6.40
ftpuser@mantra.thearyasamaj.org
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
libexec /
webmin /
iscsi-target /
[ HOME SHELL ]
Name
Size
Permission
Action
help
[ DIR ]
drwxr-xr-x
images
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
atboot.cgi
1.02
KB
-rwxr-xr-x
config
211
B
-rw-r--r--
config-debian-linux
231
B
-rw-r--r--
config-debian-linux-ALL-4.0
201
B
-rw-r--r--
config-openSUSE-Linux-15.0-ALL
223
B
-rw-r--r--
config-suse-linux
223
B
-rw-r--r--
config.info
309
B
-rw-r--r--
config.info.ca
393
B
-rw-r--r--
config.info.de
333
B
-rw-r--r--
config.info.no
302
B
-rw-r--r--
delete_allows.cgi
764
B
-rwxr-xr-x
delete_targets.cgi
874
B
-rwxr-xr-x
down_allow.cgi
578
B
-rwxr-xr-x
edit_addr.cgi
1003
B
-rwxr-xr-x
edit_allow.cgi
1.55
KB
-rwxr-xr-x
edit_auth.cgi
1.41
KB
-rwxr-xr-x
edit_conn.cgi
1.42
KB
-rwxr-xr-x
edit_manual.cgi
652
B
-rwxr-xr-x
edit_target.cgi
5.68
KB
-rwxr-xr-x
edit_timeout.cgi
903
B
-rwxr-xr-x
index.cgi
3.44
KB
-rwxr-xr-x
install_check.pl
348
B
-rwxr-xr-x
iscsi-target-lib.pl
12.14
KB
-rw-r--r--
list_allow.cgi
1.64
KB
-rwxr-xr-x
log_parser.pl
484
B
-rwxr-xr-x
module.info
205
B
-rw-r--r--
module.info.af
0
B
-rw-r--r--
module.info.af.auto
130
B
-rw-r--r--
module.info.ar
0
B
-rw-r--r--
module.info.ar.auto
159
B
-rw-r--r--
module.info.be
0
B
-rw-r--r--
module.info.be.auto
207
B
-rw-r--r--
module.info.bg
0
B
-rw-r--r--
module.info.bg.auto
184
B
-rw-r--r--
module.info.ca
149
B
-rw-r--r--
module.info.cs
0
B
-rw-r--r--
module.info.cs.auto
120
B
-rw-r--r--
module.info.da
0
B
-rw-r--r--
module.info.da.auto
119
B
-rw-r--r--
module.info.de
103
B
-rw-r--r--
module.info.el
0
B
-rw-r--r--
module.info.el.auto
221
B
-rw-r--r--
module.info.es
0
B
-rw-r--r--
module.info.es.auto
144
B
-rw-r--r--
module.info.eu
0
B
-rw-r--r--
module.info.eu.auto
114
B
-rw-r--r--
module.info.fa
0
B
-rw-r--r--
module.info.fa.auto
185
B
-rw-r--r--
module.info.fi
0
B
-rw-r--r--
module.info.fi.auto
116
B
-rw-r--r--
module.info.fr
0
B
-rw-r--r--
module.info.fr.auto
144
B
-rw-r--r--
module.info.he
0
B
-rw-r--r--
module.info.he.auto
147
B
-rw-r--r--
module.info.hr
0
B
-rw-r--r--
module.info.hr.auto
126
B
-rw-r--r--
module.info.hu
0
B
-rw-r--r--
module.info.hu.auto
153
B
-rw-r--r--
module.info.it
0
B
-rw-r--r--
module.info.it.auto
144
B
-rw-r--r--
module.info.ja
0
B
-rw-r--r--
module.info.ja.auto
181
B
-rw-r--r--
module.info.ko
0
B
-rw-r--r--
module.info.ko.auto
159
B
-rw-r--r--
module.info.lt
0
B
-rw-r--r--
module.info.lt.auto
134
B
-rw-r--r--
module.info.lv
0
B
-rw-r--r--
module.info.lv.auto
128
B
-rw-r--r--
module.info.ms
131
B
-rw-r--r--
module.info.mt
0
B
-rw-r--r--
module.info.mt.auto
128
B
-rw-r--r--
module.info.nl
0
B
-rw-r--r--
module.info.nl.auto
130
B
-rw-r--r--
module.info.no
19
B
-rw-r--r--
module.info.no.auto
99
B
-rw-r--r--
module.info.pl
0
B
-rw-r--r--
module.info.pl.auto
135
B
-rw-r--r--
module.info.pt
0
B
-rw-r--r--
module.info.pt.auto
129
B
-rw-r--r--
module.info.pt_BR
0
B
-rw-r--r--
module.info.pt_BR.auto
135
B
-rw-r--r--
module.info.ro
0
B
-rw-r--r--
module.info.ro.auto
129
B
-rw-r--r--
module.info.ru
0
B
-rw-r--r--
module.info.ru.auto
219
B
-rw-r--r--
module.info.sk
0
B
-rw-r--r--
module.info.sk.auto
119
B
-rw-r--r--
module.info.sl
0
B
-rw-r--r--
module.info.sl.auto
111
B
-rw-r--r--
module.info.sv
0
B
-rw-r--r--
module.info.sv.auto
112
B
-rw-r--r--
module.info.th
0
B
-rw-r--r--
module.info.th.auto
260
B
-rw-r--r--
module.info.tr
0
B
-rw-r--r--
module.info.tr.auto
133
B
-rw-r--r--
module.info.uk
0
B
-rw-r--r--
module.info.uk.auto
188
B
-rw-r--r--
module.info.ur
0
B
-rw-r--r--
module.info.ur.auto
243
B
-rw-r--r--
module.info.vi
0
B
-rw-r--r--
module.info.vi.auto
134
B
-rw-r--r--
module.info.zh
0
B
-rw-r--r--
module.info.zh.auto
112
B
-rw-r--r--
module.info.zh_TW
0
B
-rw-r--r--
module.info.zh_TW.auto
112
B
-rw-r--r--
restart.cgi
355
B
-rwxr-xr-x
save_addr.cgi
943
B
-rwxr-xr-x
save_allow.cgi
1.27
KB
-rwxr-xr-x
save_auth.cgi
1.22
KB
-rwxr-xr-x
save_conn.cgi
1.34
KB
-rwxr-xr-x
save_manual.cgi
455
B
-rwxr-xr-x
save_target.cgi
4.1
KB
-rwxr-xr-x
save_timeout.cgi
862
B
-rwxr-xr-x
start.cgi
332
B
-rwxr-xr-x
stop.cgi
307
B
-rwxr-xr-x
up_allow.cgi
576
B
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : save_target.cgi
#!/usr/bin/perl # Create, update or delete a target use strict; use warnings; no warnings 'redefine'; no warnings 'uninitialized'; require './iscsi-target-lib.pl'; our (%text, %in, %config); &ReadParse(); &error_setup($text{'target_err'}); &lock_file($config{'config_file'}); my $pconf = &get_iscsi_config_parent(); my $conf = $pconf->{'members'}; # Get the target my $target; if ($in{'new'}) { $target = { 'name' => 'Target', 'members' => [ ] }; } else { ($target) = grep { $_->{'value'} eq $in{'oldname'} } &find($conf, "Target"); $target || &error($text{'target_egone'}); } if ($in{'delete'}) { # Delete the target &save_directive($conf, $pconf, [ $target ], [ ]); } else { # Validate and save directives, starting with target name my $host; if ($in{'new'}) { $host = &find_host_name($conf) || &generate_host_name(); } else { ($host) = split(/:/, $target->{'value'}); } $in{'name'} =~ /^[a-z0-9\.\_\-]+$/i || &error($text{'target_ename'}); $target->{'value'} = $host.":".$in{'name'}; # Validate logical units my @luns = &find_value($target->{'members'}, "Lun"); my @newluns; my $lastlunid = 0; for(my $i=0; defined($in{"mode".$i}); $i++) { my ($lunid, $lunstr) = split(/\s+/, $luns[$i]); $lunid ||= ($lastlunid + 1); $lastlunid = $lunid; my %lunopts = map { split(/=/, $_) } split(/,/, $lunstr); # Clear variables that we will set below delete($lunopts{"Path"}); delete($lunopts{"Type"}); delete($lunopts{"Sectors"}); if ($in{"mode".$i} eq "none") { # Nothing to do next; } elsif ($in{"mode".$i} eq "part") { # Regular partition $lunopts{"Path"} = $in{"part".$i}; } elsif ($in{"mode".$i} eq "raid") { # RAID device $lunopts{"Path"} = $in{"raid".$i}; } elsif ($in{"mode".$i} eq "lvm") { # LVM logical volume $lunopts{"Path"} = $in{"lvm".$i}; } elsif ($in{"mode".$i} eq "other") { # Some other file $in{"other".$i} =~ /^\/\S+$/ && -r $in{"other".$i} || &error(&text('target_eother', $i+1)); $lunopts{"Path"} = $in{"other".$i}; } elsif ($in{"mode".$i} eq "null") { # Null-IO device $lunopts{"Type"} = "nullio"; $in{"null".$i} =~ /^\d+$/ && $in{"null".$i} > 0 || &error(&text('target_esectors', $i+1)); $lunopts{"Sectors"} = $in{"null".$i}; } if ($in{"mode".$i} ne "null") { # Save IO mode $lunopts{"Type"} = $in{"type".$i}; $lunopts{"IOMode"} = $in{"iomode".$i}; } push(@newluns, $lunid." ". join(",", map { $_."=".$lunopts{$_} } grep { $lunopts{$_} ne "" } (keys %lunopts))); } &save_directive($conf, $target, "Lun", \@newluns); # Validate incoming user(s) my @iusers; if (!$in{"iuser_def"}) { for(my $i=0; defined($in{"uname_$i"}); $i++) { next if (!$in{"uname_$i"}); $in{"uname_$i"} =~ /^\S+$/ || &error(&text('target_eiuser', $i+1)); $in{"upass_$i"} =~ /^\S+$/ || &error(&text('target_eipass', $i+1)); push(@iusers, $in{"uname_$i"}." ".$in{"upass_$i"}); } @iusers || &error($text{'target_eiusernone'}); } &save_directive($conf, $target, "IncomingUser", \@iusers); # Validate outgoing user if ($in{"ouser_def"}) { &save_directive($conf, $target, "OutgoingUser", [ ]); } else { $in{"ouser"} =~ /^\S+$/ || &error($text{'target_eouser'}); $in{"opass"} =~ /^\S+$/ || &error($text{'target_eopass'}); &save_directive($conf, $target, "OutgoingUser", [ $in{"ouser"}." ".$in{"opass"} ]); } # Save alias if ($in{'alias_def'}) { &save_directive($conf, $target, "Alias", [ ]); } else { $in{'alias'} =~ /^[a-z0-9\.\_\-]+$/i || &error($text{'target_ealias'}); &save_directive($conf, $target, "Alias", [ $in{'alias'} ]); } # Save digest modes &save_directive($conf, $target, "HeaderDigest", $in{'hdigest'} ? [ $in{'hdigest'} ] : [ ]); &save_directive($conf, $target, "DataDigest", $in{'ddigest'} ? [ $in{'ddigest'} ] : [ ]); # Save the target &save_directive($conf, $pconf, $in{'new'} ? [ ] : [ $target ], [ $target ]); } &flush_file_lines($config{'config_file'}); &unlock_file($config{'config_file'}); &webmin_log($in{'delete'} ? 'delete' : $in{'new'} ? 'create' : 'modify', 'target', $target->{'value'}); &redirect("");
Close