Skip to content

pfptcommunity/et-api-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Emerging Threats API Command Line Query Tool

This tool implements all of the functions of the ET 1.0 API and provides access to these functions via a BASH script.

Requirements

  • bash
  • curl
  • hexdump (for stdout ouput)
  • xxd (for stdout ouput)

Optional Tool

  • jq - Will help processing JSON on the command line

Configuration

Edit the et_api script and modify the following value:

declare -r API_AUTH="<enter_et_api_key_here>"

Showing Usage for API Components

et_command_line_options_main

Showing usage for reputation categories

et_command_line_options_categories

Showing usage for domains

et_command_line_options_domains

Showing usage for IPs

et_command_line_options_ip

Showing usage for samples

et_command_line_options_samples

Showing usage for SIDS

et_command_line_options_sids

Basic Usage Examples

Query Reputation Categories

The following is an example of how to pull reputation categories from ET API (pretty json): et_command_line_options_query_categories

The following is an example of how to pull reputation categories from ET API (list format): et_command_line_options_query_categories_jq

Query IP Geo Location

et_command_line_options_query_ip_rep

Revisions

03/27/2017 - Initial Release
06/06/2020 - Fixed CURL rvalue issue
08/30/2021 - Fixed CURL command return codes

About

Emerging Threats API Command Line Query Tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages