Skip to content

Latest commit

 

History

History

CredPrompt

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

CredPrompt

Start Windows credential prompt in an attempt to capture user credentials. Entered credentials are returned as output. The prompt is persistent so the victim can't cancel/close the prompt or enter an empty password. Any user attempt to do so is shown in the output. Finally, a timer is set on the prompt to make sure the beacon will return at some point.

For the duration of the prompt, the beacon is occupied so set a reasonable timer.

Arguments

  • title: a custom window title.
  • message: a custom message set in the window.
  • timer: number in seconds after how long the prompt should auto close. Default is set to 60.

Usage

  • credprompt <title> <message> <(optional) time out>

Examples

Compile

  • 1. Make sure Visual Studio is installed and supports C/C++.
  • 2. Open the x64 Native Tools Command Prompt for VS <2019/2022> terminal.
  • 3. Run the bofcompile.bat script to compile the object file.
  • 4. In Cobalt strike, use the script manager to load the .cna script to import the tool.