Seatbelt icon indicating copy to clipboard operation
Seatbelt copied to clipboard

CredEnum Exception

Open leechristensen opened this issue 4 years ago • 4 comments

Describe the bug When running the CredEnum command, it failed with the following exception:

ERROR:   [!] Terminating exception running command 'CredEnum': System.ComponentModel.Win32Exception (0x80004005): Element not found
   at Windows.CredEnumCommand.<Execute>d__9.MoveNext()
   at Runtime.ExecuteCommand(CommandBase command, String[] commandArgs)

It looks like it may be accessing an array incorrectly?

Another error:

ERROR:   [!] Terminating exception running command 'CredEnum': System.ComponentModel.Win32Exception (0x80004005): A specified logon session does not exist. It may already have been terminated
   at Seatbelt.Commands.Windows.CredEnumCommand.<Execute>d__9.MoveNext()
   at Seatbelt.Runtime.ExecuteCommand(CommandBase command, String[] commandArgs)

To Reproduce I don't have access to a system where I can reproduce the first error . Occurred when running the CredEnum command.

The 2nd exception be reproduced by running the CredEnum command under a command prompt started with runas /netonly /user:asdf\asdf cmd.exe

Expected behavior The module to run and dump creds, or not print anything (or a message saying there weren't any)

Observed behavior An exception was thrown

leechristensen avatar Jan 19 '21 22:01 leechristensen

For the "Element not found" exception, I can reproduce it when I'm logged in as a user and then run "runas /user:blah cmd.exe" and then run Seatbelt in the new command prompt.

leechristensen avatar Jan 20 '21 05:01 leechristensen

Happening to me too.

UP942901 avatar Jun 05 '21 12:06 UP942901

For the "Element not found" exception,it means that there is no creds stored on your device.

GetRektBoy724 avatar Oct 20 '21 10:10 GetRektBoy724

Someone has an idea about the CredEnum error?? Face the same issue rn Thank you for your time

iNoSec2 avatar Feb 18 '22 19:02 iNoSec2