def vulnerability_callback(id, type, server_addr, server_port, applications):
 logger.critical(('Vulnerability %s in connection %s to %s:%s by %s' % (type, id, server_addr, server_port, ', '.join((('%s version %s' % (app.application, app.version)) for app in applications)))))

def vulnerability_callback ( id , type , server_addr , server_port , applications ) : logger . critical ( ( 'Vulnerability %s in connection %s to %s:%s by %s' % ( type , id , server_addr , server_port , ', ' . join ( ( ( '%s version %s' % ( app . application , app . version ) ) for app in applications ) ) ) ) )
called when a vulnerability is reported .