score:7
Assuming your trip is very soon, Turkish Airlines flight 1889 departs Istanbul at 8:00 PM and arrives Vienna at 9:20 PM.
From Vienna, you could rent a car and drive to Krakow (4.5 hours). Or, if you can get to Wien Westbahnhof by 10:12 pm, there is an overnight train (D 406) arriving Krakow at 6:36 AM.
Upvote:2
Having spent about an hour looking at many possible combinations, the only way I found for you to make it in time is to fly to Berlin (there's Pegasus Airline flight 7854, leaving Istanbul at 22:55 and arriving to Berlin at 00:45 local time). Then hire a car at the airport and drive straight to Krakow. The drive is about 6 hours and through the night you shouldn't encounter much traffic.
If you add about an hour in Belin airport, this should put you in Krakow right about 8 am.
There are some easier options if you can leave Istanbul earlier (i.e. flights around 19:30 or so), but then you have to be at the airport in Istanbul no later than 18:30.