I want to influence my own brand of justice and help society for the greater good, but I don’t want to help bad people. What types of lawyers help people by doing good in their job?

Types I’ve thought of for example are:
lawyers that go after people who scam the elderly
lawyers who go after child molesters
etc.
Is there a term for this category of lawyers?