Sensex, Nifty scaled all-time highs amid positive global cues on growing hopes of a US Fed rate cut and foreign fund inflows.