When you cut through all the faces of a rectangular prism, the shape created depends on the direction and position of your cut. However, if we consider cutting through all rectangular faces of a prism, the resultant shape will generally be a hexagon.
So the correct answer is hexagon.