3260 - iSCSI
Automation
I have a script that automates this process which can be found on my pentestpackage github. direct link here https://github.com/leonteale/pentestpackage/blob/master/Utilities/auto-iscsi.sh
Discovery
This command initiates the iSCSI discovery process for the specified IP address, allowing the system to find and list available iSCSI targets on that address.
sudo iscsiadm -m discovery -t st -p <IP>Login
sudo iscsiadm --mode node --targetname iqn.2004-04.com.qnap:ts-453bu:iscsi.berwinsveeam.3914ef --portal 172.20.0.165 --loginThen check dmesg to see where the iscsi was mounted to
dmesgMount
mkdir /tmp/temp
mount /dev/sdb2 /tmp/temp
cd /tmp/temp
lsLogout
sudo iscsiadm --mode node --targetname iqn.2004-04.com.qnap:tvs-873:iscsi.hdd.5057c2 --portal 10.0.1.29 --logoutLast updated
Was this helpful?