It is proposed that single attosecond pulses be generated via electron's Thomson scattering of two counter-propagating laser pulses. In the case of linear polarization, the generation of a single attosecond pulse is highly sensitive to the carrier envelope phase (CEP). However, in the case of circular polarization, it is completely independent on the CEP, which will make circular polarization favorable to generate a stable attosecond X-ray pulse. For either linear or circular polarization, the radiation obtained by using two counter-propagating pulses can be much more intense than that obtained by only using one of these two pulses.