I am new in cyber security and a bit confused with scanning a website that exists in shared hosting. My question is: No matter what is vulnerability scanner I am using, if I give the scanner a domain name that is hosted in a shared hosting service, it means that if I perform a scan it's going to scan the server which includes other sites also, or just my domain name? If yes this sounds a bit illegal, since at the same time other websites' infrastructure is getting scanned without their permission. If I am not wrong the same applies to an open port scanner like nmap. If the client gives us the IP of his website, this means that in case it is a shared host, I am going to scan the whole server and not only his website. Is this correct?
Thank you in advance!!!