RATs 01-09-2017, 11:29 PM
#1
**DISCLAIMER** For all the kiddos out there, this explanation goes over what an HTTP RAT is. There are different types. But this goes over one of them.
A lot of people are confused about RATs and how they work. This is not a coding tutorial. This is a thread to explain the Remote Administrator Tool (RAT).
The main principle of the RAT is this: There's an application running on the target's computer. That application is waiting for data from a server, and you write that data using your client. Most people think writing a server is hard, but it's really not. Your client is writing data to a "webpage" hosted by a server. The app on the target's computer is constantly downloading data from this "webpage" usingÂ
The command received from the server is stored on the variable "command"
Then, in a while statement, the app running on the infected computer is checking for a valid command.
Or, if you want to send them a message, you can just split the command string value like so:
So, if I give the command "show^Hello!", the infected computer will display "Hello!".
A lot of people are confused about RATs and how they work. This is not a coding tutorial. This is a thread to explain the Remote Administrator Tool (RAT).
The main principle of the RAT is this: There's an application running on the target's computer. That application is waiting for data from a server, and you write that data using your client. Most people think writing a server is hard, but it's really not. Your client is writing data to a "webpage" hosted by a server. The app on the target's computer is constantly downloading data from this "webpage" usingÂ
Code:
string command = Webclient.DownloadString(webpage address here);
The command received from the server is stored on the variable "command"
Then, in a while statement, the app running on the infected computer is checking for a valid command.
Or, if you want to send them a message, you can just split the command string value like so:
Code:
string[] data //You create a array of strings so you can store the string behind and after the decided sign.
command = command.TrimStart();
command = command.TrimEnd();
//Now you can check for the command:
if (command.StartsWith("show")){
data = command.Split('^'); //now data[0]=What's behind the ^ sign and data[1]=What's after the ^ sign
MessageBox.Show(data[1]);
}
So, if I give the command "show^Hello!", the infected computer will display "Hello!".
(This post was last modified: 03-13-2017, 05:31 PM by zenith.)
Who Knows?