Exploit databaseDownload repository ZIP
GH-39c7feb24c8cc69a75509a895d6e1d53
neowans/cve-2018-19246
Sources for CVE-2018-19246
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files8
neowans/cve-2018-19246Revision 0c26f2bed231
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
Pocsuite-2.0.8/pocsuite/thirdparty/requests/packages/urllib3/util/response.py
Python · 566 bytesdef is_fp_closed(obj):
"""
Checks whether a given file-like object is closed.
:param obj:
The file-like object to check.
"""
try:
# Check via the official file-like-object way.
return obj.closed
except AttributeError:
pass
try:
# Check if the object is a container for another file-like object that
# gets released on exhaustion (e.g. HTTPResponse).
return obj.fp is None
except AttributeError:
pass
raise ValueError("Unable to determine whether fp is closed.")