Oil prices climbed to a five-month high on Friday, fueled by escalating tensions in the Middle East. A tech stock sell-off also showed signs of easing at the end of a volatile week.