Alloa came from behind courtesy of a Kevin Crawley second-half double to beat Peterhead at Recreation Park.
Peterhead took the lead in the 28th minute when former Inverness striker Rory McAllister fired a free kick into the bottom corner from 25 yards.
Cawley latched onto Ryan McCord's pass to slot home the equaliser only 24 seconds after the restart.
After 66 minutes McCord again found Cawley whose curled shot netted from 12 yards to put the Wasps in front.
Alloa: Bain, James Doyle, Gordon, Harding, Docherty, Innes, Ryan McCord, Young (Caddis 75), Ross McCord (Campbell 83), Cawley, Holmes. Subs Not Used: McDowall, One, McCullagh.
Goals: Cawley 46, 67.
Peterhead: Jellema, Donald, Sellars, Rattray, McBain, David Ross (Sharp 75), Redman, Davidson (MacDonald 55), Deasley, McAllister, Bavidge (Conway 75). Subs Not Used: Duffy, Wyness.
Booked: Rattray, Donald, McAllister.
Goals: McAllister 30.
Ref: Barry Cook