Linux ns8.secondary29.go.th 2.6.32-754.28.1.el6.x86_64 #1 SMP Wed Mar 11 18:38:45 UTC 2020 x86_64
Apache/2.2.15 (CentOS)
: 122.154.134.11 | : 122.154.134.9
Cant Read [ /etc/named.conf ]
5.6.40
apache
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-tgtd /
[ HOME SHELL ]
Name
Size
Permission
Action
images
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
CHANGELOG
127
B
-rw-r--r--
atboot.cgi
658
B
-rwxr-xr-x
config
70
B
-rw-r--r--
config-Amazon-Linux-2-ALL
184
B
-rw-r--r--
config-CentOS-Linux-7.0-ALL
184
B
-rw-r--r--
config-Redhat-Enterprise-Linux...
184
B
-rw-r--r--
config-Scientific-Linux-7.0-AL...
184
B
-rw-r--r--
config-debian-linux
92
B
-rw-r--r--
config-redhat-linux
128
B
-rw-r--r--
config-syno-linux
70
B
-rw-r--r--
config.info
421
B
-rw-r--r--
config.info.ca
487
B
-rw-r--r--
config.info.ca.UTF-8
492
B
-rw-r--r--
config.info.de
504
B
-rw-r--r--
config.info.de.UTF-8
504
B
-rw-r--r--
config.info.no
465
B
-rw-r--r--
config.info.no.UTF-8
465
B
-rw-r--r--
delete_targets.cgi
927
B
-rwxr-xr-x
edit_manual.cgi
1
KB
-rwxr-xr-x
edit_target.cgi
5.36
KB
-rwxr-xr-x
index.cgi
2.7
KB
-rwxr-xr-x
install_check.pl
346
B
-rwxr-xr-x
iscsi-tgtd-lib.pl
11.61
KB
-rw-r--r--
log_parser.pl
457
B
-rwxr-xr-x
module.info
196
B
-rw-r--r--
module.info.ca
136
B
-rw-r--r--
module.info.ca.UTF-8
149
B
-rw-r--r--
module.info.de
123
B
-rw-r--r--
module.info.de.UTF-8
135
B
-rw-r--r--
restart.cgi
298
B
-rwxr-xr-x
save_manual.cgi
631
B
-rwxr-xr-x
save_target.cgi
4.42
KB
-rwxr-xr-x
start.cgi
275
B
-rwxr-xr-x
stop.cgi
250
B
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : edit_target.cgi
#!/usr/bin/perl # Show a form to edit or create a target use strict; use warnings; require './iscsi-tgtd-lib.pl'; our (%text, %in); &ReadParse(); my $conf = &get_tgtd_config(); # Get the target and show page header my $target; if ($in{'new'}) { &ui_print_header(undef, $text{'target_title1'}, ""); $target = { 'members' => [ ] }; } else { &ui_print_header(undef, $text{'target_title2'}, ""); ($target) = grep { $_->{'value'} eq $in{'name'} } &find($conf, "target"); $target || &error($text{'target_egone'}); } print &ui_form_start("save_target.cgi", "post"); print &ui_hidden("new", $in{'new'}); print &ui_hidden("oldname", $in{'name'}); print &ui_table_start($text{'target_header'}, undef, 4); # Target name my ($host, $tname); if ($in{'new'}) { $host = &find_host_name($conf) || &generate_host_name(); $tname = ""; } else { ($host, $tname) = split(/:/, $target->{'value'}); } print &ui_table_row($text{'target_name'}, "<tt>".$host.":</tt>".&ui_textbox("name", $tname, 30)); # Logical units it contains my @luns = (&find($target->{'members'}, "backing-store"), &find($target->{'members'}, "direct-store")); @luns = sort { $a->{'file'} <=> $b->{'file'} } @luns; push(@luns, { 'name' => 'backing-store', 'value' => '', 'values' => [] }); for(my $i=0; $i<@luns; $i++) { my $path = $luns[$i]->{'values'}->[0] || ""; my @opts; # Start with option for no device my $none_found = 0; if ($i > 0) { push(@opts, [ 'none', $text{'target_none'} ]); $none_found = 1 if (!$path); } # Add regular partitions my $part_found = 0; my $sel = &fdisk::partition_select("part".$i, $path, 0, \$part_found); push(@opts, [ 'part', $text{'target_part'}, $sel ]); # Then add RAID devices my $rconf = &raid::get_raidtab(); my @ropts; my $raid_found = 0; foreach my $c (@$rconf) { if ($c->{'active'}) { push(@ropts, [ $c->{'value'}, &text('target_md', substr($c->{'value'}, -1)) ]); $raid_found = 1 if ($path eq $c->{'value'}); } } if (@ropts) { push(@opts, [ 'raid', $text{'target_raid'}, &ui_select("raid".$i, $path, \@ropts) ]); } # Then add LVM logical volumes my @vgs = sort { $a->{'name'} cmp $b->{'name'} } &lvm::list_volume_groups(); my @lvs; foreach my $v (@vgs) { push(@lvs, sort { $a->{'name'} cmp $b->{'name'} } &lvm::list_logical_volumes($v->{'name'})); } my @lopts; my $lvm_found = 0; foreach my $l (@lvs) { push(@lopts, [ $l->{'device'}, &text('target_lv', $l->{'vg'}, $l->{'name'}) ]); $lvm_found = 1 if (&same_file($path, $l->{'device'})); } if (@lopts) { push(@opts, [ 'lvm', $text{'target_lvm'}, &ui_select("lvm".$i, $path, \@lopts) ]); } # Then add other file mode my $mode = $part_found ? 'part' : $raid_found ? 'raid' : $none_found ? 'none' : $lvm_found ? 'lvm' : 'other'; push(@opts, [ 'other', $text{'target_other'}, &ui_textbox("other".$i, $mode eq 'other' ? $path : "", 50). " ".&file_chooser_button("other") ]); # Options for this lun my @grid; my $cache = &find_value($luns[$i], "write-cache"); push(@grid, "<b>$text{'target_type'}</b>", &ui_select("type".$i, $luns[$i]->{'name'}, [ [ 'backing-store', $text{'target_backing'} ], [ 'direct-store', $text{'target_direct'} ] ])); push(@grid, "<b>$text{'target_cache'}</b>", &ui_radio("cache".$i, $cache, [ [ "on", $text{'yes'} ], [ "off", $text{'no'} ], [ "", $text{'default'} ] ])); print &ui_table_row(&text('target_lun', $i+1), &ui_radio_table("mode".$i, $mode, \@opts)."\n". &ui_grid_table(\@grid, 2), 3); } print &ui_table_hr(); # Incoming user(s) my @iusers = &find_value($target, "incominguser"); my $utable = &ui_columns_start([ $text{'target_uname'}, $text{'target_upass'}, ]); my $i = 0; foreach my $u (@iusers, "", "") { my ($uname, $upass) = split(/\s+/, $u); $utable .= &ui_columns_row([ &ui_textbox("uname_$i", $uname, 30), &ui_textbox("upass_$i", $upass, 20), ]); $i++; } $utable .= &ui_columns_end(); print &ui_table_row($text{'target_iuser'}, &ui_radio("iuser_def", @iusers ? 0 : 1, [ [ 1, $text{'target_iuserall'} ], [ 0, $text{'target_iuserbelow'} ] ])."<br>\n". $utable, 3); # Outgoing user my $u = &find_value($target, "outgoinguser"); my ($uname, $upass) = $u ? split(/\s+/, $u) : ( ); print &ui_table_row($text{'target_ouser'}, &ui_radio("ouser_def", $u ? 0 : 1, [ [ 1, $text{'target_ousernone'}."<br>" ], [ 0, $text{'target_ousername'} ] ])." ". &ui_textbox("ouser", $uname, 20)." ". $text{'target_ouserpass'}." ". &ui_textbox("opass", $upass, 20), 3); print &ui_table_hr(); # Allowed initiator address my @a = &find_value($target, "initiator-address"); print &ui_table_row($text{'target_iaddress'}, &ui_radio("iaddress_def", @a ? 0 : 1, [ [ 1, $text{'target_iall'} ], [ 0, $text{'target_ibelow'} ] ])."<br>\n". &ui_textarea("iaddress", join("\n", @a), 3, 20)); # Allowed initiator name my @n = &find_value($target, "initiator-name"); print &ui_table_row($text{'target_iname'}, &ui_radio("iname_def", @n ? 0 : 1, [ [ 1, $text{'target_iall'} ], [ 0, $text{'target_ibelow'} ] ])."<br>\n". &ui_textarea("iname", join("\n", @n), 3, 20)); print &ui_table_end(); if ($in{'new'}) { print &ui_form_end([ [ undef, $text{'create'} ] ]); } else { print &ui_form_end([ [ undef, $text{'save'} ], [ 'delete', $text{'delete'} ] ]); } &ui_print_footer("", $text{'index_return'});
Close