encrypting the stderr of console+socket redirection
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi there people. I'm trying to redirect the stderr of a process let's say cmd.exe to a raw socket. I have completed this task by setting the sterr parameter = my socket handle. I was looking for a function that can take this handle and encrypt the stderr before sending it to the socket. I could use CreateFile for exampe in order to cache the data to a file and encrypt it here but it's a bad ugly solution. In fact I was looking something like CreateBuffer or CreateByte array or MemoryStream of C#. In other words an intermediate function with a HANDLE input that can return the bytes or something in order to encrypt them. Thanx