()
| 22043 | |
| 22044 | @app.route('/api/ip_whois', methods=['POST']) |
| 22045 | def ip_whois(): |
| 22046 | d = request.json or {} |
| 22047 | ip = (d.get('ip') or "").strip() |
| 22048 | services, hostnames = core.scan_ip_services(ip) if ip else ([], []) |
| 22049 | rdap = core.ip_rdap_lookup(ip) if ip else {"Status": " IP mancante"} |
| 22050 | out = {"ip": ip, "rdap": rdap, "reverse_dns": hostnames, "services": services} |
| 22051 | return jsonify(out) |
| 22052 | |
| 22053 | @app.route('/api/tg/export_participants', methods=['GET']) |
| 22054 | def tg_export_csv(): |
nothing calls this directly
no test coverage detected