MCPcopy Create free account
hub / github.com/CScorza/IntelOSINT / ip_whois

Function ip_whois

IntelOSINT.py:22045–22051  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22043
22044@app.route('/api/ip_whois', methods=['POST'])
22045def 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'])
22054def tg_export_csv():

Callers

nothing calls this directly

Calls 2

scan_ip_servicesMethod · 0.80
ip_rdap_lookupMethod · 0.80

Tested by

no test coverage detected