name: pwn-auth-prompt description: Drive PWN::Auth::Prompt from pwn_eval. license: MIT allowed-tools: [pwn, pwn_eval] metadata: bundled: true generated: true module: PWN::Auth::Prompt source: pwn/auth/prompt.rb
PWN::Auth::Prompt
This plugin is used to assist in masking a password when entered in via STDIN to prevent would-be shoulder surfers from obtaining password information. This plugin is useful when demonstrating the functionality of other SP plugins/modules. MFA can explicitly select a YubiKey OATH account without storing its secret; device failures never fall back to a prompt. Native OATH requires explicit confirm: true because HOTP advances counters and password-protected accounts can require authentication. Passwords and secret providers remain in memory; no automatic deletion or repair occurs.
When to use
Call PWN::Auth::Prompt from pwn_eval when the task needs this module.
Do not reimplement it in shell.
Methodologies
Generated from pwn/auth/prompt.rb. Prefer the public class methods below.
Class methods take (opts = {}) and read opts.
How to call
PWN::Auth::Prompt.help
PWN::Auth::Prompt.username(opts)
Public methods
usernamemask_passwordmfavalidate_mfa_optionsauthorshelp
Source
pwn/auth/prompt.rb
Verification
PWN::Auth::Prompt.respond_to?(:username) after the
module is loaded. Read the source for parameter names.
