The calculated distance (air line) between Hangu and Attock City is approximately 77 miles respectively 123 kilometers.
By car or train, the actual journey to Attock City is certainly longer, as only the direct route (as the crow flies) between Hangu and Attock City has been calculated here.
Air line (approximately)
123 kilometers
66 nautical miles