Catalysis of the reaction: DNA (containing 6-O-methylguanine) + (protein)-L-cysteine = DNA (without 6-O-methylguanine) + protein S-methyl-L-cysteine.
DNA-6-O-methylguanine:-L-cysteine S-methyltransferase activity