Class FileIntelClient

java.lang.Object
cloud.pangeacyber.pangea.Client
cloud.pangeacyber.pangea.intel.FileIntelClient

public class FileIntelClient extends Client
  • Field Details

    • serviceName

      public static String serviceName
  • Constructor Details

    • FileIntelClient

      public FileIntelClient(Config config)
  • Method Details

    • lookup

      public FileLookupResponse lookup(String hash, String hashType) throws PangeaException, PangeaAPIException
      Deprecated.
      use reputation instead.
      File reputation
      Parameters:
      hash - hash of the file
      hashType - Type of hash, can be "sha256", "sha1" or "md5"
      Returns:
      FileLookupResponse
      Throws:
      PangeaException
      PangeaAPIException
      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 file
      hashType - Type of hash, can be "sha256", "sha1" or "md5"
      provider - provider to get reputation from
      Returns:
      FileLookupResponse
      Throws:
      PangeaException
      PangeaAPIException
      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 file
      hashType - Type of hash, can be "sha256", "sha1" or "md5"
      verbose - select a more verbose response
      raw - if true response include provider raw response. This should vary from one provider to another one.
      Returns:
      FileLookupResponse
      Throws:
      PangeaException
      PangeaAPIException
      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 file
      hashType - Type of hash, can be "sha256", "sha1" or "md5"
      provider - provider to get reputation from
      verbose - select a more verbose response
      raw - if true response include provider raw response. This should vary from one provider to another one.
      Returns:
      FileLookupResponse
      Throws:
      PangeaException
      PangeaAPIException
      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 file
      hashType - Type of hash, can be "sha256", "sha1" or "md5"
      Returns:
      FileReputationResponse
      Throws:
      PangeaException
      PangeaAPIException
      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 file
      hashType - Type of hash, can be "sha256", "sha1" or "md5"
      provider - provider to get reputation from
      Returns:
      FileReputationResponse
      Throws:
      PangeaException
      PangeaAPIException
      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 file
      hashType - Type of hash, can be "sha256", "sha1" or "md5"
      verbose - select a more verbose response
      raw - if true response include provider raw response. This should vary from one provider to another one.
      Returns:
      FileReputationResponse
      Throws:
      PangeaException
      PangeaAPIException
      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 file
      hashType - Type of hash, can be "sha256", "sha1" or "md5"
      provider - provider to get reputation from
      verbose - select a more verbose response
      raw - if true response include provider raw response. This should vary from one provider to another one.
      Returns:
      FileReputationResponse
      Throws:
      PangeaException
      PangeaAPIException
      Description:
      Retrieve file reputation from a provider, using the file's hash.
      Example:
      FileReputationResponse response = client.reputation( "142b638c6a60b60c7f9928da4fb85a5a8e1422a9ffdc9ee49e17e56ccca9cf6e", "sha256", "reversinglabs", true, false);
    • calculateSHA256fromFile

      public static String calculateSHA256fromFile(String filepath) throws PangeaException
      Throws:
      PangeaException