-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #377 from GreyNoise-Intelligence/new_features_and_…
…requests New features and requests
- Loading branch information
Showing
10 changed files
with
149 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
src/greynoise/cli/templates/ip_context_result_query.txt.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{% import "macros.txt.j2" as macros with context %} | ||
{%- if ip_context.seen %} | ||
<header>OVERVIEW</header> | ||
---------------------------- | ||
<key>Actor</key>: <value>{{ ip_context.actor }}</value> | ||
<key>Classification</key>: {{ macros.classification(ip_context.classification) }} | ||
<key>First seen</key>: <value>{{ ip_context.first_seen }}</value> | ||
<key>IP</key>: <value>{{ ip_context.ip }}</value> | ||
<key>Last seen</key>: <value>{{ ip_context.last_seen }}</value> | ||
{% if ip_context.tags -%} | ||
<key>Tags</key>: | ||
{%- call(tag) macros.verbose_list(ip_context.tags) -%} | ||
- <value>{{ tag }}</value> | ||
{% endcall -%} | ||
{% endif %} | ||
<header>METADATA</header> | ||
---------------------------- | ||
<key>ASN</key>: <value>{{ ip_context.metadata.asn }}</value> | ||
<key>Category</key>: <value>{{ ip_context.metadata.category }}</value> | ||
<key>Location</key>: <value>{{ ip_context.metadata.location }}</value> | ||
<key>Region</key>: <value>{{ ip_context.metadata.region }}</value> | ||
<key>Organization</key>: <value>{{ ip_context.metadata.organization }}</value> | ||
<key>OS</key>: <value>{{ ip_context.metadata.os }}</value> | ||
<key>rDNS</key>: <value>{{ ip_context.metadata.rdns }}</value> | ||
<key>Spoofable</key>: <value>{{ ip_context.spoofable|string }}</value> | ||
<key>Tor</key>: <value>{{ ip_context.metadata.tor }}</value> | ||
|
||
<header>RAW DATA</header> | ||
---------------------------- | ||
{%- if ip_context.cve %} | ||
[CVE] | ||
{%- call(cve) macros.verbose_list(ip_context.cve) -%} | ||
- <key>CVE</key>: <value>{{ cve }}</value> | ||
{% endcall -%} | ||
{% endif %} | ||
|
||
{%- if ip_context.raw_data.scan %} | ||
[Scan] | ||
{%- call(scan) macros.verbose_list(ip_context.raw_data.scan) -%} | ||
- <key>Port/Proto</key>: <value>{{ scan.port }}/{{ scan.protocol }}</value> | ||
{% endcall -%} | ||
{% endif %} | ||
|
||
{%- if ip_context.raw_data.web.paths %} | ||
[Paths] | ||
{%- call(path) macros.verbose_list(ip_context.raw_data.web.paths) -%} | ||
- <value>{{ path }}</value> | ||
{% endcall -%} | ||
{% endif %} | ||
|
||
{%- if ip_context.raw_data.web.useragents %} | ||
[Useragents] | ||
{%- call(useragent) macros.verbose_list(ip_context.raw_data.web.useragents) -%} | ||
- <value>{{ useragent }}</value> | ||
{% endcall -%} | ||
{% endif %} | ||
|
||
{%- if ip_context.raw_data.ja3 %} | ||
[JA3] | ||
{%- call(ja3) macros.verbose_list(ip_context.raw_data.ja3) -%} | ||
- <key>Port</key>: <value>{{ ja3.port }}</value>, <key>Fingerprint</key>: <value>{{ ja3.fingerprint }}</value> | ||
{% endcall -%} | ||
{% endif %} | ||
{%- elif ip_context.error %} | ||
{{ ip_context.error }} | ||
{% else %} | ||
{{ ip_context.ip }} has not been seen in scans in the past 30 days. | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters