Git Product home page Git Product logo

Comments (9)

duzvik avatar duzvik commented on July 17, 2024 2

yes, DKMkey.bin should be HEX representation of actual ANSI bytes.
In screenshot I see a lot of zeros, remove everything after 72 CB

from adfspoof.

duzvik avatar duzvik commented on July 17, 2024 2

Ha!
Welcome to the club! (ppl who didn't read readme :) )
Steps to fix this:

  1. pip uninstall cryptography
  2. git clone https://github.com/dmb2168/cryptography.git
  3. cd cryptography
  4. pip install -e .

Have fun!

from adfspoof.

ricardojoserf avatar ricardojoserf commented on July 17, 2024 1

Hi! In my case I used 'cat DKMkey.txt | tr -d "-" | xxd -r -p > DKMkey.bin'. I think it works the same but I did not get the zeros :)

from adfspoof.

pawp81 avatar pawp81 commented on July 17, 2024 1

Thank you! It worked, though only on Linux. On Windows I am getting installation error when installing crypthography.

from adfspoof.

duzvik avatar duzvik commented on July 17, 2024

@pawp81
correct way to create DKM key:
a) take private key
b) take hex editor and paste in the bytes ( private key without dashes) and save as DKMkey.bin

from adfspoof.

pawp81 avatar pawp81 commented on July 17, 2024

Thank you. I see DKM key extracted from Active Directory already comes in HEX.
Do you mean that DKM key should be HEX representation of actual ANSI bytes?
Taking my DKM key as example and https://hexed.it/ as Hex editor example, this what I should?
image

from adfspoof.

pawp81 avatar pawp81 commented on July 17, 2024

Thank you I am getting closer
Now I am getting:
Calculated MAC did not match anticipated MAC
Calculated MAC: b'H\x03\xbauF\x02\xed\x87%\x7f+\xafZ\x95\xdc\xd3\x0b\x05\x15O\x12\xf69\xc5\x9a\xb6!;\x83\xea_\x03'
Expected MAC: b'\xc0\xae\x84\x8f\x0cm\x16g\x1c\x1axnV\x83\xed\x08I\x1dAv\xa5m^\x91]\xd8o\xf1\xb8\x14\x8b\x04'

What do you do with EncryptedPFX? Do you just base64 decode the output from ADFSDump?
cat Token_sign_blob_ADFS2019.txt | base64 -d >Token_sign_blob_ADFS2019.bin

from adfspoof.

0xMazen avatar 0xMazen commented on July 17, 2024

Hey!
If the method does not work, This what worked for me :

  1. Create of virtual environments in python
  2. git clone https://github.com/dmb2168/cryptography.git
  3. cd cryptography
  4. pip3 install pyopenssl --upgrade -e .

from adfspoof.

AmjadAlii avatar AmjadAlii commented on July 17, 2024

Hey @0xMazen @duzvik
Please help me im also getting the same error
A tool to for AD FS security tokens
Created by @doughsec

Calculated MAC did not match anticipated MAC
Calculated MAC: b"e\xec|[\x17?.\xffC'v(u\xaaBiw\x90\xfb\x1c\xd4H\xf7LM\x13\x87+G\x99mX"
Expected MAC: b"{\xad\xa9}\x02\xfa]\xdb\xcb\x95\x15p \x1c\x9c\xed\xbcC/\xc1\xef\xc0f\xd1\x93D'\xeb\xb0\x8a\xc0\xe1"

i have tried to install this but its not being installed at
git clone https://github.com/dmb2168/cryptography.git

any other version of cryptography im able to install

from adfspoof.

Related Issues (7)

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.