text: #!/usr/bin/env python
  
  from canari.maltego.entities import Phrase
  from canari.maltego.utils import debug, progress
  from canari.framework import configure #, superuser
  from common.entities import Hash
  from common.ripVT import *
  
  __author__ = '@matonis'
  __copyright__ = 'Copyright 2015, Ripvt Project'
  __credits__ = []
  
  __license__ = 'GPL'
  __version__ = '0.1'
  __maintainer__ = '@matonis'
  __email__ = 'dfir.matonis@gmail.com'
  __status__ = 'Development'
  
  __all__ = [
      'dotransform',
      'onterminate'
  ]
  
  @configure(
      label='[ripVT] - Search Generic',
      description='Searches Virus Total for hits matching generic search.',
      uuids=[ 'ripVT.v2.search_generic'],
      inputs=[ ( 'ripVT', Phrase )],
      remote=False,
      debug=True
  )
  def dotransform(request, response):
      
      search_param='%s' % str(request.value)
  
      hits=search_vt(search_param)
  
      if hits:
          for hsh in hits:
              r=Hash(str(hsh))
              r.linklabel="generic->VT"
              response+=r
  
      return response
  