Beta_Integrations/ProofpointThreatResponse/ProofpointThreatResponse.py
def block_hash_command():
    ''' Adds given hashes to the relevant blacklist in Threat Response '''
    list_id = demisto.params().get('blacklist_hash')
    hashes = argToList(demisto.args().get('hash'))
    expiration = demisto.args().get('expiration')

    message = ''
    for h in hashes:
        add_to_list(list_id, h, None, expiration)
        message += '{} added successfully to block_hash list\n'.format(h)

    demisto.results(message)
 Adds given hashes to the relevant blacklist in Threat Response 
Adds given hashes to the relevant blacklist in Threat Response
Adds given hashes to the relevant blacklist in Threat Response
def block_hash_command():
    list_id = demisto.params().get('blacklist_hash')
    hashes = argToList(demisto.args().get('hash'))
    expiration = demisto.args().get('expiration')
    message = ''
    for h in hashes:
        add_to_list(list_id, h, None, expiration)
        message += '{} added successfully to block_hash list\n'.format(h)
    demisto.results(message)
def block_hash_command ( ) : list_id = demisto . params ( ) . get ( 'blacklist_hash' ) hashes = argToList ( demisto . args ( ) . get ( 'hash' ) ) expiration = demisto . args ( ) . get ( 'expiration' ) message = '' for h in hashes : add_to_list ( list_id , h , None , expiration ) message += '{} added successfully to block_hash list\n' . format ( h ) demisto . results ( message )
Adds given hashes to the relevant blacklist in Threat Response
Adds given hashes to the relevant blacklist in Threat Response
''' Adds given hashes to the relevant blacklist in Threat Response '''