• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Recent content by lo0ney

  1. L

    C/C++/C# Console Redirection with Sockets - Win32

    I can set cmd restrictions and filters later, but for now its just for testing purposes. And I am using TCP sockets, but could i not just use the source posted by Oliver FF to do this? I have the source (first post) basically as my server, and then i have a client which connects to the server.
  2. L

    C/C++/C# Console Redirection with Sockets - Win32

    Any command that can be executed in cmd.exe. For example: "dir", "ipconfig", "cd C:\" I have an edit box on the client where the user will type a command to be executed 'remotely' from the server, which launced cmd.exe, then returns the output of the command back to the client.
  3. L

    C/C++ CreateProcess Problem

    Hey, I'm trying to figure out a problem with CreateProcess. CreateProcess seems to no longer launch cmd.exe and GetLastError returns no error (0). Heres the snippet: STARTUPINFO si; PROCESS_INFORMATION pi; SOCKET sClient = (SOCKET)lpParam; memset(&si, 0...
  4. L

    C/C++/C# Console Redirection with Sockets - Win32

    Well im using C and im trying to send commands to cmd.exe remotely. IE: Client/Server So i would need the client to send commands to the server which would then pass the cmd to cmd.exe then return output to the client
  5. L

    C/C++/C# Console Redirection with Sockets - Win32

    Could you please explain how i would use the send and recv functions in order to send commands to cmd.exe and how to retrieve output? Thanks alot! Lo0ney
Top