Skip to content

it's a driver injector or driver loader header lib(Windows)

License

Notifications You must be signed in to change notification settings

Nitr0-G/DriverLoader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

DriverLoader

it's a driver injector or driver loader header lib(Windows)

Usage example

You need to include header file(like in boost) and for example you can write this:

//CPP 20
#include "include/DriverLoader.hpp"

#include <Windows.h>

#include <iostream>
#include <string>

int main() {
    std::unique_ptr<DRIVER> Driver; Driver = std::make_unique<DRIVER>();
    std::string Wait;

    Driver.InitSvc((LPTSTR)L"C:\\HelloWorldDriver.sys", (LPTSTR)L"driver", (LPTSTR)L"driver", SERVICE_DEMAND_START);
    std::cout << "Driver Loaded!" << std::endl;

    Driver.CreateSvc();
    std::cout << "Driver Created!" << std::endl;

    Driver.StartSvc();
    std::cout << "Driver Started!" << std::endl;

    std::cout << "Press any key to unload driver...";
    getline(std::cin, Wait, '\n');

    Driver.UnloadSvc();
    std::cout << "Driver unloaded!" << std::endl;

    return 0;
}
//CPP 20
#include "include/DriverLoader.hpp"

#include <Windows.h>

#include <iostream>
#include <string>

int main() {
    std::unique_ptr<DRIVER> Driver; Driver = std::make_unique<DRIVER>();
    std::string Wait;

    Driver->LoadDriver((LPTSTR)L"C:\\HelloWorldDriver.sys", (LPTSTR)L"driver", (LPTSTR)L"driver", SERVICE_DEMAND_START);
    std::cout << "Driver Started!" << std::endl;

    std::cout << "Press any key to unload driver...";
    getline(std::cin, Wait, '\n');

    Driver->UnloadDriver();
    std::cout << "Driver unloaded!" << std::endl;

    return 0;
}

About

it's a driver injector or driver loader header lib(Windows)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages