On a unit-replacement strut, use an Allen key to release the top while holding the outer hexagon with a spanner.
When the damper inside a MacPherson strut wears out, you can buy a replacement cartridge which —...