This PR fixes the indefinite hang issue in tlsx when scanning targets with problematic TLS configurations. The bug occurred because cipher enumeration handshakes did not have proper timeout enforcement.
context.WithTimeout for each cipher handshake in EnumerateCiphersconn.Handshake() to conn.HandshakeContext(ctx) with timeoutThe original code used context.TODO() (no deadline) or direct Handshake() calls without timeout, causing tlsx to hang indefinitely when encountering hosts that do not respond properly during TLS negotiation.
The fix ensures that:
-timeout flag/claim #819
Fixes #819
tianlin-magi
@tele-he-gmail-com
youssefosama3820009-commits
@youssefosama3820009-commits
ProjectDiscovery
@projectdiscovery