> How do I make an virus for defending me from attacks?

How do I make an virus for defending me from attacks?

Posted at: 2014-12-18 
I think you don't understand the difference between 'protect' and 'retaliate'.

If I understand correctly, you want to upload a virus to a hacker attacking your system.....to do that you need to get them to actively retrieve files from a system under your control, that they've accessed. So you create a honeypot...create some sort of malicious code that does whatever it is you want to do ... fork bomb for example... and make it look like something worth opening up on their system once they download it (name it JLawTopless.jpg or creditcard_info.doc ) ...instead of looking like an .exe or .bat file...

when they open it, it runs and ***** with their virtual machine or live OS, so they have to shut down and restart where they were before they ran it....costing them, literally, 5's of minutes.

It's not legal, at least not in most jurisdictions. It's not very effective, either - how are you going to create different viruses for each operating system an attacker might use, and get it installed on their system given that they are highly unlikely to have an open port labelled "upload virus here". That only happens in bad movies, like "Independence Day".

The only time this would work is if you are attacked by a worm like Code Red from the 1990s, which propagated through a known unpatched server vulnerability. Even so, the worm typically patched infected systems as it went to avoid crashing systems due to multiple competing infections

If you want to make a honeypot or honeynet to catch viruses and attackers and fingerprint them for analysis, that's another matter.

Even if i were to show you how to do this, it wouldn't be a good idea. Believe me, there are faults, i have tried this for myself, and many more have as well. Probably the best thing you can do to protect your computer is to install any well known anti-virus program.

You write a program that once executed it creates new copies of itself and seeks to access other files and systems to replicate itself.

I have my ways. I dont need an anti-visus I need an anti-hack

How do I make a virus? I am a programmer and know how to code and all I need is a virus. I am making an anti-hack program that protects my computer from hackers by sending the trace signal a copy of the homemade virus. But what do I need to do/know in order to create it? Yes, this is completely legal, I researched it. So what do I need?