Hacking Cryptographic Protocols with Advanced Variational Quantum Attacks