How to create a virus (just for study purpose)?

Nilesh More

Nilesh More

@nilesh-more-g7ajlK β€’ Oct 26, 2024

Hello Frds..... I am Second Year engg. student i wana create a virus (not creating just going through this knowledge) but i have no idea about virus codig plz help me????????

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Kaustubh Katdare

    Kaustubh Katdare

    @thebigk Mar 29, 2013

    A virus is a simple computer program that does something malicious. Writing your first virus is going to be very simple. I'll give you an idea -

    1. Write a C program that executes a command to delete all the contents of a specific directory on your D: , E: drive.

    2. Now figure out a way to execute this program whenever user turns on his computer.

    So your virus will execute itself when the person starts his computer and delete the contents of specific directory. That's what basically virus do. Now go ahead and start coding this basic virus. Share your code with us below and ask doubts if you get stuck.

  • Sanyam Khurana

    Sanyam Khurana

    @sanyam-Nl7Zqc Mar 29, 2013

    The virus are best made in Batch file programming. I could offer here some code, if and only if , it doesn't break the forum rules.

  • Sanyam Khurana

    Sanyam Khurana

    @sanyam-Nl7Zqc Mar 29, 2013

    Or you could just search on some Batch File Tutorials on Net, you could even make some short script to quickly restart or turn off computer, or even something which deletes all the temporary files (I have one) πŸ˜‰

    #-Link-Snipped-#

  • Sanyam Khurana

    Sanyam Khurana

    @sanyam-Nl7Zqc Mar 29, 2013

    And yes, after gaining knowledge, if you just made one just for the sake of some practical knowledge, don't click it (If it contains the coding to delete system32 files)

    It will ruin your OS ! πŸ˜›

  • Nilesh More

    Nilesh More

    @nilesh-more-g7ajlK Mar 29, 2013

    Kaustubh KatdareA virus is a simple computer program that does something malicious. Writing your first virus is going to be very simple. I'll give you an idea -

    1. Write a C program that executes a command to delete all the contents of a specific directory on your D: , E: drive.

    2. Now figure out a way to execute this program whenever user turns on his computer.

    So your virus will execute itself when the person starts his computer and delete the contents of specific directory. That's what basically virus do. Now go ahead and start coding this basic virus. Share your code with us below and ask doubts if you get stuck.

    Thank sir..i will do it not immediately but definitely because i am participate in project competition that is why now i am going to my registry cleaner project.
    Again thanks sir........

  • Nilesh More

    Nilesh More

    @nilesh-more-g7ajlK Mar 29, 2013

    Sanyam KhuranaAnd yes, after gaining knowledge, if you just made one just for the sake of some practical knowledge, don't click it (If it contains the coding to delete system32 files)

    It will ruin your OS ! πŸ˜›

    Thank sir..i will do it not immediately but definitely because i am participate in project competition that is why now i am going to my registry cleaner project.
    Again thanks sir........