The intitle:index of operator isn’t illegal by itself — it’s a tool. You can use it for legitimate purposes:

tells Google to look for pages with a specific word in the HTML title.

Open directories are rarely maintained. Hackers easily upload malicious files disguised as Furious7.mp4.exe or hidden scripts. One download could infect your device with ransomware, spyware, or trojans.