Author brent saner
Recipients brent saner
Date 2017-05-14.04:05:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1494734740.65.0.654665602133.issue30360@psf.upfronthosting.co.za>
In-reply-to
Content
This is reproducible on both 2.7.13 and 3.6.1.

Please refer to the attached files for demonstration. It seems that when I spawn a python script using getpass.getpass() from expect (http://expect.sourceforge.net/ - I'm using version 5.45), the input is not passed. Further, it seems interactive control is handed over to the shell- however, it doesn't actually pass anything to the python script that was spawned, forcing one to break out of the expect process itself.

Obviously, the proofs attached require the expect binary to be installed. To test, simply mark "poc.exp" as executable and execute it (assuming poc.py is in the same directory. If not, you'll need to edit line 4 of poc.exp).
History
Date User Action Args
2017-05-14 04:05:40brent sanersetrecipients: + brent saner
2017-05-14 04:05:40brent sanersetmessageid: <1494734740.65.0.654665602133.issue30360@psf.upfronthosting.co.za>
2017-05-14 04:05:40brent sanerlinkissue30360 messages
2017-05-14 04:05:39brent sanercreate