Hi.......
Here in this post I'm demonstrating you....how to create a simple virus program(windows) that makes your computer crash.
What this program will do is, It will not allow any user operations from keyboard once it starts its execution.
To develop this program I used VB Scripting, why because VB Scripting is inbuilt language for windows operating systems. Here the screenshot of the code.
Explanation:
Save the above code with "filename.vbs" extension. Once it starts execution then the system won't allow the user actions from keyboard till restart.Here in this post I'm demonstrating you....how to create a simple virus program(windows) that makes your computer crash.
What this program will do is, It will not allow any user operations from keyboard once it starts its execution.
To develop this program I used VB Scripting, why because VB Scripting is inbuilt language for windows operating systems. Here the screenshot of the code.
Explanation:
- If you observe the above code, first I have created an object for WScript.shell.
- Wscript.shell is used to perform keyboard operations in windows.
- Then, I have used while loop to iterate my execution infinitely.
- In while loop, I placed 4 SendKeys operations to send Left,Right,Up and Down arrow.
- As the loop is infinite, the execution of sendkeys operation won't stop ever.
==================================================================
Till this extent it is good........but how about to make it real virus
- If we keep this file in the following location. Then it will start its execution from next restart of the system.
C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
- From that time on-wards , you can not perform any operation from keyboard.
https://github.com/prasad119/Robot-Framework-Tool/blob/master/RE/Robot%2520Tool/Virus.vbs
..................................................Happy coding...............................................
No comments:
Post a Comment