{"id":20086036,"url":"https://github.com/brosck/mbroverwrite","last_synced_at":"2025-10-30T12:38:21.976Z","repository":{"id":38181522,"uuid":"476395707","full_name":"brosck/MBROverwrite","owner":"brosck","description":"「💽」MBR Overwrite malware for linux","archived":false,"fork":false,"pushed_at":"2023-05-22T16:33:50.000Z","size":2084,"stargazers_count":24,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-01T13:52:29.942Z","etag":null,"topics":["assembly","c","harddisk","hardware","malware","mbr","overwrite","virus"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brosck.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-03-31T16:47:19.000Z","updated_at":"2024-10-24T14:17:52.000Z","dependencies_parsed_at":"2024-11-01T13:52:34.650Z","dependency_job_id":"3b246a7b-486b-4b6b-89f7-0e52290101b5","html_url":"https://github.com/brosck/MBROverwrite","commit_stats":null,"previous_names":["brosck/mbroverwrite"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brosck%2FMBROverwrite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brosck%2FMBROverwrite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brosck%2FMBROverwrite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brosck%2FMBROverwrite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brosck","download_url":"https://codeload.github.com/brosck/MBROverwrite/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224480785,"owners_count":17318308,"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":["assembly","c","harddisk","hardware","malware","mbr","overwrite","virus"],"created_at":"2024-11-13T16:00:05.216Z","updated_at":"2025-10-30T12:38:21.970Z","avatar_url":"https://github.com/brosck.png","language":"C","readme":"\u003ch1 align=\"center\"\u003e「💽」MBR Overwrite malware for linux\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"/assets/message.png\"\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eThe MBR virus has the function of staying in the Master Boot Record (MBR) causing the system to load the sector infected by the virus after being initialized. This type of virus causes an infection in the Basic Input/Output System (BIOS) using Disk Operating System (DOS) commands to infect the disk.\u003c/p\u003e\n\n\nThis repository was created with the intention of demonstrating the attack of this virus from the execution of it in a Linux system.\n\n**Note**: **DO NOT RUN** on your personal machine, use a virtual machine to do the experiment.\n\n## Demonstration:\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"/assets/demo.gif\"\u003e\u003c/p\u003e\n\n## Requirements:\n\n* GCC\n* NASM\n\n## Build:\n\nIn the file ```mbroverwrite.c``` in ```#define DISK \"/dev/sda\"``` is indicating the disk where will be replaced by the payload.\n\nIn the file ```mbroverwrite.c``` in ```unsigned char payload[]``` is storing the compiled file ```message.asm```, where the values are in HEX.\n\n```\n$ git clone https://github.com/Brosck/MBROverwrite.git\n$ cd MBROverwrite\n$ make\n$ sudo ./mbroverwrite\n```\n\n## Buy me a coffee?\n\n\u003cimg src=\"https://static.livepix.gg/images/logo.svg\" height=\"50\" widght=\"50\"\u003e\n\n[LivePix](https://livepix.gg/mrempy)\n\n\u003cimg src=\"https://play-lh.googleusercontent.com/aMb_Qiolzkq8OxtQZ3Af2j8Zsp-ZZcNetR9O4xSjxH94gMA5c5gpRVbpg-3f_0L7vlo\" height=\"50\" widght=\"50\"\u003e\n\n[Buy me a coffe](https://www.buymeacoffee.com/mrempy)\n","funding_links":["https://www.buymeacoffee.com/mrempy"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrosck%2Fmbroverwrite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrosck%2Fmbroverwrite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrosck%2Fmbroverwrite/lists"}