Trojan horses are the most used type of computer virus out there, today we will discuss why is that? and how do they work?
History
If you haven't seen the movie Troy, let me tell you one of the most famous stories in the whole world. We travel to ancient Greece:
Most people think this war really happened, it didn't. At least not like we think, the city of Troy existed, but not it's heros. A war most likely happened, but not with a trojan horse. Let's begin.
In ancient Greece, a Trojan prince called Paris travelled to Sparta for political reasons. There, he fell in love with the Queen of Sparta, Hellen. Rumored to be the most beautiful woman in the world, Paris sailed to his home city with Hellen beside him.
The king of Sparta at the time Menelaus, was full in rage, called upon his brother King of Mycenae : Agamemnon .
They both united 1000 ships of Greek forces to take back the Spartan Queen by force.
"The face that launched a thousand ships" the famous saying was about this moment.
That night troy was burnt to the ground. and the Legacy went on for years.
The Virus
Now that you know the story of Troy and the famous Trojan Horse. Let us see the Trojan Virus, this virus functions just like the trojan horse, is desguises itself as a normal app/file and then when you open it, it opens a backdoor in your device.
The Trojan virus can be embeded in a pdf file, audio, picture and more.
How?
The question you ask now is how can I make a Trojan. We should speak about Rats, not the mouse, but the program. RAT stands for Remote Acces Trojan it is a program made to make and control Trojans.
Njrat
One of the Oldest Rat's out there, was made by an Arab hackers group. You mostly wouldn't find a version in the web that you can download safely.
I precisly did this so you can't just harm people in your way.
Metasploit
In Metasploit there is a tool called Msfvenom. Made spacefically to make trojans/payloads, it requires some technical skills and you can use it on Windows or Linux. Even has a GUI you can get in Github.
Practice
If you want to practice your Hacking skills/Trojans. You can use Metasploitable, an operating system built just to be hacked.
You can download it Here
And you need a Virtual Box too to run the Operating system. Download it Here
You use the appropriate Operating System for the trojan you wanna test. If you make a Windows Trojan, test it on a windows VM and so on.
Conclusion
Sometimes Trojans can pass through Peer to Peer programs, but most Antiviruses/Firewalls catch them today. So what are they?