Craig Wright grabbed 3-29 as minnows Scotland restricted Pakistan to 171-9 in a group D match of the Twenty20 world championships here.
Scotland, playing their first-ever Twenty20 international, rattled the strong Pakistani batting line-up with wickets at regular intervals on a seamer-friendly Kingsmead pitch on Wednesday.
John Blain, Dewald Nel and Majid Haq took two wickets apiece after Scottish captain Ryan Watson won the toss and elected to field.
Younis Khan was Pakistan's top-scorer with 41 off 29 balls, but none of the other star batsmen made big contributions.
Pakistan managed just 67 runs for the loss of three wickets at the half-way mark after the top order struggled to score against the steady Scottish attack.
Blain, who opened the bowling, had Imran Nazir snapped up at point in his second over and dismissed Salman Butt in his third to reduce Pakistan to 24-2.
Mohammad Hafeez made 18 when he drove back hard, only to see Wright take a smart return catch over his head.
Captain Shoaib Malik was stumped off the first ball of the 13th over to make Pakistan 81-4, but the joy was short-lived for young off-spinner Haq.
Shahid Afridi, who came in next, swung the first ball he faced for six and added a boundary and another six off the next two deliveries.
Younis hit a boundary off the last ball of Haq's over that realised 23 runs.
Afridi, who smashed 22 off seven balls, could not build on the score as he moved across his stumps and attempted a paddle sweep off Wright, only for Haq to grab the catch at short fine-leg.
Younis fell two overs later when he holed out against Haq to leave Pakistan tottering at 116-6 in the 16th over.
Misbah-ul Haq (23) and Kamran Akmal (16) put on 30 from 17 balls to boost the total which left Scotland needing nine runs an over to score an upset win.
The 12-nation tournament features the nine Test nations currently playing Test cricket along with Zimbabwe, Kenya and Scotland.