console io channel question....

hi everybody . i want take io channel but how ? i want send command to shellexecute(cmd.exe) or system function and then send the result of them to socket ! tnx alot
making a simple trojan...
First create a FILE variable and initialize it with popen. (for windows, use _popen). And use system function to send command to cmd. All result will be written to file which you have opened with popen. And get data from file.
But don't make a trojan :)
:)) just testing :D ok but i dont want use file ! i can use freopen and send console io channel to a file but i want get directly console io channel please tell me how :D tnx my friend. its connect-back :D
of course its a nice function tnx ;)
its type is "file" but is is a "virtual" file. So it doesn't write to harddisc. A virtual file...
ok tnx :D
Topic archived. No new replies allowed.