Giter VIP home page Giter VIP logo

cloudinject's Introduction

CloudInject

This is a simple tool which can be used to inject a DLL into third-party AD connectors to harvest credentials.

This tool has been tested with:

  • AzureAD Connect
  • OKTA AD Connector
  • OneLogin AD Connector

The API call hooked is LogonUserW which seems to be used by each AD Connector.

More information can be found in the blog post https://blog.xpnsec.com/identity-providers-redteamers/.

Building

To build, we can use Visual Studio, or use Mingw32 with:

x86_64-w64-mingw32-g++ Hooker/hooker.cpp -o Hooker/hooker.dll -static -shared
x86_64-w64-mingw32-g++ Injector/injector.cpp -o Injector/injector.dll -static

Usage

To use this tool, simply save hooker.dll to a location which is readable by the AD Connector service. For example, C:\Tools\hooker.dll and then run:

Injector.exe [PID] [FULL DLL PATH]

For example:

Injector.exe 6100 C:\Tools\hooker.dll

cloudinject's People

Contributors

xpn avatar

Stargazers

ac1d avatar  avatar  avatar  avatar Shantanu Khandelwal avatar Mercer avatar Jardel Weyrich avatar  avatar Nate Subra avatar Y11D_ avatar Florinel Olteanu avatar  avatar  avatar Computer button pusher // Pousseur de boutons en informatique  || SIN - SIN HACK - HACK || NO-CODE evangelist || Black coffee like my sense of humor avatar  avatar  avatar Adrian Wyssmann avatar  avatar  avatar  avatar cocoonk1d avatar  avatar Matthew Linney avatar  avatar  avatar  avatar Erik avatar :-) avatar 2h0ng avatar  avatar Kinopio avatar Noah avatar Yan avatar Peter Veres avatar Hapa avatar ₪Ʊןןζ€ avatar  avatar irohane avatar  avatar  avatar wiseer.fkdark avatar  avatar 0x326 avatar Daniel Underhay avatar João Victor avatar Josh Collins avatar  avatar Tomas Rzepka avatar Melvin L avatar Bandit Pingu avatar Luke Paris avatar  avatar  avatar Robert Wilson avatar Moncef khafif avatar  avatar  avatar Micheal Drane avatar Kr0ff avatar vøid avatar  avatar Nikos Vourdas avatar Zephyr Lykos avatar Georgii Gennadev avatar アキラ avatar Nikos Katsiopis avatar  avatar Pierre avatar mc avatar  avatar Michael Eder avatar TonghuaRoot(童话) avatar  avatar  avatar  avatar Aan avatar  avatar evi1cg avatar unbaiat avatar Hulto avatar JNZ avatar  avatar beerandgin avatar David Carboveanu avatar InvokeThreatGuy avatar  avatar Dan avatar clod avatar WaterBucket avatar S3lrius avatar YK avatar Mariusz Banach avatar  avatar WtZ avatar ⠀ avatar 0xsyr0 avatar  avatar Nicolas Vincent avatar Life avatar  avatar

Watchers

 avatar  avatar

cloudinject's Issues

Fail to inject OKTA AD Connector

OS: Windows Server 2016
Okta AD Agent version: 3.17.0.0

I can manage to intercept the credential through x64dbg, while fail to do this by injecting the DLL
image
The way I compile the hooker and injector:

x86_64-w64-mingw32-g++.exe .\hooker\hooker.cpp -o
 .\Hooker\hooker.dll -static -shared
x86_64-w64-mingw32-g++.exe .\Injector\injector.cp
p -o .\Injector\injector.exe -static

Try to exploit, while nothing happen:

PS C:\Users\Administrator\Desktop\cloudinject\CloudInject-main> tasklist /FI  "IMAGENAME eq OKTA*"

Image Name                     PID Session Name        Session#    Mem Usage
========================= ======== ================ =========== ============
OktaAgentService.exe          6120 Services                   0     55,828 K
PS C:\Users\Administrator\Desktop\cloudinject\CloudInject-main> .\Injector\injector.exe 6120 .\Hooker\hooker.dll
image

Could you advise me how to solve this?

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.