{"id":25005509,"url":"https://github.com/proxlight/virus","last_synced_at":"2025-03-29T23:15:48.512Z","repository":{"id":111686109,"uuid":"550061481","full_name":"Proxlight/Virus","owner":"Proxlight","description":"A Virus created using python ","archived":false,"fork":false,"pushed_at":"2022-10-12T06:39:41.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T00:41:20.591Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Proxlight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-12T06:31:28.000Z","updated_at":"2024-05-10T17:12:47.000Z","dependencies_parsed_at":"2023-03-13T13:34:54.984Z","dependency_job_id":null,"html_url":"https://github.com/Proxlight/Virus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Proxlight%2FVirus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Proxlight%2FVirus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Proxlight%2FVirus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Proxlight%2FVirus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Proxlight","download_url":"https://codeload.github.com/Proxlight/Virus/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246254147,"owners_count":20747949,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-05T00:40:27.990Z","updated_at":"2025-03-29T23:15:48.507Z","avatar_url":"https://github.com/Proxlight.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Create Virus Using Python\n\n## Introduction\n\nHi everyone👋, Sometimes we find our files infected with a computer virus. In this tutorial, we will get introduced to the concept of a virus by writing a simple one in Python.\n\nFirst thing first, let’s get introduced to the definition of a computer virus. A virus is a typical malware program that infects a particular type of file or most files by injecting data or code. It tries to list files in all directories and then inject typical data/code in those files.\n\nThe point to be noted; a virus does not replicate itself. It just continuously infects all files in the directories/folders. The malware that replicates itself and consumes hard disk space is typically called a Worm.\n\nYou can refer to my YouTube video to see a working tutorial for better understanding and a step-by-step guide of the same.\n\n## Requirements\n\nTo write a simple virus, we will use the following modules.\n\nos, datetime, pathlib, time\n\n### os module\n\nHere, module os is the most important one as it will help us to list all the files along with the absolute path. An absolute path starts with the root directory /.\n\nAn absolute path is necessary here as while working with numerous files you must know the exact location. Using filenames only, your script does not know where to look for that files.\n\n### pathlib module\n\nHere, we use pathlib to retrieve the extension of a file. It can be done in multiple ways though, so you may not find this module necessary at all.\ndatetime and time\n\ndatetime and time is used only for the start time of execution. If you want the script to start working right now, you may not need these modules as well.\n\n## ⭐ Links\n\nLink to Youtube Video : https://www.youtube.com/c/Proxlight\n\nLink to our Store : https://proxlightapps.gumroad.com\n\nLink to The Hash Node article : https://proxlight.hashnode.dev/build-a-virtual-assistant-using-python\n\nLink to our Dribbble page : https://dribbble.com/Proxlight\n\nFollow us on Twitter : https://twitter.com/Proxlight1\n\n#### © 2022 Proxlight, Inc. All rights reserved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproxlight%2Fvirus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fproxlight%2Fvirus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproxlight%2Fvirus/lists"}