Giter Site home page Giter Site logo

zhuhuibeishadiao / win-driver-tools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sam-b/win-driver-tools

0.0 0.0 0.0 5.47 MB

A couple of little tools I've made for working with Windows Drivers

License: Mozilla Public License 2.0

C++ 47.85% C 3.65% Python 48.50%

win-driver-tools's Introduction

ioctl-tools

A couple of little tools I've made for working with Windows Drivers

translate.py

Translate an ioctl code in hex to its equivalent c define:
	python translate.py (c | code) hex_code
Example:
	>python translate.py c 0x22e00b
	DeviceCode =  FILE_DEVICE_UNKNOWN
	Device Source =  VENDOR
	FunctionCode =  0x802
	MethodCode =  METHOD_NEITHER
	AccessCode =  FILE_READ_DATA | FILE_WRITE_DATA
	C Define:
	#define NAME CTL_CODE(FILE_DEVICE_UNKNOWN,0x802,METHOD_NEITHER,FILE_READ_DATA | FILE_WRITE_DATA)
Translate the definition dword values in hex to a hex ioctl code:
	python translate.py (d | dwords) DeviceCode FunctionCode MethodCode AccessCode
Example:
	>python translate.py d 0x22 0x802 0x3 0x3
	0x22e00b
Translate the Macro C constants inputs to an ioctl code:
	python translate.py (s | string) DeviceCode FunctionCode MethodCode AccessCode
Example:
	>python translate.py s FILE_DEVICE_UNKNOWN 0x802 METHOD_NEITHER "FILE_READ_DATA | FILE_WRITE_DATA"
	Outputs: 0x22e00b

translate screenshot

code_bruteforcer.py

Bruteforces valid ioctl codes and provides definitions for them when setup with valid config to send them to a driver.   
Correct settings will need to be added as arguments to the CreateFile call.

bruteforce screenshot

basic_fuzzer.py

Fuzzes a given IOCTL for a given device path by sending random input and output buffers, half the time the sizes passed with buffers will be valid and half the time not.
Usage: python basic_fuzzer.py DRIVER_PATH_INCLUDING_ESCAPES IOCTL_CODE_IN_HEX
Logs all sent DeviceIOControls to fuzz.log

win-driver-tools's People

Contributors

sam-b 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.