pwnlib.ui — Functions for user interaction¶
-
pwnlib.ui.more(text)[source]¶ Shows text like the command line tool
more.It not in term_mode, just prints the data to the screen.
Parameters: text (str) – The text to show. Returns: None
-
pwnlib.ui.options(prompt, opts, default=None)[source]¶ Presents the user with a prompt (typically in the form of a question) and a number of options.
Parameters: - prompt (str) – The prompt to show
- opts (list) – The options to show to the user
- default – The default option to choose
Returns: The users choice in the form of an integer.