Update aliyunOss.py

更新变量名
This commit is contained in:
UzJu 2022-03-06 17:04:09 +08:00
parent 1664e0c259
commit d8c10a0177

View File

@ -43,7 +43,7 @@ class OssBucketExploitFromSDK:
def __init__(self, target, location):
self.target = target
self.location = location
auth = oss2.Auth(conf.AK, conf.SECRET)
auth = oss2.Auth(conf.AliyunAccessKey_ID, conf.AliyunAccessKey_Secret)
self.bucket = oss2.Bucket(auth, f'http://{location}.aliyuncs.com', self.target)
self.logger = logging.getLogger("mainModule.AliyunOss.Exploit.module")