Giter Club home page Giter Club logo

rust_bho's Introduction

rust_bho

Proof of Concept Internet Explorer Browser Helper Object (BHO) implemented in Rust

Usage:

I've only tested this when compiled as i686, so either modify this for 64-bit or rustup override set stable-i686-pc-windows-msvc.

To build: cargo build --release

If you've ever dabbled in COM programming or BHOs you'll know that the windows registry is key to it all.

Minimal Registry data: (put in file RegBHO.reg, replace {path_to_rust_bho}, then double click)

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\WOW6432Node\CLSID\{C1626E91-F628-4F69-94ED-4DB4564ECDF5}]
@="rust_bho"

[HKEY_CLASSES_ROOT\WOW6432Node\CLSID\{C1626E91-F628-4F69-94ED-4DB4564ECDF5}\InprocServer32]
@="{path_to_rust_bho}\\target\\release\\rust_bho.dll"
"ThreadingModel"="Apartment"

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\Browser Helper Objects\{C1626E91-F628-4F69-94ED-4DB4564ECDF5}]
@="rust_bho"
"NoExplorer"="1"

To test that the com object was registered correctly: cargo run

Start IE and you should see some message boxes. Remove the registry keys to disable the whole thing.

Credit to: http://www.codeproject.com/Articles/13601/COM-in-plain-C and http://www.codeproject.com/Articles/37044/Writing-a-BHO-in-Plain-C

rust_bho's People

Contributors

ghotiphud avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.