Catalysis of the transfer of a nitric oxide (NO) group to a sulphur atom within a cysteine residue of a protein.