Preventing rust becore paint

It would make a mess but I would probably spend 20 bucks on one of those guns that hold media and spray the rust out of the pits. Shouldn't take very long if the entire car isn't coated in them.