Skip to content
This repository was archived by the owner on Jan 21, 2021. It is now read-only.
This repository was archived by the owner on Jan 21, 2021. It is now read-only.

PowerView: Do some Pester tests require a domain? #88

@ghost

Description

The following Recon.tests.ps1 tests are failing due to the fact that my machine is not attached to a domain:

  • Invoke-UserHunter
  • Invoke-StealthUserHunter
  • Invoke-ProcessHunter
  • Invoke-ShareFinder
  • Invoke-FileFinder
  • Find-LocalAdminAccess
  • Invoke-EnumerateLocalAdmin
Assert failed on "GetCurrentDomain" with "0" argument(s): "Current security context is not associated with an Active Directory domain or forest."

I realize that these functions are best used on a domain joined machine but for the purposes of Pester tests, is that what you intend to do?

These tests also assume that %userdnsdomain% is defined. It isn't defined on my non domain-joined machine.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions