Get stolen data/loot
()
| 6301 | extra['service_error_detail'] = detail |
| 6302 | _write_pwn_status_file('error', failure_message, 'error', extra) |
| 6303 | _update_pwn_config({'pwnagotchi_mode': 'pwnagotchi', 'pwnagotchi_last_status': failure_message}) |
| 6304 | _start_service_with_monitor('pwnagotchi.service', timeout=30) |
| 6305 | |
| 6306 | _emit_pwn_status_update() |
| 6307 | |
| 6308 | def resolve_ip_hostname(ip): |
| 6309 | try: |
| 6310 | if _is_valid_ipv4(ip): |
| 6311 | hostname, _, _ = socket.gethostbyaddr(ip) |
| 6312 | return hostname |
| 6313 | except (socket.herror, socket.gaierror): |
| 6314 | return '' |
nothing calls this directly
no test coverage detected