Linux ip-148-66-134-25.ip.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els10.x86_64 #1 SMP Fri Oct 11 21:40:41 UTC 2024 x86_64
Apache
: 148.66.134.25 | : 18.117.99.192
66 Domain
8.0.30
amvm
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
lib /
python2.7 /
site-packages /
urllib3 /
[ HOME SHELL ]
Name
Size
Permission
Action
contrib
[ DIR ]
drwxr-xr-x
packages
[ DIR ]
drwxr-xr-x
util
[ DIR ]
drwxr-xr-x
__init__.py
1.82
KB
-rw-r--r--
__init__.pyc
2.53
KB
-rw-r--r--
__init__.pyo
2.53
KB
-rw-r--r--
_collections.py
10.27
KB
-rw-r--r--
_collections.pyc
12.04
KB
-rw-r--r--
_collections.pyo
12.04
KB
-rw-r--r--
connection.py
8.76
KB
-rw-r--r--
connection.pyc
7.8
KB
-rw-r--r--
connection.pyo
7.8
KB
-rw-r--r--
connectionpool.py
29.7
KB
-rw-r--r--
connectionpool.pyc
23.78
KB
-rw-r--r--
connectionpool.pyo
23.78
KB
-rw-r--r--
exceptions.py
4.01
KB
-rw-r--r--
exceptions.pyc
7.93
KB
-rw-r--r--
exceptions.pyo
7.93
KB
-rw-r--r--
fields.py
5.7
KB
-rw-r--r--
fields.pyc
6.4
KB
-rw-r--r--
fields.pyo
6.4
KB
-rw-r--r--
filepost.py
2.23
KB
-rw-r--r--
filepost.pyc
3.1
KB
-rw-r--r--
filepost.pyo
3.1
KB
-rw-r--r--
poolmanager.py
13.2
KB
-rw-r--r--
poolmanager.pyc
12.32
KB
-rw-r--r--
poolmanager.pyo
12.2
KB
-rw-r--r--
request.py
5.62
KB
-rw-r--r--
request.pyc
5.77
KB
-rw-r--r--
request.pyo
5.77
KB
-rw-r--r--
response.py
11.95
KB
-rw-r--r--
response.pyc
11.74
KB
-rw-r--r--
response.pyo
11.74
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : filepost.py
import codecs from uuid import uuid4 from io import BytesIO from .packages import six from .packages.six import b from .fields import RequestField writer = codecs.lookup('utf-8')[3] def choose_boundary(): """ Our embarassingly-simple replacement for mimetools.choose_boundary. """ return uuid4().hex def iter_field_objects(fields): """ Iterate over fields. Supports list of (k, v) tuples and dicts, and lists of :class:`~urllib3.fields.RequestField`. """ if isinstance(fields, dict): i = six.iteritems(fields) else: i = iter(fields) for field in i: if isinstance(field, RequestField): yield field else: yield RequestField.from_tuples(*field) def iter_fields(fields): """ .. deprecated:: 1.6 Iterate over fields. The addition of :class:`~urllib3.fields.RequestField` makes this function obsolete. Instead, use :func:`iter_field_objects`, which returns :class:`~urllib3.fields.RequestField` objects. Supports list of (k, v) tuples and dicts. """ if isinstance(fields, dict): return ((k, v) for k, v in six.iteritems(fields)) return ((k, v) for k, v in fields) def encode_multipart_formdata(fields, boundary=None): """ Encode a dictionary of ``fields`` using the multipart/form-data MIME format. :param fields: Dictionary of fields or list of (key, :class:`~urllib3.fields.RequestField`). :param boundary: If not specified, then a random boundary will be generated using :func:`mimetools.choose_boundary`. """ body = BytesIO() if boundary is None: boundary = choose_boundary() for field in iter_field_objects(fields): body.write(b('--%s\r\n' % (boundary))) writer(body).write(field.render_headers()) data = field.data if isinstance(data, int): data = str(data) # Backwards compatibility if isinstance(data, six.text_type): writer(body).write(data) else: body.write(data) body.write(b'\r\n') body.write(b('--%s--\r\n' % (boundary))) content_type = str('multipart/form-data; boundary=%s' % boundary) return body.getvalue(), content_type
Close