Robert Sloan grabbed the winner for Alloa as they produced another shock in the third round of the Scottish Cup with victory over Livingston.
The Scottish Premier League side took the lead when Paul Dalglish fired home from the spot after a rash challenge on the striker by Fraser Forrest.
But Ross Hamilton equalised with a header from a James Stevenson corner.
Stevenson then crossed for Sloan to fire the winner for the Division Two side and new boss Allan Maitland.
The result comes just days after Clyde's win over Celtic - and Alloa now await the winner of the replay between Queen of the South and Hamilton Accies.
Livi player-boss Paul Lambert brought in Manu Dorado and Allan Walker for Gabor Vincze and Jason Dair, but the changes failed to produce a more convincing performance.
Harald Pinxten blazed a shot wide early, but it was the Second Division's bottom side who started more comfortably.
Maitland, appointed on Monday, had taken over as manager and brought in Graeme Brown and John Ovenstone in place of Richard Walker and Paul Mortimer.
But they continued the momentum created under now-departed caretaker boss Gareth Evans on Saturday.
Former Hearts midfielder Sloan curled a 15-yard left-footed drive just wide.
Alloa goalkeeper James Evans misjudged the bounce of Paul Tierney's long ball, but Dalglish could not direct the ball from tight on the byline into the empty net.
Pinxten then failed to connect properly with a header from point-blank range from Robert Snodgrass' free-kick.
Brown hesitated when he had the chance to lift the ball over exposed Livi goalkeeper Roddy McKenzie.
Alloa looked comfortable despite a poor defensive record this season until centre-half Forrest rashly brought down Dalglish when he was turning away from goal.
The son of Scotland legend Kenny made no mistake from the spot.
Dalglish grew in confidence and sent an angled effort flying across goal.
David McGoewen headed wide from seven yards as Alloa threatened to equalise early in the second half.
Snodgrass sent a free-kick a couple of yards over as the part-timers appeared to tire.
But, as Mortimer was waiting to replace Hamilton, the striker's head met Stevenson's corner to flick the ball past McKenzie.
Mortimer instead replaced Brown moments after the equaliser.
Livi piled on the pressure, but Alloa scored on the break, Sloan firing home after a great run and cross from Stevenson.
Livingston: McKenzie, Mackay, Pinxten, Strong, Tierney, Dorado (Hoolahan 74), Brittain, Lambert (Dair 62), Walker, Snodgrass, Dalglish (Dorrans 61).
Subs Not Used: Roy, McNamee.
Booked: Pinxten, Tierney, Walker, Mackay.
Goal: Dalglish 38 pen.
Alloa: Evans, Townsley, Bolochoweckjy, Forest, Nicolson, Ovenstone, McGeowen, Graeme Brown (Mortimer 72), Sloan, Stevenson (Learmonth 86), Hamilton.
Subs Not Used: McGlynn, Quitongo, Muir.
Booked: Ovenstone, Bolochoweckjy.
Goals: Hamilton 70, Sloan 81.
Ref: C Richmond