rayhunter.configuration

class rayhunter.configuration.AnalyzerConfig(connection_redirect_2g_downgrade: bool, diagnostic_analyzer: bool, imsi_requested: bool, incomplete_sib: bool, lte_sib6_and_7_downgrade: bool, nas_null_cipher: bool, null_cipher: bool, test_analyzer: bool)[source]

Bases: object

The list of supported analyzers. Each attribute corresponds to a supported analyzer and is set to True if the analyzer is enabled.

connection_redirect_2g_downgrade: bool
diagnostic_analyzer: bool
imsi_requested: bool
incomplete_sib: bool
lte_sib6_and_7_downgrade: bool
nas_null_cipher: bool
null_cipher: bool
test_analyzer: bool
static from_dict(analyzer_config: dict)[source]
class rayhunter.configuration.Config(analyzers: AnalyzerConfig, colorblind_mode: bool, debug_mode: bool, device: str, enabled_notifications: List[str], key_input_mode: int, min_space_to_continue_recording_mb: int, min_space_to_start_recording_mb: int, ntfy_url: str | None, port: int, qmdl_store_path: str, ui_level: int)[source]

Bases: object

Rayhunter runtime configuration.

analyzers

Supported and enabled analyzers.

Type:

AnalyzerConfig

colorblind_mode

Change the color of the low and high vis displays.

Type:

bool

debug_mode

Enhance logging.

Type:

bool

device

The internal device name.

Type:

str

enabled_notifications

A list containing the types of enabled notifications.

Type:

List[str]

key_input_mode

Lock or enable key inputs.

Type:

int

min_space_to_continue_recording_mb

The minimum space (MB) needed to continue a recording.

Type:

int

min_space_to_start_recording_mb

The minimum space (MB) needed to start a recording.

Type:

int

port

The port number to listen on.

Type:

int

qmdl_store_path

The absolute path Rayhunter stores QMDL files.

Type:

str

ui_level

Change the display configuration.

Type:

int

to_dict() dict[source]

Convert this thing back to a dict so it can be POSTed back to the device.