How do i duplicate to get the same size on all corners of the objects?
Select all of the side faces of a cube (excluding top and bottom) and do Extrude individual



To scale the newly created faces, just press S (to scale) and constraint the scaling to the X and Y axes by pressing Shift Z or checking the X and Y boxes on the tool panel.