16 Win priv. esc. Hidden In plain view Flashcards
How use PS to find .txt, .ini file in a specific folder (such web server) (C:\xampp)
Get-ChildItem -Path C:\xampp -Include .txt,.ini -File -Recurse -ErrorAction SilentlyContinue
How use PS to find keepass file ?
Get-ChildItem -Path C:\ -Include *.kdbx -File -Recurse -ErrorAction SilentlyContinue
How use PS to search for all interesting none ciphered file ? (List common ext (6))
Get-ChildItem -Path C:\Users\dave\ -Include .txt,.pdf,.xls,.xlsx,.doc,.docx -File -Recurse -ErrorAction SilentlyContinue
How get Local groups of the current users is member of ?
whoami
net user <user></user>
From information retrievied via membership of local group, how run a command as other user ?
runas /user:backupadmin cmd