Coder Social home page Coder Social logo

xeonkhj / shadowdriver Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 857 KB

ShadowDriver a network utitlity library that allows user-mode application to filter link layer and network layer packet data.

C 4.67% C++ 53.92% C# 41.41%
driver filter network library

shadowdriver's Introduction

ShadowDriver

What is this?

ShadowDriver a network utitlity library that allowing user-mode application to filter link layer and network layer packet data.

How

Filtering link layer and network layer requires a kernel-mode driver. ShadowDriver is a kernel mode driver that expose an interface that accept IOCTL calls from user-mode app to control filtering process.

Progress

You can see the detail in the project page.

Windows

  • Network layer and link layer packet captureing.
  • IPv4 packet modification.
  • IPv6 packet modification.
  • IPv4 packet Injection.
  • IPv6 packet Injection.
  • Link layer packet modification.
  • Link layer packet injection.
  • Library that communicate with the kernel driver.
  • System test.

Linux

  • Network layer and link layer packet captureing.
  • Network layer and link layer packet modification.
  • Network layer and link layer packet injection.
  • Library that communicate with the kernel driver.
  • System test.

Features

  • Windows and Linux support.
  • Mutil user-mode apps support.
  • Network layer and link layer packet captureing.
  • Network layer and link layer packet modification.
  • Network layer and link layer packet injectction.
  • Provide .NET library and UWP library.

Usage example

Use warpped APIs (Recommanded)

Fill it later.

Communicate to the kernel-mode driver directly

Fill it later.

Develope jounal (Mostly in Chinese)

Open Onenote development notebook

shadowdriver's People

Contributors

xeonkhj avatar

Stargazers

fofo avatar

Watchers

James Cloos avatar  avatar

Forkers

zhongpei

shadowdriver's Issues

计算校验和的结果与处理器字节顺序相关

在ShadowUtilities.c文件中的
unsigned short CalculateCheckSum(char* bytes, char* fakeHeader, int byteCounts, int fakeHeaderCounts, int marginBytes)
该方法计算好像与处理器大小端相关,具体表现为:
在Windows内核开发下使用该方法计算出来后返回的short结果直接放在IP头部的缓冲区中(用指针)没问题,但在用Hyper-V中的Ubuntu会使顺序相反。

Filtering condition bug

When I add link layer inbound and outbound 2 condition, only one path was being filtered.

A memory free error causes BSOD

SYSTEM_SERVICE_EXCEPTION (3b)
An exception happened while executing a system service routine.
Arguments:
Arg1: 00000000c0000005, Exception code that caused the bugcheck
Arg2: fffff8061b04c847, Address of the instruction which caused the bugcheck
Arg3: fffffd08d79414a0, Address of the context record for the exception that caused the bugcheck
Arg4: 0000000000000000, zero.

WinDbg shows that BSOD occurs in

delete helper->_context.FilterContext;

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.