Is there a nice reference where I can get the information of $H^*(BG)$ with coefficients in $\mathbb{Z}$ or $\mathbb{Z}/p\mathbb{Z}$, with $G$ not just $SO$ or $U$ but for example $G=PSU(n)$, $Pin(n)$, $SO(2n)/\{\pm 1\}$, or $Aut(E_6)$?
I'm happy if I could get the info on the structure of the cohomology up to the degree 4 (as a 4d gauge theorist) or to the degree 10 (as a string theorist.)