SALISBURY FC scored four late goals on Bank Holiday Monday at the Ray Mac to turn the tables on Wimborne Town, who had led 2-1 with just seven minutes remaining.
Tobias Holmes' first half goal had put the visitors in front at the break.
Thomas Wright levelled on 64 minutes only for Louis Kellaway to restore Town's lead inside three minutes.
Lewis Benson made it 2-2 on 83 minutes with Kane O'Keefe putting Salisbury in front for the first time 60 seconds later.
A 90th minute spot kick by Wright made the three points safe before Benson added his second and his side's fifth three minutes into stoppage time.
The three-point haul, combined with Taunton Town being surprisingly held to a draw at home by Bideford means the Whites go second in the table ahead of the final round of fixtures.
They are one point ahead of Taunton meaning victory away at tenth-placed Bideford will guarantee them the runners-up slot. Taunton visit North Leigh, who are seventh.
Tiverton Town and Evesham United join Salisbury and Taunton in the play-offs.