Thursday, October 30, 2014

c# RAT (Remote Administration Tool) Tutorial

Project Introduction

     So, what is Remote Administration Tool or RAT? From wikipedia, it is a piece of software that allows a remote "operator" to control a system as if he has physical access to that system. While desktop sharing and remote administration have many legal uses, "RAT" software is usually associated with criminal or malicious activity. Malicious RAT software is typically installed without the victim's knowledge, often as payload of a Trojan horse, and will try to hide its operation from the victim and from security software.

     In this tutorial we will make our basic RAT using c# and Visual Studio for our compiler. I chose c# to be the language of this project because it has easy way of creating GUI. If you know VB.NET, you can follow this tutorial also because almost all of the functions used in this project are similar or have equivalent value in VB.NET.

     These following function are already added and working in this project as you can see in the screenshot above 
  • Send Fake Messages
  • Remote File Manager (including file upload/download)
  • Remote Desktop
  • Remote Keylogger
  • Builder (using basic CodeDOM)
  • Multithreading

Along the way we will add the following functions:
  • Remote Shell Command
  • File execute in Remote File Manager
  • XML reader for our config/settings
  • Fun stuffs (lock desktop, restart, shutdown and etc.)

Prerequisite:

  • basic c# knowledge
  • visual studio or similar
  • virtual machine (for testing our victim's pc)
  • lots of time and dedication



Table of contents

Disclaimer:
     I'm not professional or elite malware developer, I'm only a student who want to learn things and share it with anyone who want to learn. I learn c# from watching tutorial and searching some stuffs in the internet. I never study or read book about c# so forgive me if you found my code to be absurd. English is not my first language so excuse me if I have wrong grammar.