Legal and Ethical Considerations in Penetration Testing