Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PierreGode/Ragnar
/ functions
Functions
6,046 in github.com/PierreGode/Ragnar
⨍
Functions
6,046
◇
Types & classes
587
↳
Endpoints
304
Function
test_get_handoff_options_after_ok_scan
()
tests/test_recon_engine.py:188
Function
test_get_handoff_options_missing_scan
()
tests/test_recon_engine.py:211
Function
test_get_records_orders_classified_first
(collector)
tests/test_tls_fingerprint.py:135
Function
test_heavy_ephemeral_targeting_alerts_medium
Host initiates to 200 unique high ports — MEDIUM alert.
tests/test_portscan_false_positives.py:148
Function
test_horizontal_sweep_one_port_many_hosts_alerts
Scanner hits port 445 across 12 hosts — sweep alert fires.
tests/test_portscan_false_positives.py:282
Function
test_ip_to_pseudo_mac
(ip, expected)
tests/test_passive_host_discovery.py:139
Function
test_is_available_reflects_tshark_presence
()
tests/test_tls_fingerprint.py:154
Function
test_is_broadcast_or_multicast
(ip, expected)
tests/test_broadcast_suppression.py:43
Function
test_is_interesting_path_admin
()
tests/test_recon_engine.py:64
Function
test_is_interesting_path_boring
()
tests/test_recon_engine.py:79
Function
test_is_interesting_path_env
()
tests/test_recon_engine.py:69
Function
test_is_interesting_path_skips_forbidden
()
tests/test_recon_engine.py:74
Function
test_is_internal
(ip, expected)
tests/test_traffic_analyzer_beacon.py:65
Function
test_is_lan_ip
(analyzer, ip, expected)
tests/test_passive_host_discovery.py:56
Function
test_lan_networks_include_gateway_and_local_subnet
(analyzer)
tests/test_passive_host_discovery.py:39
Function
test_listening_port_not_recorded_for_ephemeral
(analyzer)
tests/test_passive_host_discovery.py:109
Function
test_listening_port_not_recorded_for_non_lan
(analyzer)
tests/test_passive_host_discovery.py:120
Function
test_listening_port_recorded_for_high_value_high_port
(analyzer)
tests/test_passive_host_discovery.py:101
Function
test_listening_port_recorded_when_well_known_dst
(analyzer)
tests/test_passive_host_discovery.py:93
Function
test_load_signatures_missing_file
(tmp_path)
tests/test_tls_fingerprint.py:48
Function
test_load_signatures_parses_valid_yaml
(tmp_path)
tests/test_tls_fingerprint.py:53
Function
test_load_signatures_skips_invalid_entries
(tmp_path)
tests/test_tls_fingerprint.py:68
Function
test_looks_like_md5
(s, expected)
tests/test_tls_fingerprint.py:44
Function
test_looks_like_response
(analyzer, my_port, peer_port, expected)
tests/test_portscan_false_positives.py:61
Function
test_match_callback_fires_only_on_new_known
(collector)
tests/test_tls_fingerprint.py:125
Function
test_max_records_evicts_oldest
()
tests/test_tls_fingerprint.py:145
Function
test_non_tcp_only_port_is_unaffected_by_proto
(analyzer)
tests/test_broadcast_suppression.py:96
Function
test_normalize_base_url_bare_host
()
tests/test_recon_engine.py:43
Function
test_normalize_base_url_with_scheme
()
tests/test_recon_engine.py:38
Function
test_parse_empty_returns_none
()
tests/test_irc_dpi.py:32
Function
test_parse_lowercase_command_normalises
()
tests/test_irc_dpi.py:37
Function
test_parse_simple_command
()
tests/test_irc_dpi.py:12
Function
test_parse_trailing_with_spaces
()
tests/test_irc_dpi.py:26
Function
test_parse_with_prefix
()
tests/test_irc_dpi.py:19
Function
test_parse_zap_alert_filters_explicit_false_positive_confidence
()
tests/test_zap_sql_false_positives.py:33
Function
test_parse_zap_alert_filters_low_confidence_low_risk_sql_noise
()
tests/test_zap_sql_false_positives.py:42
Function
test_parse_zap_alert_keeps_higher_confidence_sql_alerts
()
tests/test_zap_sql_false_positives.py:57
Function
test_parse_zap_alert_keeps_non_sql_low_confidence_alerts
()
tests/test_zap_sql_false_positives.py:68
Function
test_parser_does_not_sample_broadcast_for_beacon
(analyzer)
tests/test_broadcast_suppression.py:112
Function
test_parser_does_not_sample_multicast_for_beacon
(analyzer)
tests/test_broadcast_suppression.py:121
Function
test_parser_records_external_outbound_flow
(analyzer)
tests/test_traffic_analyzer_beacon.py:200
Function
test_parser_still_samples_external_unicast_for_beacon
(analyzer)
tests/test_broadcast_suppression.py:129
Function
test_part_removes_channel
(parser)
tests/test_irc_dpi.py:131
Function
test_passive_sync_calls_update_ping_status_for_observed_hosts
Every passively-synced host should also get a liveness ping update.
tests/test_passive_host_discovery.py:318
Function
test_passive_sync_creates_new_host_with_real_mac
(analyzer)
tests/test_passive_host_discovery.py:154
Function
test_passive_sync_does_not_touch_non_lan_hosts
(analyzer)
tests/test_passive_host_discovery.py:245
Function
test_passive_sync_merges_ports_with_existing_host
(analyzer)
tests/test_passive_host_discovery.py:176
Function
test_passive_sync_no_op_when_db_unavailable
(analyzer)
tests/test_passive_host_discovery.py:279
Function
test_passive_sync_resurrects_degraded_host_with_pseudo_mac
A host whose only known MAC is pseudo still gets liveness.
tests/test_passive_host_discovery.py:338
Function
test_passive_sync_skips_host_without_mac_below_threshold
(analyzer)
tests/test_passive_host_discovery.py:211
Function
test_passive_sync_skips_ragnar_own_ip
(analyzer)
tests/test_passive_host_discovery.py:260
Function
test_passive_sync_skips_when_existing_host_and_no_new_ports
Existing host with all our observed ports — no DB write needed.
tests/test_passive_host_discovery.py:288
Function
test_passive_sync_update_ping_failure_does_not_crash
If update_ping_status raises, sync continues.
tests/test_passive_host_discovery.py:356
Function
test_passive_sync_upserts_host_with_pseudo_mac_when_threshold_met
(analyzer)
tests/test_passive_host_discovery.py:226
Function
test_pending_ssid_reset_when_target_changes
Pending SSID-A then observing SSID-B resets the timer.
tests/test_wifi_ssid_debounce.py:103
Function
test_ports_contacted_still_tracks_all_peer_ports
UI view of `ports_contacted` should include both directions' ports.
tests/test_portscan_false_positives.py:346
Function
test_process_line_aggregates_repeats
(collector)
tests/test_tls_fingerprint.py:114
Function
test_process_line_classifies_known_signature
(collector)
tests/test_tls_fingerprint.py:97
Function
test_process_line_creates_record
(collector)
tests/test_tls_fingerprint.py:83
Function
test_process_line_rejects_garbage
(collector)
tests/test_tls_fingerprint.py:106
Function
test_propagation_failure_does_not_raise
set_active_network raising should not break the manager.
tests/test_wifi_ssid_debounce.py:118
Function
test_pushover
Send a test Pushover notification.
webapp_modern.py:19436
Function
test_real_low_port_scan_alerts_high
Attacker probes 25 well-known ports — HIGH severity port-scan alert.
tests/test_portscan_false_positives.py:129
Function
test_recon_result_serialization
()
tests/test_recon_engine.py:84
Function
test_recon_scan_state_serialization
()
tests/test_recon_engine.py:97
Function
test_registrable_domain_empty
()
tests/test_recon_engine.py:59
Function
test_registrable_domain_multi_label_tld
()
tests/test_recon_engine.py:53
Function
test_registrable_domain_simple
()
tests/test_recon_engine.py:48
Function
test_response_packet_does_not_count_as_initiation
If we see the request first, the response shouldn't be counted.
tests/test_portscan_false_positives.py:258
Function
test_robust_tracking
Test endpoint to verify robust tracking logic is working
webapp_modern.py:7652
Function
test_same_ssid_as_active_does_not_propagate
If the new value equals the storage's active SSID — no-op.
tests/test_wifi_ssid_debounce.py:51
Function
test_score_flow_accepts_regular_beacon
(analyzer)
tests/test_traffic_analyzer_beacon.py:93
Function
test_score_flow_rejects_jittery_intervals
(analyzer)
tests/test_traffic_analyzer_beacon.py:78
Function
test_score_flow_rejects_sub_minimum_interval
(analyzer)
tests/test_traffic_analyzer_beacon.py:87
Function
test_score_flow_rejects_too_few_samples
(analyzer)
tests/test_traffic_analyzer_beacon.py:73
Function
test_score_flow_size_jitter_lowers_score
(analyzer)
tests/test_traffic_analyzer_beacon.py:104
Function
test_session_event_callback_fires
(parser)
tests/test_irc_dpi.py:140
Function
test_source_port_53_against_high_value_ports_still_counts
`nmap -g 53` against Redis/Mongo/ES/Docker must NOT evade detection.
tests/test_portscan_false_positives.py:210
Function
test_split_host_port_bare_host
()
tests/test_recon_engine.py:23
Function
test_split_host_port_explicit_port
()
tests/test_recon_engine.py:18
Function
test_split_host_port_host_with_port
()
tests/test_recon_engine.py:28
Function
test_split_host_port_http_url_defaults_80
()
tests/test_recon_engine.py:33
Function
test_split_host_port_https_url
()
tests/test_recon_engine.py:13
Function
test_sqli_reflection_requires_sql_error_signals
()
tests/test_zap_sql_false_positives.py:84
Function
test_ssid_change_reverting_aborts_pending
A new SSID seen, then reverting back to original → pending cleared.
tests/test_wifi_ssid_debounce.py:90
Function
test_subnet_directed_broadcast_on_irc_port_does_not_alert
(analyzer)
tests/test_broadcast_suppression.py:61
Function
test_sweep_dedup_per_src_port_pair
Repeated sweep observations should not spam alerts.
tests/test_portscan_false_positives.py:315
Function
test_sweep_does_not_realert_on_same_score
(analyzer)
tests/test_traffic_analyzer_beacon.py:137
Function
test_sweep_fires_alert_for_clean_beacon
(analyzer)
tests/test_traffic_analyzer_beacon.py:116
Function
test_sweep_only_counts_relevant_ports
Random high port across many hosts should NOT trigger sweep.
tests/test_portscan_false_positives.py:299
Function
test_sweep_realerts_when_score_climbs_significantly
(analyzer)
tests/test_traffic_analyzer_beacon.py:148
Function
test_sweep_respects_throttle_interval
(analyzer)
tests/test_traffic_analyzer_beacon.py:176
Function
test_sweep_skips_denylisted_ports_via_parser
(analyzer)
tests/test_traffic_analyzer_beacon.py:190
Function
test_tcp_unicast_on_irc_port_still_alerts
(analyzer)
tests/test_broadcast_suppression.py:84
Function
test_transient_ssid_misread_does_not_propagate
Single flap to a different SSID inside the debounce window → no call.
tests/test_wifi_ssid_debounce.py:64
Function
test_udp_broadcast_on_irc_port_does_not_alert
(analyzer)
tests/test_broadcast_suppression.py:51
Function
test_udp_unicast_on_irc_port_does_not_alert
(analyzer)
tests/test_broadcast_suppression.py:72
Function
text
Current display string — the held number while still fresh, else "—".
web/rusense/app/vital-hold.js:33
Method
text_width
Get width of text in pixels.
pager/test_pager_code.py:245
Method
text_width
Get width of text in pixels.
pager/pagerctl.py:405
← previous
next →
5,701–5,800 of 6,046, ranked by callers