We present a method for high-order harmonics generation of N 2 and CO molecules under two-color circularly polarized counter-rotating laser pulses at frequencies of ω 0 and 2ω 0 . Pulse envelope in this investigation is sin-squared and the intensity of each laser beam is 2 × 10 14 W • cm −2 with ten-optical cycle (o.c.). We show that an isolated pulse with a pulse duration shorter than 20 attosecond from the superposition of several harmonics can be generated. Both two-color linearly-and bicircularly-polarized laser pulses are considered. Our results have also been compared with the outcomes of the previous theoretical works as well as experiment observations. It is found that for CO molecule, the bicircularly-polarized laser pulses are superior and more efficient, and it can generate narrower attosecond pulses than the linearly-polarized pulses. While for N 2 molecule, the two-color linearly-polarized pulses are more efficient, and it can generate narrower attosecond pulses than the bicircularlypolarized pulses. Furthermore, in order to demonstrate the origin of red-and blue-shifts in high-harmonic spectra, the effect of pulse duration on the high-order harmonics spectra is investigated. In addition, to obtain imaging on the temporal dependence of the electron densities, the time dependent electron localization function is used. Moreover, in order to study of the quantum trajectory of electrons, time-frequency analysis is utilized.