Coder Social home page Coder Social logo

rakhithjk / screwed-drivers Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eclypsium/screwed-drivers

0.0 1.0 0.0 71.58 MB

"Screwed Drivers" centralized information source for code references, links, etc.

License: GNU General Public License v3.0

C# 17.11% Python 34.98% PowerShell 47.91%

screwed-drivers's Introduction

ScrewedDrivers

General information

We have created this repository as a centralized source of knowledge which contains a list of drivers determined to be vulnerable as well as example code for how to use this kind of functionality.


DRIVERS.md

This file contains a list of drivers, hashes, and who they are signed by. In some cases, links to advisories and other research we found discussing these drivers will be included as well.

ADVISORIES.md

Vendor advisories will be published here once they are made public.

Code samples:

C#

LoadDriverAsService:

This is an example of an application to automate the loading of a driver as a service in Windows, if run as user it will prompt a UAC. We used this to help us load various drivers for experimentation.

exampleApplication:

An example of how to use an ASrock driver to read an MSR, including all the relevant imports from Windows.

Powershell

ASRock_readmsr.ps1:

Based on FuzzySec's excellent writeup and example, this code does the same as the C# "exampleApplication", except written in PowerShell.

ASRock_readcr.ps1:

Example of reading Control Registers from PowerShell

ASRock_writecr.ps1:

Example of writing Control Registers from PowerShell

ASRock_kaslr.ps1:

Example of reading LSTAR MSR and CR3 to find Windows kernel syscall entry point and kernel page table base, defeating KASLR

ASRock_check_smep.ps1:

Checks if SMEP is enabled on each CPU from PowerShell

ASRock_disable_smep.ps1:

Disables SMEP temporarily from PowerShell

ASRock_disable_kern_wp.ps1:

Disables CR0 Write Protect bit temporarily from PowerShell

Detection

wormhole.py

This is a script written using the angr dynamic analysis framework to detect this kind of vulnerability in drivers.

x86_spotter.py

This file contains gymrat spotter functions to address limitations in the pyvex framework angr depends on.

screwed-drivers's People

Contributors

eclypsium avatar hackingthings avatar wrffrz avatar

Watchers

 avatar

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.