Skip to content

Instantly share code, notes, and snippets.

@KyleHanslovan
Created June 25, 2016 12:36
Show Gist options
  • Save KyleHanslovan/cadf9737401b85422c84091855473eb7 to your computer and use it in GitHub Desktop.
Save KyleHanslovan/cadf9737401b85422c84091855473eb7 to your computer and use it in GitHub Desktop.
Post-exploitation host/domain survey using native Windows commands.
whoami & hostname & ipconfig /all & net user /domain 2>&1 & net group /domain 2>&1 & net group "domain admins" /domain 2>&1 & net group "Exchange Trusted Subsystem" /domain 2>&1 & net accounts /domain 2>&1 & net user 2>&1 & net localgroup administrators 2>&1 & netstat -an 2>&1 & tasklist 2>&1 & sc query 2>&1 & systeminfo 2>&1 & reg query "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default" 2>&1
@filipesam
Copy link

ARP -a

@filipesam
Copy link

Route print

@leesoh
Copy link

leesoh commented Jul 6, 2016

net localgroup "Remote Desktop Users"
netstat -ano

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment