From Bits to Bots: Generative AI's Role in Modern Cybersecurity