Login Register




The stories and information posted here are artistic works of fiction and falsehood. Only a fool would take anything posted here as fact.


C++ RAT Coding? filter_list
Author
Message
C++ RAT Coding? #1
Hey all,

I've been learning C++ lately and I've been interested in coding a RAT and was wondering if there are any resources to point me in the direction so I can try to code my own.

Reply

RE: C++ RAT Coding? #2
Programming a RAT in C++ would be difficult. There aren't many resources for coding one in C++. The only tutorials I've ever seen have been in C#. Mainly because its easy to use networking features.

Reply

RE: C++ RAT Coding? #3
(11-02-2019, 12:10 AM)Drako Wrote: Programming a RAT in C++ would be difficult. There aren't many resources for coding one in C++. The only tutorials I've ever seen have been in C#. Mainly because its easy to use networking features.
Ahh, I was hoping to try and code a native RAT like you can do with miners. Is C# coding similar to C++ as it is in the same family I imagine it is.

Reply

RE: C++ RAT Coding? #4
(11-02-2019, 12:10 AM)Drako Wrote: Programming a RAT in C++ would be difficult. There aren't many resources for coding one in C++. The only tutorials I've ever seen have been in C#. Mainly because its easy to use networking features.

Just to add too, I use a MacBook mainly so Visual Studio won't allow me to do GUI and whatnot. I do have a Windows gaming PC in my office but I don't usually use it unless I'm livestreaming some games and stuff. My Mac also doesn't have the space available for a dual boot ugh.

Reply

RE: C++ RAT Coding? #5
(11-02-2019, 12:38 AM)Miles Wrote:
(11-02-2019, 12:10 AM)Drako Wrote: Programming a RAT in C++ would be difficult. There aren't many resources for coding one in C++. The only tutorials I've ever seen have been in C#. Mainly because its easy to use networking features.
Ahh, I was hoping to try and code a native RAT like you can do with miners. Is C# coding similar to C++ as it is in the same family I imagine it is.

Yeah C# is closely related to C++. The syntax is similar as well.

Reply

RE: C++ RAT Coding? #6
As long as you can learn sockets and the windows api you're golden. Got to understand C++ to a great length before you can understand the windows api though. Specifically how C++ handles memory as well.
“Lord, protect me from my friends; I can take care of my enemies.”  - Volitaire

Reply

RE: C++ RAT Coding? #7
(11-02-2019, 01:27 AM)Drako Wrote:
(11-02-2019, 12:38 AM)Miles Wrote:
(11-02-2019, 12:10 AM)Drako Wrote: Programming a RAT in C++ would be difficult. There aren't many resources for coding one in C++. The only tutorials I've ever seen have been in C#. Mainly because its easy to use networking features.
Ahh, I was hoping to try and code a native RAT like you can do with miners. Is C# coding similar to C++ as it is in the same family I imagine it is.

Yeah C# is closely related to C++. The syntax is similar as well.
Ah great! Will have to try give C# a go too then.

(11-02-2019, 01:54 AM)SickPsycko Wrote: As long as you can learn sockets and the windows api you're golden. Got to understand C++ to a great length before you can understand the windows api though. Specifically how C++ handles memory as well.

Thank you for the info! I’ll have a look into sockets and whatnot, I’ve got a few ebooks from Packt too that includes a lot of memory stuff in there.

Reply

RE: C++ RAT Coding? #8
(11-02-2019, 07:53 PM)Miles Wrote:
(11-02-2019, 01:27 AM)Drako Wrote:
(11-02-2019, 12:38 AM)Miles Wrote: Ahh, I was hoping to try and code a native RAT like you can do with miners. Is C# coding similar to C++ as it is in the same family I imagine it is.

Yeah C# is closely related to C++. The syntax is similar as well.
Ah great! Will have to try give C# a go too then.

(11-02-2019, 01:54 AM)SickPsycko Wrote: As long as you can learn sockets and the windows api you're golden. Got to understand C++ to a great length before you can understand the windows api though. Specifically how C++ handles memory as well.

Thank you for the info! I’ll have a look into sockets and whatnot, I’ve got a few ebooks from Packt too that includes a lot of memory stuff in there.

No problem another thing I can recommend is after coding even atleast a simple rat one via basic reverse tcp. Go and look at other malware and try to learn from what methods theyre using. How theyre implementing it and how it works. The most recent virus they found isnt actually an executable it only exists in memory. To pull that off is insane! It only uses the libraries already loaded and apis.
“Lord, protect me from my friends; I can take care of my enemies.”  - Volitaire

Reply

RE: C++ RAT Coding? #9
(11-03-2019, 12:48 AM)SickPsycko Wrote:
(11-02-2019, 07:53 PM)Miles Wrote:
(11-02-2019, 01:27 AM)Drako Wrote: Yeah C# is closely related to C++. The syntax is similar as well.
Ah great! Will have to try give C# a go too then.

(11-02-2019, 01:54 AM)SickPsycko Wrote: As long as you can learn sockets and the windows api you're golden. Got to understand C++ to a great length before you can understand the windows api though. Specifically how C++ handles memory as well.

Thank you for the info! I’ll have a look into sockets and whatnot, I’ve got a few ebooks from Packt too that includes a lot of memory stuff in there.

No problem another thing I can recommend is after coding even atleast a simple rat one via basic reverse tcp. Go and look at other malware and try to learn from what methods theyre using. How theyre implementing it and how it works. The most recent virus they found isnt actually an executable it only exists in memory. To pull that off is insane! It only uses the libraries already loaded and apis.

Yeah todays malware is extremely complex. The evasion techniques malware developers use is in no way beginner friendly. I read about a new Android adware that is almost impossible to find and uninstall. And if you do manage to uninstall it, the malware reinstalls itself. So you might as well throw your phone into a lake.

Reply

RE: C++ RAT Coding? #10
(11-03-2019, 03:17 AM)Drako Wrote:
(11-03-2019, 12:48 AM)SickPsycko Wrote:
(11-02-2019, 07:53 PM)Miles Wrote: Ah great! Will have to try give C# a go too then.


Thank you for the info! I’ll have a look into sockets and whatnot, I’ve got a few ebooks from Packt too that includes a lot of memory stuff in there.

No problem another thing I can recommend is after coding even atleast a simple rat one via basic reverse tcp. Go and look at other malware and try to learn from what methods theyre using. How theyre implementing it and how it works. The most recent virus they found isnt actually an executable it only exists in memory. To pull that off is insane! It only uses the libraries already loaded and apis.

Yeah todays malware is extremely complex. The evasion techniques malware developers use is in no way beginner friendly. I read about a new Android adware that is almost impossible to find and uninstall. And if you do manage to uninstall it, the malware reinstalls itself. So you might as well throw your phone into a lake.
Link please sounds like an interesting read
“Lord, protect me from my friends; I can take care of my enemies.”  - Volitaire

Reply