MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / run_single_scan

Function run_single_scan

webapp_modern.py:8834–8846  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8832 else:
8833 success, detail = _start_service_with_monitor('ragnar.service')
8834 if success:
8835 logger.info("Ragnar service reported active; stopping Pwnagotchi and bettercap services")
8836 _stop_service('pwnagotchi.service')
8837 _stop_service('bettercap.service')
8838 message = 'Ragnar service is running'
8839 _write_pwn_status_file('running', message, 'swap', {'target_mode': 'ragnar'})
8840 _update_pwn_config({'pwnagotchi_mode': 'ragnar', 'pwnagotchi_last_status': message})
8841 else:
8842 logger.error(f"Ragnar service failed to start: {detail}")
8843 failure_message = _format_service_failure_message('ragnar.service')
8844 extra = {'target_mode': 'pwnagotchi'}
8845 if detail:
8846 extra['service_error_detail'] = detail
8847 _write_pwn_status_file('error', failure_message, 'error', extra)
8848 _update_pwn_config({'pwnagotchi_mode': 'pwnagotchi', 'pwnagotchi_last_status': failure_message})
8849 _start_service_with_monitor('pwnagotchi.service', timeout=30)

Callers

nothing calls this directly

Calls 4

NmapVulnScannerClass · 0.90
scan_callbackFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected