I have a question, refer to the code snippet below which runs on python,
process = subprocess.Popen( [r'path\WinSCP.com', '/ini=nul', '/command', 'open ftp://user:password@host', 'get something.txt', 'exit'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) for line in iter(process.stdout.readline, b''): print(line.decode().rstrip())
Let's say if it doesn't work, how should I approach for this kind of password?
I tried to include the password as mentioned but seems like it failed to connect and proceed to timeout.
Hope to get some help here.