It really depends on the exact parameters of the problem, Where exactly is the base located with respect to the day/night terminator? How deep into the daylight side do you need the attack to come from? (In other words are you planning to do a "Red Baron" out of the Sun?)
Here's an diagram that might help.
The red line are the possible orbital/ballistic trajectory lines from the base (located where these lines cross).
The blue line is the day/night terminator and the yellow line an orbit the "comes out of the Sun" relative to the North pole (where the blue and yellow lines cross)
View attachment 112752
From the location of the base in the image, in order for the fighter to approach the North pole along the yellow line from the daylight side in two legs, the first leg would have to be along one of the red lines until it crosses the yellow line and then follow the yellow line in. Note that some trajectories of the first leg would pass close by the North Pole (one actually crosses the yellow line at the North pole. If this is to be stealth mission, you are going avoid those.
The the further the base is from the terminator, the fewer trajectories you have to choose from that will not pass close to the North pole. If the base were on the yellow line, then you have only one choice, fly completely around the planet. There is only one ballistic path line that intersects the yellow line, and that's the one that follows the yellow line.
The other option would be to break it up into three legs, One that crosses the terminator line at some point far enough away from the North pole, then changes to a new course that crosses the yellow line and finally one that follows the yellow line.
However, these types of course change can be costly in terms of delta V. A 90 degree change in an orbit of 100 km above the surface of Mercury requires ~4km/sec delta v. Just one such change will eat up your available delta V. It will take a minimum of 3.06 km/sec to get your fighter into such an orbit, and unless this is a suicide mission, at least the same to soft land the fighter. 3.06+3.06+4= 10.12 km/sec which exceeds your available delta v.