hannob / snallygaster

Tool to scan for secret files on HTTP servers
BSD Zero Clause License
2.07k stars 228 forks source link

pylint >= 2.7.2 gives error "deprecated method wrap_socket()" #57

Closed sebix closed 3 years ago

sebix commented 3 years ago

With pylint 2.7.2 and 2.7.4 (current) the pylint test case returns the following error:

************* Module tests.test_scan_testdata
tests/test_scan_testdata.py:38:23: W1505: Using deprecated method wrap_socket() (deprecated-method)

------------------------------------------------------------------
Your code has been rated at 9.99/10 (previous run: 9.99/10, +0.00)

Causing the test suite to fail.

The docs say

Deprecated since version 3.7: Since Python 3.2 and 2.7.9, it is recommended to use the SSLContext.wrap_socket() instead of wrap_socket(). The top-level function is limited and creates an insecure client socket without server name indication or hostname matching.

I'll provide a PR with a fix.