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