Implement experimental --http2 (#4402)

This commit is contained in:
Miroslav Stampar
2025-02-20 13:03:47 +01:00
parent fa9dc20c6e
commit 327f98aaa3
7 changed files with 67 additions and 14 deletions

View File

@@ -94,6 +94,16 @@ def checkDependencies():
logger.warning(warnMsg)
missing_libraries.add('python-ntlm')
try:
__import__("httpx")
debugMsg = "'httpx[http2]' third-party library is found"
logger.debug(debugMsg)
except ImportError:
warnMsg = "sqlmap requires 'httpx[http2]' third-party library "
warnMsg += "if you plan to use HTTP version 2"
logger.warning(warnMsg)
missing_libraries.add('httpx[http2]')
try:
__import__("websocket._abnf")
debugMsg = "'websocket-client' library is found"