An earthquake measuring 7.7 on the Richter scale rocked Pakistan's northern areas including the capital Islamabad, Dawn reported.