Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mimikatz dsync hashump error #7

Closed
Cx01N opened this issue Oct 27, 2019 · 1 comment
Closed

Mimikatz dsync hashump error #7

Cx01N opened this issue Oct 27, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@Cx01N
Copy link

Cx01N commented Oct 27, 2019

Empire Version

Python3-hubble-1

OS Information (Linux flavor, Python version)

Kali Linux, Python 2.7

Expected behavior and description of the error, including any actions taken immediately prior to the error. The more detail the better.

Error when running dsync hashump from mimikatz.
/credentials/mimikatz/dcsync_hashdump

Specified cast is not valid.
At line:1877 char:13
if (($PEInfo.DllCharacteristics -band $Win32Constants.IMAGE_D ...
CategoryInfo : OperationStopped: (:) [], InvalidCastException
FullyQualifiedErrorId : `System.InvalidCastException

Specified cast is not valid.
At line:1923 char:13
if (($PEInfo.DllCharacteristics -band $Win32Constants.IMAGE_D ...
CategoryInfo : OperationStopped: (:) [], InvalidCastException
FullyQualifiedErrorId : System.InvalidCastException

Exception calling "GetCurrentDomain" with "0" argument(s): "Current security context is not associated with an Active
Directory domain or forest."
At line:73 char:17
[System.DirectoryServices.ActiveDirectory.Domain]::GetCur ...
CategoryInfo : NotSpecified: (:) [], MethodInvocationException
FullyQualifiedErrorId : ActiveDirectoryOperationException

The property 'name' cannot be found on this object. Verify that the property exists.
At line:2157 char:9
$TargetDomains = @( (Get-NetDomain).name )
CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
FullyQualifiedErrorId : PropertyNotFoundStrict

Screenshot of error, embedded text output, or Pastebin link to the error

Any additional information

The error appears to originate in Powershell and not python.

@Cx01N Cx01N added the bug Something isn't working label Oct 27, 2019
@Cx01N
Copy link
Author

Cx01N commented Nov 11, 2019

Initial error fixed. The module returns a table of hashes, but gets a PowerShell error Specified cast is not valid.

image

Cx01N added a commit that referenced this issue Nov 17, 2019
@Cx01N Cx01N closed this as completed Nov 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant