Is Expect available at all for Windows? If not, is there any way to
build it on Windows? I am almost certain that Activestate used to have
it in their Tcl version at one point so it seems technically possible.
On 7/3/2025 10:35 AM, saito wrote:
Is Expect available at all for Windows? If not, is there any way to
build it on Windows? I am almost certain that Activestate used to
have it in their Tcl version at one point so it seems technically
possible.
It won't build 64-bit due to forced executable code that doesn't have an equivalent for 64. It's evil anyways and triggers security problems on protected system executables. IOW, E4W behaves like a virus. It needs
to be reworked to replace the debugger method to use something called Detours.
https://github.com/microsoft/Detours
https://github.com/davygrvy/expect4win
https://github.com/davygrvy/expect4win/ blob/47859c05d05c6c624517dac1552316d448e864b4/win/ expWinConsoleDebugger.hpp#L208
The evil stuff starts here:
https://github.com/davygrvy/expect4win/ blob/47859c05d05c6c624517dac1552316d448e864b4/win/ expWinConsoleDebugger.cpp#L662
All the breakpoints should be detours instead that would end-up doing
the same. It can be done by something with some code Fu. This isn't me anymore. Maybe one day when I relearn how to code. It is on my list.
Dear David,
thanks for the great answer.
Is expect a candidate for the orphaned repository?
Ashok already works 25 hours per day on Tcl, but this might be
interesting for him. Are you ready to support?
according to the template
It won't build 64-bit due to forced executable code that doesn't have an equivalent for 64. It's evil anyways and triggers security problems on protected system executables. IOW, E4W behaves like a virus. It needs
to be reworked to replace the debugger method to use something called Detours.
All the breakpoints should be detours instead that would end-up doing
the same. It can be done by something with some code Fu. This isn't me anymore. Maybe one day when I relearn how to code. It is on my list.
On 8/10/2025 9:39 PM, David Gravereaux wrote:
It won't build 64-bit due to forced executable code that doesn't have an
equivalent for 64. It's evil anyways and triggers security problems on
protected system executables. IOW, E4W behaves like a virus. It needs
Hi,
I had seen your name mentioned in AS documents pertaining to Expect. I
am glad you are working on a new version. If it builds for 32bit, that
is fine. I am confused though: is it in a finished or usable state now?
I saw your later comments laying out some of the future work which added
to my confusion.
I had seen your name mentioned in AS documents pertaining to Expect. I
am glad you are working on a new version. If it builds for 32bit, that
is fine. I am confused though: is it in a finished or usable state now?
I saw your later comments laying out some of the future work which added
to my confusion.
On 8/12/2025 1:33 PM, saito wrote:
What is on my github is the old original code from about 2003 plus fixes that AS maintained. It had worked on XP then. It does not work now.
I'm busy with other stuff, that isn't programming. I know what needs to
be done, but I'm not much of a coder these days due to health issues. I might get to it once I relearn C++. Use it or lose it is no joke.
The trampoline functions will be similar to the breakpoints (ConsoleDebugger::On*)
Harald,
Yes, E4W is orphaned. I don't have the focus. I see the forest, but
not the trees. Add the injector.dll to the spawned process with this.
All security issues are fixed using the Detours API. The trampoline functions will be similar to the breakpoints (ConsoleDebugger::On*)
https://github.com/microsoft/Detours/wiki/DetourCreateProcessWithDlls
On 8/13/2025 4:28 PM, David Gravereaux wrote:
Harald,
Yes, E4W is orphaned. I don't have the focus. I see the forest, but
not the trees. Add the injector.dll to the spawned process with this.
All security issues are fixed using the Detours API. The trampoline
functions will be similar to the breakpoints (ConsoleDebugger::On*)
https://github.com/microsoft/Detours/wiki/DetourCreateProcessWithDlls
Maybe, just maybe only replace CreateProcess with DetourCreateProcessWithDlls keeping DEBUG_PROCESS and not load any trampolines and keep doing things with the system debugger as is for the least modifying?
https://github.com/davygrvy/expect4win/ blob/47859c05d05c6c624517dac1552316d448e864b4/win/ expWinConsoleDebugger.cpp#L347
I also see that Jeff Hobbs turned on [interact]. I was scared. I
wonder if it works?
I will personally not invest in Expect for Windows.
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 1,064 |
Nodes: | 10 (0 / 10) |
Uptime: | 163:56:33 |
Calls: | 13,691 |
Calls today: | 1 |
Files: | 186,936 |
D/L today: |
9,208 files (2,741M bytes) |
Messages: | 2,411,516 |