Look before you leap, in this case, think before you yank.
Option 1: Go in the attic, glue on a cap and shove the pipe back up there. Im assuming a rubber All-Vent?
Option 2, The Right way: Remove the flashing, cover the hole with sheet metal and properly install shingles. You did have them leave you a square or so when you had the roof done, right?