![]() |
|
[C] Simple TCP 'RAT' Using Winsock. - 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] Simple TCP 'RAT' Using Winsock. (/showthread.php?tid=6024219) |
Simple TCP 'RAT' Using Winsock. - TerminallyIll - Nov 11, 2019 Just started learning Winsock and I thought a RAT would be a nice project. The thing is the client does not execute commands like "dir" or "whoami" but will run commands that open processes such as Notepad. Take a look my code:TCP Client Help - Pastebin.com and please tell me what I'm doing wrong and how I can have this working as intended. Also any pointers on how I can add to this program's functionality would be greatly appreciated. 🤝 RE: Simple TCP 'RAT' Using Winsock. - YouthInAsia - Nov 12, 2019 send and recv don't garuntee to send the full amount also I doubt your command is 2048 bytes so..yah check for that RE: Simple TCP 'RAT' Using Winsock. - HFDone - Nov 12, 2019 you need to send cmd /c and the string command or in the client add it at the begining of cmd /C Carries out the command specified by string and then terminates so send cmd /c dir and it will work RE: Simple TCP 'RAT' Using Winsock. - ModernJS - Nov 12, 2019 I'd say learn C, dump windows, lean mirai source code and see you on the dark side of moon RE: Simple TCP 'RAT' Using Winsock. - YouthInAsia - Nov 12, 2019 (Nov 12, 2019 11:57 AM)ModernJS Wrote: I'd say learn C, dump windows, lean mirai source code and see you on the dark side of moon Mirai is the most retarded shit ever written. Dump windows? Why? Because it has a better networking model than select/epoll? You're dense RE: Simple TCP 'RAT' Using Winsock. - ModernJS - Nov 16, 2019 (Nov 12, 2019 07:05 PM)YouthInAsia Wrote: Mirai is the most retarded Clay Davis ever written. Dump windows? Why? Because it has a better networking model than select/epoll? You're dense I'm biased yes. But there's no point in messing and understanding private closed source libraries from microsoft. I love open source. Just my 2 cents. You maybe right. RE: Simple TCP 'RAT' Using Winsock. - incognito04 - Nov 16, 2019 Instead of using send and recv to return and run commands use redirected handles. Firstly create your socket using WSASocket. Finally create a command prompt process and redirect it's input, output and stderr to the handle. |