Step 1: General equation of circle through origin.
\[
x^2+y^2+2gx+2fy=0
\]
Step 2: Find intercepts.
On \(x\)-axis, put \(y=0\):
\[
x^2+2gx=0 \Rightarrow x(x+2g)=0
\]
Intercept length on \(x\)-axis is \(|2g|\). Given \(=4\).
So:
\[
|2g|=4 \Rightarrow g=\pm 2
\]
On \(y\)-axis, put \(x=0\):
\[
y^2+2fy=0 \Rightarrow y(y+2f)=0
\]
Intercept length on \(y\)-axis is \(|2f|\). Given \(=8\).
So:
\[
|2f|=8 \Rightarrow f=\pm 4
\]
Step 3: Substitute values.
\[
x^2+y^2+2(\pm 2)x+2(\pm 4)y=0
\]
\[
x^2+y^2\pm 4x\pm 8y=0
\]
Final Answer:
\[
\boxed{x^2+y^2\pm 4x\pm 8y=0}
\]