Let $G=S_3$ and let $H$ be the Sylow $3$-subgroup in $G$. If $\mathbb{Z}$ is the trivial module, then it can be shown that
$$H^n(H,\mathbb{Z})=\begin{cases}\mathbb{Z}&n=0\\0&n\text{ odd}\\\mathbb{Z}_3&n\text{ even}\end{cases}$$
Since $H$ is normal in $G$, $G$ acts on $H^n(H,\mathbb{Z})$ as follows. Let $g\in G$ and define $c_g:H\to H$ by $c_g(h)=ghg^{-1}$. Since $H^*(-,M)$ is contravariant, we obtain an isomorphism $c_g^*:H^n(H,\mathbb{Z})\to H^n(H,\mathbb{Z})$. Then, for $z\in H^n(H,\mathbb{Z})$, define $g\cdot z=(c_g^*)^{-1}(z)$.
There is another way to define this action on cochains. If $F\to\mathbb{Z}$ is a projective resolution over $\mathbb{Z}G$, and $f\in\operatorname{Hom}_H(F,\mathbb{Z})$, then the $G$ action on cohomology is induced by the action $(g\cdot f)(x)=gf(g^{-1}x)=f(g^{-1}x)$ (notice that the action on $\mathbb{Z}$ is trivial).
I'm trying to compute explicitly the action of $G$ on $H^n(H,\mathbb{Z})$. This question addresses my ultimate goal, which is to compute the integral cohomology of $G$, but the answer given skips over what I've asked here (it answers my question referencing some mysterious exercise AE.9, which I cannot find in Brown).
Can someone show me how $G$ acts on $H^n(H,\mathbb{Z})$, using either (or both) of the definitions given above?