2
Okay, so I have a hardware device that I have to connect to using putty. The device is protected by a 4 digit password. So I know there are 10,000 combinations and I know the device takes 5 seconds between each wrong password. So it'll take approx. 13 hours to complete.
TL;DR
How can I enter every combination into a putty window? I was thinking like a macro of some sort. Because the device I'm connecting to is like a hyper-terminal vt100 connection.
Update: When I connect to the device, I can interface with some things. But when I press 'E' to edit the MAP on the device. it tells me to enter the 4 digit password.
I don't know the answer, but: PuTTY suggests Windows, and Windows supports other freeware SSH clients as well. Such as Cygwin, which opens up a world of scripting. Any reason why you specifically want PuTTY? – Arjan – 2010-09-11T19:14:23.053
It's the only way I know how to connect to this device :-(
It uses HyperTerminal or a VT100 emulator. – Kelbizzle – 2010-09-11T20:00:50.457
Ok, so not necessarily PuTTY then. What about some other emulator that allows for scripting itself? Or, in the old days, many terminal programs allowed for reading a file with commands, to set the connection details et al, or to fetch data. Such command files might not allow for true scripting (such as writing loops). But generating a single (but huge) command file with all 10,000 possibilities might be much easier than trying to script PuTTY? – Arjan – 2010-09-11T20:51:20.577
Aha, your question actually mentioned that VT100; I totally missed that, and so did others given the answers. When people see PuTTY, they think SSH, I guess. Why not remove PuTTY from the question...? – Arjan – 2010-09-11T20:54:27.563
1
Yea, that makes sense. I went the single huge file route using autohotkey http://pastebin.ca/1938488
– Kelbizzle – 2010-09-11T22:16:13.940