GetCurrentDomain with 0 argument(s): Current security context is not associated with an Active Directory domain or forest
Hello,
So I was trying to emulate this attack (specifically the carbanak attack) using Virtual Machines in VirtualBox, along with a Kali VM (I've tried my Windows Machine to be a combination of all the target VMs).
However, when I get to Step 4.A 4 in the carbanak attack, which is meterpreter > powershell_execute Get-NetComputer
, I get the following error GetCurrentDomain with 0 argument(s): Current security context is not associated with an Active Directory domain or forest
.
I wanted to know why would this happen and how would I be able to fix this? If it helps, both the VMs were using Host Only network (so no internet) with a static IP Addresses, however, ofcourse, I can connect to internet using the VM.