Skip to content

mgcfish/PSH-credBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

PSH-credBox

PowerShell to pop an error message and prompt for credentials. I found this useful where a user was a local admin, but UAC was set to 'always notify'. With the password you can do something like psexec to get SYSTEM or check for password re-use elsewhere.

"Features"

  • Wrapped into a function, so it can be loaded into memory and invoked at will.
  • Automatically grabs environment domain and username.
  • Loops infinitely if user clicks 'cancel' or 'x'.
  • Some vague attempt at verifying whether the password entered is likely to be legit (currently based on length).

Todo

  • Add proper PowerShell .SYNOPSIS and nice things like that.
  • Add a password complexity check, to reject a random 'lskfhklsdjf' keyboard mash. Maybe something that actually validates the creds?
  • Make the output prettier.

About

PowerShell to pop an error message and prompt for credentials

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors