Dark Moray is a damage-immune fight until you work out the trick, so stop attacking and look around.
Break all the glowing energy sources first. Then get onto the platform and you will see white containers — pick one up and throw it at him. That freezes him, and only then can you land real hits.
Dodge his attacks while you wait for the next opening, and repeat. Keep the cycle going until he collapses. It is a patience fight rather than a damage race, so do not burn yourself out swinging at nothing.