in reply to Expect.pm - FYI and question

A snippet from your original posting:

spawn id(3): Does `Connecting to <host_ip>...\r\nPassword: ' match: pattern #1: -ex `Password: '? No. Waiting for new data (4 seconds)... TIMEOUT

Note that the first line clearly shows Password: being followed by a single space, and the match section shows the expect pattern being followed by two spaces. Regardless of how many times you say "(two blanks at the end on purpose, because this is what the server spits out)", the debugging output clearly shows that this is not what the server is spitting out.


We're not surrounded, we're in a target-rich environment!