Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert action name load search hash to load hash. Update min_phantom_version to 5.5.0. #23

Merged
merged 1 commit into from
Jul 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ VARIABLE | REQUIRED | TYPE | DESCRIPTION
[pivot action](#action-pivot-action) - Find domains connected by any supported Iris Investigate search parameter
[reverse domain](#action-reverse-domain) - Extract IPs from a single domain response for further pivoting
[reverse ip](#action-reverse-ip) - Find domains with web hosting IP, NS IP or MX IP
[load search hash](#action-load-search-hash) - Load or monitor Iris Investigate search results by Iris Investigate export hash
[load hash](#action-load-hash) - Load or monitor Iris Investigate search results by Iris Investigate export hash
[reverse email](#action-reverse-email) - Find domains with email in Whois, DNS SOA or SSL certificate
[lookup domain](#action-lookup-domain) - Get all Iris Investigate data for a domain using the Iris Investigate API endpoint \(required\)
[enrich domain](#action-enrich-domain) - Get all Iris Investigate data for a domain except counts using the high volume Iris Enrich API endpoint \(if provisioned\)
Expand Down Expand Up @@ -210,7 +210,7 @@ action\_result\.summary | string |
summary\.total\_objects | numeric |
summary\.total\_objects\_successful | numeric |

## action: 'load search hash'
## action: 'load hash'
Load or monitor Iris Investigate search results by Iris Investigate export hash

Type: **investigate**
Expand Down
6 changes: 3 additions & 3 deletions domaintools_iris.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"product_vendor": "DomainTools",
"product_name": "DomainTools Iris Investigate",
"product_version_regex": ".*",
"min_phantom_version": "5.3.0",
"min_phantom_version": "5.5.0",
"python_version": "3",
"logo": "logo_domaintools_iris.svg",
"logo_dark": "logo_domaintools_iris_dark.svg",
Expand Down Expand Up @@ -717,10 +717,10 @@
"versions": "EQ(*)"
},
{
"action": "load search hash",
"action": "load hash",
"description": "Load or monitor Iris Investigate search results by Iris Investigate export hash",
"type": "investigate",
"identifier": "load_search_hash",
"identifier": "load_hash",
"read_only": true,
"parameters": {
"search_hash": {
Expand Down
8 changes: 4 additions & 4 deletions domaintools_iris_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class DomainToolsConnector(BaseConnector):
ACTION_ID_REVERSE_IP = "reverse_lookup_ip"
ACTION_ID_REVERSE_EMAIL = "reverse_whois_email"
ACTION_ID_REVERSE_DOMAIN = "reverse_lookup_domain"
ACTION_ID_LOAD_SEARCH_HASH = "load_search_hash"
ACTION_ID_LOAD_HASH = "load_hash"

def __init__(self):
# Call the BaseConnectors init first
Expand Down Expand Up @@ -343,8 +343,8 @@ def handle_action(self, param):
ret_val = self._reverse_whois_email(param)
elif action_id == self.ACTION_ID_REVERSE_DOMAIN:
ret_val = self._reverse_lookup_domain(param)
elif action_id == self.ACTION_ID_LOAD_SEARCH_HASH:
ret_val = self._load_search_hash(param)
elif action_id == self.ACTION_ID_LOAD_HASH:
ret_val = self._load_hash(param)

return ret_val

Expand Down Expand Up @@ -538,7 +538,7 @@ def _reverse_whois_email(self, param):
param.update(updates)
return self._pivot_action(param)

def _load_search_hash(self, param):
def _load_hash(self, param):
param_hash = param.get("search_hash") or ""
data = {
"pivot_type": "search_hash",
Expand Down