![]() |
|
[C#] Remote CMD shell - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C#] Remote CMD shell (/showthread.php?tid=5665554) |
Remote CMD shell - Kisame - Jul 9, 2017 Hello, I'm coding my own RAT/shell, and so far it includes a real time keylogger, retrieve PC name and a command to retrieve all filenames from the desktop. I now want to add another command, which would open a hidden CMD session on the clients side, to which I can send commands from the serverside. I've tried some things and searched around, but the only thing I can find is how to send a single command to the clients CMD. I want to open a CMD Windows and view the input/output remotely. I'm still kind of a noob @ C#, so I guess many will think something like 'find out yourself' or w/e. I understand that, and I'm not trying to beg here for someone to code it for me. But I'd like maybe some hints because I've no idea where to start to create this function. Thanks in advance for any kind of help! * - corexev - Jul 9, 2017 Use 'ConsoleAppLauncher' from the NuGet package manager: You can create a class that stores the console output. PHP Code * - Kisame - Jul 9, 2017 (Jul 9, 2017 12:35 PM)corexev Wrote: Use 'ConsoleAppLauncher' from the NuGet package manager: I'm gonna give it a try. Thanks for your answer, anyway! Looks good :) Is it possible to open this in a new window? So the custom shell (my program, not CMD) stays open aswell? I can't seem to get it to work. http://prntscr.com/ftldye Any ideas? * - corexev - Jul 9, 2017 (Jul 9, 2017 12:38 PM)Kisame Wrote: I'm gonna give it a try. Thanks for your answer, anyway! Looks good :)Use this as the class: PHP Code PHP Code Here's an updated example for you: PHP Code * - Kisame - Jul 9, 2017 Thanks for the help, I appreciate it! |