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 (c) 2006,2007 Mitch Garnaat http://garnaat.org/ # # 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. from boto.s3.user import User CannedACLStrings = ['private', 'public-read', 'public-read-write', 'authenticated-read', 'bucket-owner-read', 'bucket-owner-full-control', 'log-delivery-write', 'aws-exec-read'] class Policy(object): def __init__(self, parent=None): self.parent = parent self.namespace = None self.acl = None def __repr__(self): grants = [] for g in self.acl.grants: if g.id == self.owner.id: grants.append("%s (owner) = %s" % (g.display_name, g.permission)) else: if g.type == 'CanonicalUser': u = g.display_name elif g.type == 'Group': u = g.uri else: u = g.email_address grants.append("%s = %s" % (u, g.permission)) return "<Policy: %s>" % ", ".join(grants) def startElement(self, name, attrs, connection): if name == 'AccessControlPolicy': self.namespace = attrs.get('xmlns', None) return None if name == 'Owner': self.owner = User(self) return self.owner elif name == 'AccessControlList': self.acl = ACL(self) return self.acl else: return None def endElement(self, name, value, connection): if name == 'Owner': pass elif name == 'AccessControlList': pass else: setattr(self, name, value) def to_xml(self): if self.namespace is not None: s = '<AccessControlPolicy xmlns="{0}">'.format(self.namespace) else: s = '<AccessControlPolicy>' s += self.owner.to_xml() s += self.acl.to_xml() s += '</AccessControlPolicy>' return s class ACL(object): def __init__(self, policy=None): self.policy = policy self.grants = [] def add_grant(self, grant): self.grants.append(grant) def add_email_grant(self, permission, email_address): grant = Grant(permission=permission, type='AmazonCustomerByEmail', email_address=email_address) self.grants.append(grant) def add_user_grant(self, permission, user_id, display_name=None): grant = Grant(permission=permission, type='CanonicalUser', id=user_id, display_name=display_name) self.grants.append(grant) def startElement(self, name, attrs, connection): if name == 'Grant': self.grants.append(Grant(self)) return self.grants[-1] else: return None def endElement(self, name, value, connection): if name == 'Grant': pass else: setattr(self, name, value) def to_xml(self): s = '<AccessControlList>' for grant in self.grants: s += grant.to_xml() s += '</AccessControlList>' return s class Grant(object): NameSpace = 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"' def __init__(self, permission=None, type=None, id=None, display_name=None, uri=None, email_address=None): self.permission = permission self.id = id self.display_name = display_name self.uri = uri self.email_address = email_address self.type = type def startElement(self, name, attrs, connection): if name == 'Grantee': self.type = attrs['xsi:type'] return None def endElement(self, name, value, connection): if name == 'ID': self.id = value elif name == 'DisplayName': self.display_name = value elif name == 'URI': self.uri = value elif name == 'EmailAddress': self.email_address = value elif name == 'Grantee': pass elif name == 'Permission': self.permission = value else: setattr(self, name, value) def to_xml(self): s = '<Grant>' s += '<Grantee %s xsi:type="%s">' % (self.NameSpace, self.type) if self.type == 'CanonicalUser': s += '<ID>%s</ID>' % self.id s += '<DisplayName>%s</DisplayName>' % self.display_name elif self.type == 'Group': s += '<URI>%s</URI>' % self.uri else: s += '<EmailAddress>%s</EmailAddress>' % self.email_address s += '</Grantee>' s += '<Permission>%s</Permission>' % self.permission s += '</Grant>' return s