I need to read the remote file content using python but here I am facing some challenges. My code is below:
import subprocess
path = 'http://securityxploded.com/remote-file-inclusion.php'
subprocess.Popen(["rsync", host-ip+path],stdout=subprocess.PIPE)
for line in ssh.stdout:
line
Here I am getting the error NameError: name 'host' is not defined
. I could not know what should be the host-ip
value because I am running my Python file using terminal(python sub.py
). Here I need to read the content of the http://securityxploded.com/remote-file-inclusion.php
remote file.