# Read a system file curl file:///etc/hostname
When using libcurl in code (C, PHP, Python, Ruby), set the CURLOPT_PROTOCOLS option: curl-url-file-3A-2F-2F-2F
Thus, running curl file:///etc/passwd would, on a vulnerable or misconfigured system, attempt to read the local password file. The decoded form of our keyword command would be: # Read a system file curl file:///etc/hostname When