def parse_attack(self, result):
     output = Output(self)
     if result:
         output.success(result)
     else:
         output.fail('Internet nothing returned')
     return output
Exemple #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
Exemple #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