sense-of-security / ADRecon

ADRecon is a tool which gathers information about the Active Directory and generates a report which can provide a holistic picture of the current state of the target AD environment.
https://senseofsecurity.com.au/
GNU Affero General Public License v3.0
1.7k stars 279 forks source link

existing credential #2

Open GalacticMaster opened 6 years ago

GalacticMaster commented 6 years ago

Hey,

it is asking me for credentials, why can it uses existing credentials.

prashant3535 commented 6 years ago

Hi, can you provide the command used and the output ?

ADRecon will ask for credentials in the following conditions: (excluding RUNAS)

In these conditions, a PSCredential object is expected (-Credential parameter) and the Domain Controller FQDN/IP Address (-DomainController parameter).

Example: (Domain Controller IP address is 192.168.9.1)

$creds = Get-Credential
.\ADRecon.ps1 -DomainController 192.168.9.1 -Credential $creds
pxss commented 5 years ago

I use the machine in the domain, then log in with the domain user, which also needs credentials after execution.

prashant3535 commented 5 years ago

Hi @pxss,

Could you please share the exact command you are using and the output?

pxss commented 5 years ago

嗨@pxss,

你能否分享你正在使用的确切命令和输出?

.\ADRecon.ps1 -DomainController 192.168.9.1 -Credential test.com\testuser

prashant3535 commented 5 years ago

If you are using from a machine in the domain and logged in with the domain user, you dont need to specify the -DomainController and -Credential parameters.

.\ADRecon.ps1

Should work fine.

If you specify the -DomainController or -Credential parameter, you will be prompted for the credentials.