mirror of https://github.com/MISP/misp-modules
Added cryptocurrencies types
parent
f0ef4ee71d
commit
572a97d1ee
|
@ -151,17 +151,21 @@ def handler(q=False):
|
||||||
if attribute_type == "email":
|
if attribute_type == "email":
|
||||||
result = client.find_email(attribute_value)
|
result = client.find_email(attribute_value)
|
||||||
elif attribute_type == "domain":
|
elif attribute_type == "domain":
|
||||||
result = client.search(attribute_value)
|
result = client.find_url(attribute_value)
|
||||||
elif attribute_type == "url":
|
elif attribute_type == "url":
|
||||||
result = client.find_url(attribute_value)
|
result = client.find_url(attribute_value)
|
||||||
elif attribute_type == "text":
|
elif attribute_type == "text":
|
||||||
result = client.search(attribute_value)
|
result = client.search(attribute_value)
|
||||||
elif attribute_type == "target-org":
|
elif attribute_type == "target-org":
|
||||||
result = client.search(attribute_value)
|
result = client.search(attribute_value)
|
||||||
elif attribute_type == "btc":
|
|
||||||
result = client.search(attribute_value)
|
|
||||||
elif attribute_type == "phone-number":
|
elif attribute_type == "phone-number":
|
||||||
result = client.search(attribute_value)
|
result = client.search(attribute_value)
|
||||||
|
elif attribute_type == "btc":
|
||||||
|
result = client.find_wallet("BTC",attribute_value)
|
||||||
|
elif attribute_type == "xmr":
|
||||||
|
result = client.find_wallet("XMR",attribute_value)
|
||||||
|
elif attribute_type == "dash":
|
||||||
|
result = client.find_wallet("DASH",attribute_value)
|
||||||
|
|
||||||
if result is None:
|
if result is None:
|
||||||
return {"results": {}}
|
return {"results": {}}
|
||||||
|
|
Loading…
Reference in New Issue