Package cloud.pangeacyber.pangea.intel
Class FileIntelClient
java.lang.Object
cloud.pangeacyber.pangea.Client
cloud.pangeacyber.pangea.intel.FileIntelClient
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcalculateSHA256fromFile(String filepath) Deprecated.use reputation instead.Deprecated.use reputation instead.Deprecated.use reputation instead.Deprecated.use reputation instead.reputation(String hash, String hashType) Reputation checkreputation(String hash, String hashType, boolean verbose, boolean raw) Reputation check - hash, hashType, verbose, rawreputation(String hash, String hashType, String provider) Reputation check - hash, hashType, providerreputation(String hash, String hashType, String provider, boolean verbose, boolean raw) Reputation check - hash, hashType, provider, verbose, rawMethods inherited from class cloud.pangeacyber.pangea.Client
buildClient, buildPostRequest, doPost, fillPostHeaders, setCustomHeaders, setCustomUserAgent
-
Field Details
-
serviceName
-
-
Constructor Details
-
FileIntelClient
-
-
Method Details
-
lookup
public FileLookupResponse lookup(String hash, String hashType) throws PangeaException, PangeaAPIException Deprecated.use reputation instead.File reputation- Parameters:
hash- hash of the filehashType- Type of hash, can be "sha256", "sha1" or "md5"- Returns:
- FileLookupResponse
- Throws:
PangeaExceptionPangeaAPIException- Description:
- Retrieve file reputation from a default provider, using the file's hash.
- Example:
FileLookupResponse response = client.lookup( "142b638c6a60b60c7f9928da4fb85a5a8e1422a9ffdc9ee49e17e56ccca9cf6e", "sha256");
-
lookup
public FileLookupResponse lookup(String hash, String hashType, String provider) throws PangeaException, PangeaAPIException Deprecated.use reputation instead.File reputation - hash, hashType, provider- Parameters:
hash- hash of the filehashType- Type of hash, can be "sha256", "sha1" or "md5"provider- provider to get reputation from- Returns:
- FileLookupResponse
- Throws:
PangeaExceptionPangeaAPIException- Description:
- Retrieve file reputation from a provider, using the file's hash.
- Example:
FileLookupResponse response = client.lookup( "142b638c6a60b60c7f9928da4fb85a5a8e1422a9ffdc9ee49e17e56ccca9cf6e", "sha256", "reversinglabs");
-
lookup
public FileLookupResponse lookup(String hash, String hashType, boolean verbose, boolean raw) throws PangeaException, PangeaAPIException Deprecated.use reputation instead.File reputation - hash, hashType, verbose, raw- Parameters:
hash- hash of the filehashType- Type of hash, can be "sha256", "sha1" or "md5"verbose- select a more verbose responseraw- if true response include provider raw response. This should vary from one provider to another one.- Returns:
- FileLookupResponse
- Throws:
PangeaExceptionPangeaAPIException- Description:
- Retrieve file reputation from a default provider, using the file's hash.
- Example:
FileLookupResponse response = client.lookup( "142b638c6a60b60c7f9928da4fb85a5a8e1422a9ffdc9ee49e17e56ccca9cf6e", "sha256", true, false);
-
lookup
public FileLookupResponse lookup(String hash, String hashType, String provider, boolean verbose, boolean raw) throws PangeaException, PangeaAPIException Deprecated.use reputation instead.File reputation - hash, hashType, provider, verbose, raw- Parameters:
hash- hash of the filehashType- Type of hash, can be "sha256", "sha1" or "md5"provider- provider to get reputation fromverbose- select a more verbose responseraw- if true response include provider raw response. This should vary from one provider to another one.- Returns:
- FileLookupResponse
- Throws:
PangeaExceptionPangeaAPIException- Description:
- Retrieve file reputation from a provider, using the file's hash.
- Example:
FileLookupResponse response = client.lookup( "142b638c6a60b60c7f9928da4fb85a5a8e1422a9ffdc9ee49e17e56ccca9cf6e", "sha256", "reversinglabs", true, false);
-
reputation
public FileReputationResponse reputation(String hash, String hashType) throws PangeaException, PangeaAPIException Reputation check- Parameters:
hash- hash of the filehashType- Type of hash, can be "sha256", "sha1" or "md5"- Returns:
- FileReputationResponse
- Throws:
PangeaExceptionPangeaAPIException- Description:
- Retrieve file reputation from a default provider, using the file's hash.
- Example:
FileReputationResponse response = client.reputation( "142b638c6a60b60c7f9928da4fb85a5a8e1422a9ffdc9ee49e17e56ccca9cf6e", "sha256");
-
reputation
public FileReputationResponse reputation(String hash, String hashType, String provider) throws PangeaException, PangeaAPIException Reputation check - hash, hashType, provider- Parameters:
hash- hash of the filehashType- Type of hash, can be "sha256", "sha1" or "md5"provider- provider to get reputation from- Returns:
- FileReputationResponse
- Throws:
PangeaExceptionPangeaAPIException- Description:
- Retrieve file reputation from a provider, using the file's hash.
- Example:
FileReputationResponse response = client.reputation( "142b638c6a60b60c7f9928da4fb85a5a8e1422a9ffdc9ee49e17e56ccca9cf6e", "sha256", "reversinglabs");
-
reputation
public FileReputationResponse reputation(String hash, String hashType, boolean verbose, boolean raw) throws PangeaException, PangeaAPIException Reputation check - hash, hashType, verbose, raw- Parameters:
hash- hash of the filehashType- Type of hash, can be "sha256", "sha1" or "md5"verbose- select a more verbose responseraw- if true response include provider raw response. This should vary from one provider to another one.- Returns:
- FileReputationResponse
- Throws:
PangeaExceptionPangeaAPIException- Description:
- Retrieve file reputation from a default provider, using the file's hash.
- Example:
FileReputationResponse response = client.reputation( "142b638c6a60b60c7f9928da4fb85a5a8e1422a9ffdc9ee49e17e56ccca9cf6e", "sha256", true, false);
-
reputation
public FileReputationResponse reputation(String hash, String hashType, String provider, boolean verbose, boolean raw) throws PangeaException, PangeaAPIException Reputation check - hash, hashType, provider, verbose, raw- Parameters:
hash- hash of the filehashType- Type of hash, can be "sha256", "sha1" or "md5"provider- provider to get reputation fromverbose- select a more verbose responseraw- if true response include provider raw response. This should vary from one provider to another one.- Returns:
- FileReputationResponse
- Throws:
PangeaExceptionPangeaAPIException- Description:
- Retrieve file reputation from a provider, using the file's hash.
- Example:
FileReputationResponse response = client.reputation( "142b638c6a60b60c7f9928da4fb85a5a8e1422a9ffdc9ee49e17e56ccca9cf6e", "sha256", "reversinglabs", true, false);
-
calculateSHA256fromFile
- Throws:
PangeaException
-