Accessing a camera without permission, even if unsecured, is illegal under the Computer Fraud and Abuse Act (CFAA) in the US and similar laws globally. This knowledge is for defense, not offense.
The fact that thousands of cameras are discoverable via a simple Google search is not a failure of Google; it is a failure of basic security hygiene. Here is why this occurs: inurl view index shtml cctv better
Most cameras use port 80 or 8080. Changing this to a non-standard port makes it slightly harder for automated bots to find your device. Accessing a camera without permission, even if unsecured,
: The camera's local network address has been exposed to the open internet via a router without proper firewall rules. Common Variations Accessing a camera without permission