Giter VIP home page Giter VIP logo

mbrfilter's Introduction

  MBRFilter

   This is a simple disk filter based on Microsoft's diskperf and classpnp example drivers.

  The goal of this filter is to prevent writing to Sector 0 on disks.
  This is useful to prevent malware that overwrites the MBR like Petya.

  This driver will prevent writes to sector 0 on all drives. This can cause an 
  issue when initializing a new disk in the Disk Management application. Hit 
  'Cancel' when asks you to write to the MBR/GPT and it should work as expected.
  Alternatively, if OK was clicked, then quitting and restarting the application
  will allow partitoning/formatting.


  To install: right click the inf file, select 'install' and reboot when prompted.
  To access sector 0 on drive 0: boot into Safe Mode. 
  To compile: make sure to set:
	MBRFilter properties -> Configuration properties -> Driver Signing -> General
		Sign mode: Test Sign
		Test certificate: generate or select one from your store.

To remove MBRFilter, follow these steps:

- Remove the line MBRFilter from the UpperFilters registry key in (only
remove MBRFilter, there might be other disk drivers here):

HKLM\System\CurrentControlSet\Control\Class\{4d36e967-e325-11ce-bfc1-08002be10318}

- Reboot

  AccessMBR

  Simple program to read sector 0 on Physical drive 0 and write that sector back.
  Used as a testing program for MBRFilter. This overwrites your MBR, it will 
  restore it once it's done. 
  Nevertheless: USE WITH CAUTION.


  MBRFilter and AccessMbr Written by Yves Younan, Cisco Talos
  SCSI passthrough part of AccessMBR written by Andrea Alleivi, Cisco Talos

  Copyright (C) 2016 Cisco Systems Inc

  Thanks to Andrea Alleivi for suggested fixes.
  Thanks to Aaron Adams and Ilja Van Sprundel for reviewing the code. 

  No warranty: use at your own risk.

mbrfilter's People

Contributors

vrtadmin avatar yyounan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mbrfilter's Issues

ChkDsk is not working properly on usb devices

If I have MBRFilter running and connect an USB drive, a popup says "drive need to be scanned for errors".

When I choose "check and fix errors", the dialog says the error is fixed and I close the dialog.

After a short amount of time, the "drive need to be scanned for errors" dialog popups again.

Translations

Hi,

is there a plan to translate the few strings of MBRFilter to other languages? I could do this for German.

Best regards,
Ettore

Compiled version

Could you provide an up-to-date release for people that don't like having to install visual studio just to compile one app. Your last (only) release is from August.

Build error

Hi
thanks for this solution its really logical and effective.

just i did clone from github but when i try to buid solution am getting this error

error C2065: 'SCSIOP_WRITE_LONG16' : undeclared identifier

can u hlp me for this problem how can i fix it this ?

have nice day

Erdem

.inf file missing in download

.inf file missing when I download MBRFilter or i'm not downloading right zip file. can you please direct me to right link or can you make a direct download link to make it easier for people to download.

windows 10 write failed

Accessing: \.\PhysicalDrive2
Disk bootable
Trying regular write
Regular write failed trying SCSI passthrough write
Write failed on PhysicalDrive 2

Reports of startup repair

Receiving reports that some people are having issues with startup repair running after installing this driver.

  • Person was not running secure boot
  • Ruled out incompatibility with Kaspersky and Malwarebytes (driver runs without issues when these are installed).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.