How to create a virus

Who I am
Aina Prat
@ainaprat
Author and references

How to create a PC virus

As I told you at the opening of the post, create a virus to play an innocent joke on your friends does not require any specific technical skills and does not damage the computer of the "victim" in any way as, instead, real computer viruses can do, which require high skills to be created and whose creation obviously, this is not a topic I want to deal with because of the harmful consequences they could have on the PCs on which they are installed.



That said, to fool your acquaintances you can create a fake cyber threat capable of shut down their computer. Let's see how to do it right away, you will find everything explained in detail below. The procedure to be implemented is the same on all versions of Windows.

How to create a virus that turns off your PC

To create a virus capable of shutting down your PC, all you have to do is create or modify a shortcut to the automatic shutdown function of Windows with a personalized virus-style message.

To do this, first right-click somewhere with no icons on the desktop and select items New> Link from the menu that opens. In the window that is shown to you on the screen, paste the following code in the field Enter the path for the link.

shutdown -s -t 30 -c "VIRUS RILEVATO! Trojan horse JO / ke.my.7 rivelato nella cartella C: Downloads. Il computer sar脿 spento entered 30 secondi per avoidedre ulteriori danni al sistema. Salvare tutti i documenti aperti."

Next, click on your button NEXT, type the name you want to give your fake virus in the field Enter the name of the link and, finally, press the button end.



Now you need to move the created shortcut to the folder to run automatically when Windows starts. Then right-click on the link you just created and select the item Size from the menu that appears. After that, if you are using Windows 10 or Windows 8 / 8.x, click the icon of File Explorer (Quella with the gialla poster) that you find on taskbar and go to the location C: UsersAccountNameAppDataRoamingMicrosoftWindowsStart MenuProgramsStartup, taking care to modify accountname with the name of the account of your interest.

Se, invece, stai using Windows 7 or a previous version of the Microsoft operating system, press the button Home (I cheer with the windows flag) che trovi nella part in fund to sinistra della taskbar, go to the folder All programs, right click on the folder Automatic execution and select the item Explore give the menu to compare.

At this point, regardless of the version of Windows used, in the window that opens, right-click in a point without icons and select the item Paste from the context menu, in order to move your fake virus from the desktop to the Windows Startup folder.

From now on, every time Windows starts, the owner of the PC will be greeted by a warning message about the presence of a virus on the PC and after 30 seconds the computer will automatically shut down.

Once the joke is done, you can remove the fake virus from your PC simply by deleting the shortcut created previously from the folder for the automatic execution of Windows programs, while to cancel the automatic shutdown of the computer after the appearance of the warning about the fake threat computer science, just call up the Run, using the key combination Win + R, type the command shutdown-a in the appropriate field and click on the button OK.



Now that you know how to create a virus that shuts down your PC, you can also change the warning and the time after which the fake cyber threat must automatically shut down the computer: to do this, you need to act during the creation of the link and modify the code pasted in the latter. Then replace the value 30 with the number of seconds after which the fake virus must shut down the computer and change the sentence "VIRUS DETECTED! Trojan horse JO / ke.my.7 etc." with one of your choice to appear in the warning message. Simple, isn't it?

How to create a virus with Notepad

In addition to as I indicated in the previous step, you can create a virus capable of turning off the PC even using the Block notes. Even in this case, you will not have to do anything particularly complicated, do not worry: let's see immediately how we need to proceed.

First, start creating a new text file by clicking the Start button (I cheer with the windows flag) placed on the taskbarlooking for the Block notes in the list of installed programs and selecting the relevant link. In the window that opens, type the following text.

@ Echo off

shutdown -s -f -t 60 -c your PC is infected!

Next, save the text file created by clicking on the menu Fillet in the Notepad window (top left) and selecting the item Save with name from the menu that appears. Using the window that opens, then indicate the location where you want to save the text file and the name you want to assign it, then change the format from.txt a . Beat or .cmd, click here Save and close the Notepad window.



If you can't see and change the file extension, read my guide on how to show file extension, to understand how to fix.

At this point, right click in a place on the desktop where there are no icons, choose the item New from the context menu and select the option connection.

In the window that you now see on the screen, click on the button Shop by Department and select the file created previously with Notepad, then click on the button NEXT, give the link a name that you like and that intrigues the victim, by entering it in the field Enter the name of the link, and pulsating premiere end.

Now, change the icon of the shortcut in such a way as to camouflage the fake virus created in the best possible way: to do this, right click on it, select the item Property from the menu that opens, click on the button Change icon, select the one you prefer from the predefined list that opens and confirm your choice by pressing the button OK twice in a row. If you want, you can also set a custom one, by downloading it from the Internet or creating it yourself, as I explained to you in my guide focused on free icons.

When your friend opens the link to the fake virus just created, the computer will automatically shut down after 60 seconds, first showing the message previously typed in Notepad on the screen. To cancel the automatic shutdown of the PC after the appearance of the warning relating to the fake virus, all you have to do, even in this case, is to call up the Run, using the key combination Win + R, type the command shutdown-a in the appropriate field and click on the button OK.

Furthermore, I would like to point out that, if you want, you can change the warning and the time after which the virus must automatically shut down the computer: to do this, you must act on the file of the fake cyber threat during the creation phase with Notepad . To be precise, if you want to change the time after which the PC must shut down, replace 60 with the number of seconds you prefer. If, on the other hand, you want to change the message, replace the sentence Your PC has been infected! with the one you want to do on the screen.

How to create a virus over the phone

Creating a virus to make fun of friends is also feasible on smartphones (and tablets) Android. In this case, however, you just have to resort to the use of an application designed for the purpose, such as the one called Virus Creator joke, thanks to which, as can be guessed from the name itself, it is possible to organize a nice screen by simulating the attack of a virus on the mobile phone screen.

To download it, take the device on which you want to go to act, unlock it and go to the section of the Play Store relating to the app. Then press the button Install. Then start the application by tapping on the button apri appeared on the display.

Now that you see the app screen, tap on the item Create firts virus located at the bottom, select the fake virus you prefer among those in the top list, swiping it to the right or left, and customize its features and operation using the appropriate fields and drop-down menus that you find further down. For example, you can change the type of font used, the time after which the application kicks in, etc.

Finally, click on the button Preview, to preview the fake virus, and on the buttons Run virus e Home, to get the application into action. If you are asked to grant the app the necessary permissions to manage commands, popups and other elements of Android, please agree to it.

When you want, you can disable the fake virus simply by shaking your smartphone or by selecting the appropriate notification pop-up notification center.

How to defend against viruses

In the previous lines I explained to you how to create a virus, totally harmless, to make fun of your friends, both by acting as a PC and as a smartphone and tablet. For the sake of completeness of information, it is my duty to point out to you also how to defend yourself from what, on the other hand, are the real cyber threats that can affect the proper functioning of your devices.

As for the side Windows, the number one golden rule to avoid running into trojan and other computer threats is to install and use a good one antivirus, thanks to which they can be identified, blocked and removed. There are plenty of antiviruses, both free and paid. If you want some advice in this regard, you can refer to my dedicated guides, respectively, to the best free antivirus and the best paid antivirus.

Another thing I suggest you do is to install a good one antimalware, that is to say a software that, not "stepping on the toes" of the classic antivirus, removes malware and spyware that can potentially escape the control of classic computer security programs. To deepen the discussion and to find out which are the best tools in the category, I suggest you read my guide dedicated specifically to the best antimalware.

Always to better protect your PC, I recommend that you also take advantage of a firewall, to constantly install updates latest available for your computer and pay special attention to software you download, avoiding those from suspicious sources. For more information, read my post on how to protect your PC.

A discourse, in some ways similar, is also valid for Android. The mobile platform of the "green robot", in fact, is often targeted by malicious people and it is not so rare to hear about viruses also for the latter. To avoid running into situations like this, the best suggestion I can offer you is to just download app from trusted sources, ie only from the Play Store. The antivirus is already included "as standard", Google offers it, but it is possible to associate it with a antimalware third-party, like the ones I reported to you in my post on the best antivirus for Android.

How to create a virus

Audio Video How to create a virus
add a comment of How to create a virus
Comment sent successfully! We will review it in the next few hours.