adconnectdump icon indicating copy to clipboard operation
adconnectdump copied to clipboard

System.IO.FileNotFoundException

Open p4r4d0x86 opened this issue 4 years ago • 1 comments

Hi,

I am running ADSyncDecrypt.exe from the bin folder and using a cmd gotten from mimikatz after a "token::elevate /user:ADSync" / "misc::cmd"

`C:\Program Files\Microsoft Azure AD Sync\Bin>ADSyncDecrypt.exe Opening database Data Source=(LocalDB).\ADSync;Initial Catalog=ADSync;Connect T imeout=30

Unhandled Exception: System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002) at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 e rrorCode, IntPtr errorInfo) at Microsoft.DirectoryServices.MetadirectoryServices.Cryptography.KeyManager. LoadKeySet(Guid guidEntropy, Guid guidMms, UInt32 uKeySetId) at ADSyncDecrypt.Program.Main(String[] args)`

"--legacy" option not better.

I guess I am missing something. Any idea?

Thank you, Nico

p4r4d0x86 avatar Mar 12 '20 16:03 p4r4d0x86

I also tried ADGatherSync but I was getting a "key is null"

I am probably missing something :(

p4r4d0x86 avatar Mar 20 '20 16:03 p4r4d0x86