def parse_attack(self, result):
     output = Output(self)
     if result:
         output.success(result)
     else:
         output.fail('Internet nothing returned')
     return output
Ejemplo n.º 2
0
 def parse_attack(self, response):
     output = Output(self)
     result = {}
     if response:
         result['FileInfo'] = response
         output.success(result)
     else:
         output.fail('Internet Nothing returned')
     return output
Ejemplo n.º 3
0
 def parse_attack(self, response):
     output = Output(self)
     result = {}
     if response:
         result['FileInfo'] = {}
         result['FileInfo']['Filename'] = response
         result['FileInfo']['Filecontent'] = 'test123' * 10
         output.success(result)
     else:
         output.fail('Internet Nothing returned')
     return output