Linux worldls-302.fr.planethoster.net 4.18.0-553.8.1.lve.el7h.x86_64 #1 SMP Thu Jul 4 15:19:33 UTC 2024 x86_64
LiteSpeed
Server IP : 10.185.0.203 & Your IP : 216.73.217.14
Domains :
Cant Read [ /etc/named.conf ]
User : gerathty
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python2.7 /
site-packages /
boto /
s3 /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
2.77
KB
-rw-r--r--
2016-04-07 23:27
__init__.pyc
1.88
KB
-rw-r--r--
2017-01-28 02:50
__init__.pyo
1.88
KB
-rw-r--r--
2017-01-28 02:50
acl.py
5.6
KB
-rw-r--r--
2017-01-28 02:50
acl.pyc
5.93
KB
-rw-r--r--
2017-01-28 02:50
acl.pyo
5.93
KB
-rw-r--r--
2017-01-28 02:50
bucket.py
77.58
KB
-rw-r--r--
2016-07-01 18:01
bucket.pyc
68.87
KB
-rw-r--r--
2017-01-28 02:50
bucket.pyo
68.83
KB
-rw-r--r--
2017-01-28 02:50
bucketlistresultset.py
6.73
KB
-rw-r--r--
2016-07-01 18:01
bucketlistresultset.pyc
5.54
KB
-rw-r--r--
2017-01-28 02:50
bucketlistresultset.pyo
5.54
KB
-rw-r--r--
2017-01-28 02:50
bucketlogging.py
3.11
KB
-rw-r--r--
2016-04-07 22:15
bucketlogging.pyc
2.82
KB
-rw-r--r--
2017-01-28 02:50
bucketlogging.pyo
2.82
KB
-rw-r--r--
2017-01-28 02:50
connection.py
25.73
KB
-rw-r--r--
2016-07-01 18:01
connection.pyc
23.17
KB
-rw-r--r--
2017-01-28 02:50
connection.pyo
23.04
KB
-rw-r--r--
2017-01-28 02:50
cors.py
8.73
KB
-rw-r--r--
2016-04-07 22:15
cors.pyc
7.78
KB
-rw-r--r--
2017-01-28 02:50
cors.pyo
7.78
KB
-rw-r--r--
2017-01-28 02:50
deletemarker.py
2.04
KB
-rw-r--r--
2016-04-07 22:15
deletemarker.pyc
1.45
KB
-rw-r--r--
2017-01-28 02:50
deletemarker.pyo
1.45
KB
-rw-r--r--
2017-01-28 02:50
key.py
80.55
KB
-rw-r--r--
2016-07-01 18:01
key.pyc
64.08
KB
-rw-r--r--
2017-01-28 02:50
key.pyo
64.08
KB
-rw-r--r--
2017-01-28 02:50
keyfile.py
4.32
KB
-rw-r--r--
2016-04-07 22:15
keyfile.pyc
4.88
KB
-rw-r--r--
2017-01-28 02:50
keyfile.pyo
4.88
KB
-rw-r--r--
2017-01-28 02:50
lifecycle.py
10.63
KB
-rw-r--r--
2016-07-01 18:01
lifecycle.pyc
11.69
KB
-rw-r--r--
2017-01-28 02:50
lifecycle.pyo
11.69
KB
-rw-r--r--
2017-01-28 02:50
multidelete.py
4.65
KB
-rw-r--r--
2016-04-07 22:15
multidelete.pyc
4.84
KB
-rw-r--r--
2017-01-28 02:50
multidelete.pyo
4.84
KB
-rw-r--r--
2017-01-28 02:50
multipart.py
11.77
KB
-rw-r--r--
2016-04-07 22:15
multipart.pyc
11.61
KB
-rw-r--r--
2017-01-28 02:50
multipart.pyo
11.61
KB
-rw-r--r--
2017-01-28 02:50
prefix.py
1.62
KB
-rw-r--r--
2016-04-07 22:15
prefix.pyc
1.21
KB
-rw-r--r--
2017-01-28 02:50
prefix.pyo
1.21
KB
-rw-r--r--
2017-01-28 02:50
resumable_download_handler.py
15.23
KB
-rw-r--r--
2016-04-07 22:15
resumable_download_handler.pyc
10.01
KB
-rw-r--r--
2017-01-28 02:50
resumable_download_handler.pyo
10.01
KB
-rw-r--r--
2017-01-28 02:50
tagging.py
1.69
KB
-rw-r--r--
2016-04-07 22:15
tagging.pyc
3.59
KB
-rw-r--r--
2017-01-28 02:50
tagging.pyo
3.59
KB
-rw-r--r--
2017-01-28 02:50
user.py
1.92
KB
-rw-r--r--
2016-04-07 22:15
user.pyc
1.47
KB
-rw-r--r--
2017-01-28 02:50
user.pyo
1.47
KB
-rw-r--r--
2017-01-28 02:50
website.py
10.36
KB
-rw-r--r--
2016-04-07 22:15
website.pyc
11.99
KB
-rw-r--r--
2017-01-28 02:50
website.pyo
11.99
KB
-rw-r--r--
2017-01-28 02:50
Save
Rename
# Copyright 2013 Google Inc. # Copyright 2011, Nexenta Systems Inc. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, dis- # tribute, sublicense, and/or sell copies of the Software, and to permit # persons to whom the Software is furnished to do so, subject to the fol- # lowing conditions: # # The above copyright notice and this permission notice shall be included # in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE. """ Wrapper class to expose a Key being read via a partial implementaiton of the Python file interface. The only functions supported are those needed for seeking in a Key open for reading. """ import os from boto.exception import StorageResponseError class KeyFile(): def __init__(self, key): self.key = key self.key.open_read() self.location = 0 self.closed = False self.softspace = -1 # Not implemented. self.mode = 'r' self.encoding = 'Undefined in KeyFile' self.errors = 'Undefined in KeyFile' self.newlines = 'Undefined in KeyFile' self.name = key.name def tell(self): if self.location is None: raise ValueError("I/O operation on closed file") return self.location def seek(self, pos, whence=os.SEEK_SET): self.key.close(fast=True) if whence == os.SEEK_END: # We need special handling for this case because sending an HTTP range GET # with EOF for the range start would cause an invalid range error. Instead # we position to one before EOF (plus pos) and then read one byte to # position at EOF. if self.key.size == 0: # Don't try to seek with an empty key. return pos = self.key.size + pos - 1 if pos < 0: raise IOError("Invalid argument") self.key.open_read(headers={"Range": "bytes=%d-" % pos}) self.key.read(1) self.location = pos + 1 return if whence == os.SEEK_SET: if pos < 0: raise IOError("Invalid argument") elif whence == os.SEEK_CUR: pos += self.location else: raise IOError('Invalid whence param (%d) passed to seek' % whence) try: self.key.open_read(headers={"Range": "bytes=%d-" % pos}) except StorageResponseError as e: # 416 Invalid Range means that the given starting byte was past the end # of file. We catch this because the Python file interface allows silently # seeking past the end of the file. if e.status != 416: raise self.location = pos def read(self, size): self.location += size return self.key.read(size) def close(self): self.key.close() self.location = None self.closed = True def isatty(self): return False # Non-file interface, useful for code that wants to dig into underlying Key # state. def getkey(self): return self.key # Unimplemented interfaces below here. def write(self, buf): raise NotImplementedError('write not implemented in KeyFile') def fileno(self): raise NotImplementedError('fileno not implemented in KeyFile') def flush(self): raise NotImplementedError('flush not implemented in KeyFile') def next(self): raise NotImplementedError('next not implemented in KeyFile') def readinto(self): raise NotImplementedError('readinto not implemented in KeyFile') def readline(self): raise NotImplementedError('readline not implemented in KeyFile') def readlines(self): raise NotImplementedError('readlines not implemented in KeyFile') def truncate(self): raise NotImplementedError('truncate not implemented in KeyFile') def writelines(self): raise NotImplementedError('writelines not implemented in KeyFile') def xreadlines(self): raise NotImplementedError('xreadlines not implemented in KeyFile')