Hexagon socket for riveting