Serial port #192
-
Hi, I have a few questions about how the serial port works if that is okay, specifically when HyperDbg is run inside of a VMWare Workstation Pro machine and the control module is run in userspace on the host. Is |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi, Yes, you've got it right. HyperDbg initializes the serial port from user mode and later uses That's why we initialize the serial port from user-mode, but after that, we use If I find time, I'll investigate how Windows initializes serial port in VMware workstation and update the initialization functions. If you figure out the problem, please let us know. |
Beta Was this translation helpful? Give feedback.
-
Also, one thing that is worth to be mentioned is that if we map the VMware to a physical COM port, again, it works perfectly. The problem arises when mapping VMware to a named pipe.
Well, we tested the below projects. The source code is available here: Also, we tested this code, but it still didn't work on the scenario as mentioned above, but it works on the physical machine. |
Beta Was this translation helpful? Give feedback.
Hi,
Thanks for creating this discussion.
Yes, you've got it right. HyperDbg initializes the serial port from user mode and later uses
KdHyperDbgSendByte
to send bytes from kernel-mode. We spent a lot of hours figuring out how to initialize the serial port correctly; while, our initialization works perfectly in the physical computer (we test it with a serial device), the same initialization doesn't work on the VMware workstation, and I don't know why!That's why we initialize the serial port from user-mode, but after that, we use
KdHyperDbgSendByte
in the kernel (VMX-root mode).If I find time, I'll investigate how Windows initializes serial port in VMware workstation and update the initia…