Coder Social home page Coder Social logo

comclsidinterefaceenum's Introduction

ComClsIDInterefaceEnum

背景

看到篇blog,发现powershell能够枚举对应的clsid下的接口和接口方式,于是用c/c++实现了一下,比如用powershell很简单的就能得到对应接口的方法。

$shell = [Activator]::CreateInstance([type]::GetTypeFromCLSID("72C24DD5-D70A-438B-8A42-98424B88AFB8")) $shell | gm

说明

这项目是枚举当前注册表HKEY_CLASSES_ROOT\Classes\CLSID下的所有的接口和方法名

对应到的方法是std::string EmuComInterfaceFuncs(std::wstring progID, std::wstring strClsid, BOOL isLocal)

第一个参数是ProgID第二个是CLSID两个参数二选一填写,isLocal代表该com对象是否是LocalServer32类型的。

为什么不用oleview

不是不用,而是oleview无法获取到接口名和接口提供的方式,所以才重新写了个工具

能做什么?

比如利用系统提供的接口创建进程、修改文件、注册表、计划任务什么的,进程树下关联不到你的程序。

参考

https://www.mandiant.com/resources/blog/hunting-com-objects

comclsidinterefaceenum's People

Contributors

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