Thursday, May 26, 2016

How to Make a Trojan Horse


Most of you may be curious to know abouthow tomake a Trojanor Virus on your own. Well, here is an answer to your curiosity. In this, post I’ll show youhow tomake a simple trojanon your own using the C programming language.This trojan when executed will t up the hard space on the root drive (The drive on which the is installed, usually C: Drive) of the computer on which it is run. Also, this trojan works pretty quickly and is capable of ting up approximately 1 GB of hard space for every minute it is run.So, I’ll call this as Space ter Trojan. Since this program is written usinga high level programming language, it is often undetected by antivirus programs. The source for this program is available for downloadat the end of this post.Let’s see how this trojan works:Before I move on to explain the working of this program, you need to knowwhat exactly is a Trojan horsnd howit works. Unlike what many of us think, a trojan horse is not a virus.In simple words, it is just a program that apprs to do afavorabletask but in rlity performs undisclosed malicious functions that allow the attacker to gain unauthorized access to the host machine or cause a damage to the computer.Now let’s move on to the working of our Trojan:The trojan horse which I have crted apprs itself as an antivirus program that scans the computer for malware programs. However, in rlity it does nothing other than ting up the hard space on the root drive by filling it up with a huge junk file. The rate at which it fills up the hard space it too high. As a result, the the root drive gets filled up completely with in minutes of running this program.Once the space is full, the trojan reports that the scan is complete. The victim will not be able to cln up the hard space using any of the clnup program. This is because, the trojan litly crtes a huge file in the\System32folder with the.dllextension. Since the junk file has the.dllextension it is often ignored by the clnup software. Hence there is now way to recover the hard space other than reformatting the drive.The aorithm of the Trojan is as follows:Srch for theroot drive.Navigate to%systemroot%\\System32on the root drive.Crte the file named “spceshot.dll“.Startdumping the junk dataonto the above file and keep incrsing its size until the drive is full.Once the drive is full,stop the process.You candownloadthe Trojan source HERE. Plse note that I have not included the executable for security rsons. You need to compile it to obtain the executable.How to test this trojan horse?To test the trojan, just run theSpaceter.exefile on your computer. It will erate a warning message at the beginning. Once you accept it, the Trojan runs and ts up the hard space.NOTE: To remove the warning message you’ve to edit the source and then re-compile it.How to fix the damage and free up the space?To remove the damage and free up the space, just type the following in the “run” dialog box:%systemroot%\system32Now srch for the file “spceshot.dll“. Just delete it and you’re done. No need to re-format the hard .NOTE: You can also change the ICON of the virus to make it look like a legitimate program.Plse pass your comments and tell me your opinion. I am just waiting for your comments.

No comments:

Post a Comment