Spinner Keshav Maharaj took seven wickets to help the Proteas dismiss Pakistan for 333 in the second Test in Rawalpindi on Tuesday.
The hosts resumed the second day on 259-5 but Maharaj ran through their batting with figures of 7-102, his 12th haul of five wickets or more in Tests.
Shan Masood, the captain, top-scored with 87.
The Proteas were 9-0 at lunch.
Photo: Sameer Ali/Getty Images