WiFi Pineapple Python Command Helpers
Table of contents
Introduction
Python API
Functions
def grep_output(command: str, grep_text: str, grep_options: List[str] = None) -> bytes
For example this command:
ps -aux | grep pineap
Looks like this:
grep_output('ps -aux', 'pineap')
Parameters
- command: The initial command to run.
- grep_text: The text to grep for.
- grep_options: Any options to be passed to grep.
Returns
- bytes: The output as bytes.
def check_for_process(process_name) -> bool
Parameters
- process_name: The name of the process to look for.
Returns
- bool: True if the process is running, False if it is not.