Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Apache
: 172.26.7.228 | : 3.145.152.49
Cant Read [ /etc/named.conf ]
5.6.40-24+ubuntu18.04.1+deb.sury.org+1
www-data
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
sbin /
[ HOME SHELL ]
Name
Size
Permission
Action
acpi_available
112
B
-rwxr-xr-x
agetty
55.23
KB
-rwxr-xr-x
apm_available
81
B
-rwxr-xr-x
apparmor_parser
1.41
MB
-rwxr-xr-x
badblocks
26.01
KB
-rwxr-xr-x
blkdeactivate
14.49
KB
-rwxr-xr-x
blkdiscard
26.08
KB
-rwxr-xr-x
blkid
86.11
KB
-rwxr-xr-x
blockdev
38.07
KB
-rwxr-xr-x
bridge
86.16
KB
-rwxr-xr-x
capsh
17.99
KB
-rwxr-xr-x
cfdisk
94.44
KB
-rwxr-xr-x
cgdisk
182.17
KB
-rwxr-xr-x
chcpu
22.07
KB
-rwxr-xr-x
cryptdisks_start
1.11
KB
-rwxr-xr-x
cryptdisks_stop
1.16
KB
-rwxr-xr-x
cryptsetup
86.23
KB
-rwxr-xr-x
cryptsetup-reencrypt
80.96
KB
-rwxr-xr-x
ctrlaltdel
18.07
KB
-rwxr-xr-x
debugfs
217.47
KB
-rwxr-xr-x
depmod
146.18
KB
-rwxr-xr-x
devlink
78.16
KB
-rwxr-xr-x
dhclient
488.42
KB
-rwxr-xr-x
dhclient-script
15.25
KB
-rwxr-xr-x
dmeventd
46.08
KB
-rwxr-xr-x
dmsetup
158.8
KB
-rwxr-xr-x
dmstats
158.8
KB
-rwxr-xr-x
dosfsck
58.08
KB
-rwxr-xr-x
dosfslabel
54.08
KB
-rwxr-xr-x
dumpe2fs
26.08
KB
-rwxr-xr-x
e2fsck
306.72
KB
-rwxr-xr-x
e2image
34.08
KB
-rwxr-xr-x
e2label
102.25
KB
-rwxr-xr-x
e2undo
18.07
KB
-rwxr-xr-x
ebtables
5.99
KB
-rwxr-xr-x
ebtables-restore
9.99
KB
-rwxr-xr-x
ebtables-save
1.63
KB
-rwxr-xr-x
ethtool
338.9
KB
-rwxr-xr-x
fatlabel
54.08
KB
-rwxr-xr-x
fdisk
122.13
KB
-rwxr-xr-x
findfs
10.07
KB
-rwxr-xr-x
fixparts
62.17
KB
-rwxr-xr-x
fsadm
23.5
KB
-rwxr-xr-x
fsck
46.13
KB
-rwxr-xr-x
fsck.cramfs
34.11
KB
-rwxr-xr-x
fsck.ext2
306.72
KB
-rwxr-xr-x
fsck.ext3
306.72
KB
-rwxr-xr-x
fsck.ext4
306.72
KB
-rwxr-xr-x
fsck.fat
58.08
KB
-rwxr-xr-x
fsck.minix
90.1
KB
-rwxr-xr-x
fsck.msdos
58.08
KB
-rwxr-xr-x
fsck.vfat
58.08
KB
-rwxr-xr-x
fsck.xfs
433
B
-rwxr-xr-x
fsfreeze
10.07
KB
-rwxr-xr-x
fstab-decode
5.99
KB
-rwxr-xr-x
fstrim
42.08
KB
-rwxr-xr-x
gdisk
190.17
KB
-rwxr-xr-x
getcap
9.99
KB
-rwxr-xr-x
getpcaps
9.99
KB
-rwxr-xr-x
getty
55.23
KB
-rwxr-xr-x
halt
178.08
KB
-rwxr-xr-x
hdparm
128.18
KB
-rwxr-xr-x
hwclock
58.19
KB
-rwxr-xr-x
ifconfig
77.11
KB
-rwxr-xr-x
init
1.54
MB
-rwxr-xr-x
insmod
146.18
KB
-rwxr-xr-x
installkernel
2.58
KB
-rwxr-xr-x
integritysetup
39.66
KB
-rwxr-xr-x
ip
545.12
KB
-rwxr-xr-x
ip6tables
92.74
KB
-rwxr-xr-x
ip6tables-restore
92.74
KB
-rwxr-xr-x
ip6tables-save
92.74
KB
-rwxr-xr-x
ipmaddr
17.99
KB
-rwxr-xr-x
iptables
92.74
KB
-rwxr-xr-x
iptables-restore
92.74
KB
-rwxr-xr-x
iptables-save
92.74
KB
-rwxr-xr-x
iptunnel
21.99
KB
-rwxr-xr-x
iscsi-iname
9.99
KB
-rwxr-xr-x
iscsi_discovery
5.16
KB
-rwxr-xr-x
iscsiadm
381.95
KB
-rwxr-xr-x
iscsid
398.15
KB
-rwxr-xr-x
iscsistart
354.13
KB
-rwxr-xr-x
isosize
22.08
KB
-rwxr-xr-x
kbdrate
9.99
KB
-rwxr-xr-x
killall5
22.08
KB
-rwxr-xr-x
ldconfig
387
B
-rwxr-xr-x
ldconfig.real
1001.67
KB
-rwxr-xr-x
logsave
10
KB
-rwxr-xr-x
losetup
82.19
KB
-rwxr-xr-x
lsmod
146.18
KB
-rwxr-xr-x
lvchange
2.42
MB
-rwxr-xr-x
lvconvert
2.42
MB
-rwxr-xr-x
lvcreate
2.42
MB
-rwxr-xr-x
lvdisplay
2.42
MB
-rwxr-xr-x
lvextend
2.42
MB
-rwxr-xr-x
lvm
2.42
MB
-rwxr-xr-x
lvmconf
12.55
KB
-rwxr-xr-x
lvmconfig
2.42
MB
-rwxr-xr-x
lvmdiskscan
2.42
MB
-rwxr-xr-x
lvmdump
10.07
KB
-rwxr-xr-x
lvmetad
82.13
KB
-rwxr-xr-x
lvmpolld
70.45
KB
-rwxr-xr-x
lvmsadc
2.42
MB
-rwxr-xr-x
lvmsar
2.42
MB
-rwxr-xr-x
lvreduce
2.42
MB
-rwxr-xr-x
lvremove
2.42
MB
-rwxr-xr-x
lvrename
2.42
MB
-rwxr-xr-x
lvresize
2.42
MB
-rwxr-xr-x
lvs
2.42
MB
-rwxr-xr-x
lvscan
2.42
MB
-rwxr-xr-x
mdadm
577.37
KB
-rwxr-xr-x
mdmon
321.21
KB
-rwxr-xr-x
mii-tool
18.46
KB
-rwxr-xr-x
mkdosfs
34.5
KB
-rwxr-xr-x
mke2fs
126.31
KB
-rwxr-xr-x
mkfs
10.07
KB
-rwxr-xr-x
mkfs.bfs
30.08
KB
-rwxr-xr-x
mkfs.cramfs
34.01
KB
-rwxr-xr-x
mkfs.ext2
126.31
KB
-rwxr-xr-x
mkfs.ext3
126.31
KB
-rwxr-xr-x
mkfs.ext4
126.31
KB
-rwxr-xr-x
mkfs.fat
34.5
KB
-rwxr-xr-x
mkfs.minix
78.09
KB
-rwxr-xr-x
mkfs.msdos
34.5
KB
-rwxr-xr-x
mkfs.ntfs
78.11
KB
-rwxr-xr-x
mkfs.vfat
34.5
KB
-rwxr-xr-x
mkfs.xfs
423.52
KB
-rwxr-xr-x
mkhomedir_helper
18.02
KB
-rwxr-xr-x
mkntfs
78.11
KB
-rwxr-xr-x
mkswap
78.08
KB
-rwxr-xr-x
modinfo
146.18
KB
-rwxr-xr-x
modprobe
146.18
KB
-rwxr-xr-x
mount.fuse
9.99
KB
-rwxr-xr-x
mount.lowntfs-3g
106.67
KB
-rwxr-xr-x
mount.ntfs
142.7
KB
-rwxr-xr-x
mount.ntfs-3g
142.7
KB
-rwxr-xr-x
mount.vmhgfs
42.16
KB
-rwxr-xr-x
nameif
14.14
KB
-rwxr-xr-x
ntfsclone
54.12
KB
-rwxr-xr-x
ntfscp
34.1
KB
-rwxr-xr-x
ntfslabel
26.1
KB
-rwxr-xr-x
ntfsresize
70.12
KB
-rwxr-xr-x
ntfsundelete
50.1
KB
-rwxr-xr-x
on_ac_power
2.16
KB
-rwxr-xr-x
pam_extrausers_chkpwd
34
KB
-rwxr-sr-x
pam_extrausers_update
34
KB
-rwxr-xr-x
pam_tally
10.01
KB
-rwxr-xr-x
pam_tally2
14.01
KB
-rwxr-xr-x
parted
78.09
KB
-rwxr-xr-x
partprobe
10.07
KB
-rwxr-xr-x
pivot_root
10.07
KB
-rwxr-xr-x
plipconfig
10
KB
-rwxr-xr-x
plymouthd
86.25
KB
-rwxr-xr-x
poweroff
178.08
KB
-rwxr-xr-x
pvchange
2.42
MB
-rwxr-xr-x
pvck
2.42
MB
-rwxr-xr-x
pvcreate
2.42
MB
-rwxr-xr-x
pvdisplay
2.42
MB
-rwxr-xr-x
pvmove
2.42
MB
-rwxr-xr-x
pvremove
2.42
MB
-rwxr-xr-x
pvresize
2.42
MB
-rwxr-xr-x
pvs
2.42
MB
-rwxr-xr-x
pvscan
2.42
MB
-rwxr-xr-x
rarp
32.45
KB
-rwxr-xr-x
raw
14.07
KB
-rwxr-xr-x
reboot
178.08
KB
-rwxr-xr-x
resize2fs
58.07
KB
-rwxr-xr-x
rmmod
146.18
KB
-rwxr-xr-x
route
64.3
KB
-rwxr-xr-x
rtacct
40.13
KB
-rwxr-xr-x
rtmon
50
KB
-rwxr-xr-x
runlevel
178.08
KB
-rwxr-xr-x
runuser
42.07
KB
-rwxr-xr-x
setcap
9.99
KB
-rwxr-xr-x
setvtrgb
14.13
KB
-rwxr-xr-x
sfdisk
106.08
KB
-rwxr-xr-x
sgdisk
174.17
KB
-rwxr-xr-x
shadowconfig
885
B
-rwxr-xr-x
shutdown
178.08
KB
-rwxr-xr-x
slattach
40.45
KB
-rwxr-xr-x
start-stop-daemon
35.1
KB
-rwxr-xr-x
sulogin
46.08
KB
-rwxr-xr-x
swaplabel
14.07
KB
-rwxr-xr-x
swapoff
18.07
KB
-rwxr-xr-x
swapon
46.08
KB
-rwxr-xr-x
switch_root
14.07
KB
-rwxr-xr-x
sysctl
22.07
KB
-rwxr-xr-x
tc
453.79
KB
-rwxr-xr-x
telinit
178.08
KB
-rwxr-xr-x
tipc
53.99
KB
-rwxr-xr-x
tune2fs
102.25
KB
-rwxr-xr-x
udevadm
574.4
KB
-rwxr-xr-x
unix_chkpwd
34
KB
-rwxr-sr-x
unix_update
34
KB
-rwxr-xr-x
ureadahead
34.34
KB
-rwxr-xr-x
veritysetup
35.45
KB
-rwxr-xr-x
vgcfgbackup
2.42
MB
-rwxr-xr-x
vgcfgrestore
2.42
MB
-rwxr-xr-x
vgchange
2.42
MB
-rwxr-xr-x
vgck
2.42
MB
-rwxr-xr-x
vgconvert
2.42
MB
-rwxr-xr-x
vgcreate
2.42
MB
-rwxr-xr-x
vgdisplay
2.42
MB
-rwxr-xr-x
vgexport
2.42
MB
-rwxr-xr-x
vgextend
2.42
MB
-rwxr-xr-x
vgimport
2.42
MB
-rwxr-xr-x
vgimportclone
2.42
MB
-rwxr-xr-x
vgmerge
2.42
MB
-rwxr-xr-x
vgmknodes
2.42
MB
-rwxr-xr-x
vgreduce
2.42
MB
-rwxr-xr-x
vgremove
2.42
MB
-rwxr-xr-x
vgrename
2.42
MB
-rwxr-xr-x
vgs
2.42
MB
-rwxr-xr-x
vgscan
2.42
MB
-rwxr-xr-x
vgsplit
2.42
MB
-rwxr-xr-x
wipefs
38.08
KB
-rwxr-xr-x
xfs_repair
631.16
KB
-rwxr-xr-x
xtables-multi
92.74
KB
-rwxr-xr-x
zramctl
90.19
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : iscsi_discovery
#!/bin/bash # # Copyright (C) Voltaire Ltd. 2006. ALL RIGHTS RESERVED. # # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more # details. # # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # # Author: Dan Bar Dov <danb@voltaire.com> # iscsi_discovery: # * does a send-targets discovery to the given IP # * set the transport type to the preferred transport (or tcp is -t flag is not used) # * tries to login # * if succeeds, # o logout, # o mark record autmatic (unless -m flag is used) # * else # o reset transport type to TCP # o try to login # o if succeeded # + logout # + mark record automatic (unless -m flag is used) # usage() { echo "Usage: $0 <IP> [-p <port>] [-d] [-t <tcp|iser> [-f]] [-m] [-l]" echo "Options:" echo "-p set the port number (defualt is 3260)." echo "-d print debugging information" echo "-t set transport (default is tcp)." echo "-f force specific transport -disable the fallback to tcp (default is fallback enabled)." echo " force the transport specified by the argument of the -t flag." echo "-m manual startup - will set manual startup (default is automatic startup)." echo "-l login to the new discovered nodes (defualt is false)." } dbg() { $debug && echo $@ } initialize() { trap "exit" 2 debug=false force="0" log_out="1" startup_manual="0" #set defualt transport to tcp transport=tcp #set defualt port to 3260 port=3260; } parse_cmdline() { if [ $# -lt 1 ]; then usage exit 1 fi # check if the IP address is valid ip=`echo $1 | awk -F'.' '$1 != "" && $1 <=255 && $2 != "" && $2 <= 255 && $3 != "" && $3 <= 255 && $4 != "" && $4 <= 255 {print $0}'` if [ -z "$ip" ]; then echo "$1 is not a vaild IP address!" exit 1 fi shift while getopts "dfmlt:p:" options; do case $options in d ) debug=true;; f ) force="1";; t ) transport=$OPTARG;; p ) port=$OPTARG;; m ) startup_manual="1";; l ) log_out=0;; \? ) usage exit 1;; * ) usage exit 1;; esac done } discover() { # If open-iscsi is already logged in to the portal, exit if [ $(iscsiadm -m session | grep -c ${ip}:${port}) -ne 0 ]; then echo "Please logout from all targets on ${ip}:${port} before trying to run discovery on that portal" exit 2 fi connected=0 discovered=0 dbg "starting discovery to $ip" disc="$(iscsiadm -m discovery --type sendtargets --portal ${ip}:${port})" echo "${disc}" | while read portal target do portal=${portal%,*} select_transport done discovered=$(echo "${disc}" | wc -l) if [ ${discovered} = 0 ]; then echo "failed to discover targets at ${ip}" exit 2 else echo "discovered ${discovered} targets at ${ip}" fi } try_login() { if [ "$startup_manual" != "1" ]; then iscsiadm -m node --targetname ${target} --portal ${portal} --op update -n node.conn[0].startup -v automatic fi iscsiadm -m node --targetname ${target} --portal ${portal} --login >/dev/null 2>&1 ret=$? if [ ${ret} = 0 ]; then echo "Set target ${target} to automatic login over ${transport} to portal ${portal}" ((connected++)) if [ "$log_out" = "1" ]; then iscsiadm -m node --targetname ${target} --portal ${portal} --logout fi else echo "Cannot login over ${transport} to portal ${portal}" iscsiadm -m node --targetname ${target} --portal ${portal} --op update -n node.conn[0].startup -v manual fi return ${ret} } set_transport() { transport=$1 case "$transport" in iser) # iSER does not use digest iscsiadm -m node --targetname ${target} --portal ${portal} \ --op update -n node.conn[0].iscsi.HeaderDigest -v None iscsiadm -m node --targetname ${target} --portal ${portal} \ --op update -n node.conn[0].iscsi.DataDigest -v None ;; cxgb3i) # cxgb3i supports <= 16K packet (BHS + AHS + pdu payload + digests) iscsiadm -m node --targetname ${target} --portal ${portal} \ --op update -n node.conn[0].iscsi.MaxRecvDataSegmentLength \ -v 8192 ;; esac transport_name=`iscsiadm -m node -p ${portal} -T ${target} |awk '/transport_name/ {print $1}'` iscsiadm -m node --targetname ${target} --portal ${portal} \ --op update -n ${transport_name} -v ${transport} } select_transport() { set_transport $transport dbg "Testing $transport-login to target ${target} portal ${portal}" try_login; if [ $? != 0 -a "$force" = "0" ]; then set_transport tcp dbg "starting to test tcp-login to target ${target} portal ${portal}" try_login; fi } check_iscsid() { #check if iscsid is running pidof iscsid &>/dev/null ret=$? if [ $ret -ne 0 ]; then echo "iscsid is not running" echo "Exiting..." exit 1 fi } check_iscsid initialize parse_cmdline "$@" discover
Close