Skip to content
This repository has been archived by the owner on Sep 14, 2024. It is now read-only.

Commit

Permalink
Version 1.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sevagas committed May 9, 2020
1 parent 8f92419 commit bc05c34
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/common/definitions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@


VERSION="1.9.0"
VERSION="1.9.1"
2 changes: 1 addition & 1 deletion src/common/mp_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self, workingPath, version, mpType):
self.listenRoot = "."
self.embeddedFilePath = None

self.trojan = False
self.isTrojanMode = False
self.htaMacro = False

self.Wlisten = False
Expand Down
10 changes: 10 additions & 0 deletions src/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from collections import OrderedDict
import importlib.util
import psutil
from datetime import datetime


class ColorLogFiler(logging.StreamHandler):
Expand Down Expand Up @@ -155,6 +156,15 @@ def checkModuleExist(name):
return spec is not None


def validateDate(date_text):
try:
if date_text != datetime.strptime(date_text, "%Y-%m-%d").strftime('%Y-%m-%d'):
raise ValueError
return True
except ValueError:
return False


class MPParam():
def __init__(self,name,optional=False):
self.name = name
Expand Down
13 changes: 7 additions & 6 deletions src/macro_pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,12 @@ def main(argv):
sys.exit(2)
else:
logging.info(" [-] Target output format: %s" % mpSession.outputFileType)
elif mpSession.listen == False and mpSession.Wlisten == False and mpSession.runTarget is None and mpSession.dcomTarget is None:
elif mpSession.listen == False and mpSession.Wlisten == False and mpSession.runTarget is None and (MP_TYPE != "Pro" or mpSession.dcomTarget is None):
logging.error(" [!] You need to provide an output file! (get help using %s -h)" % os.path.basename(utils.getRunningApp()))
sys.exit(2)


if mpSession.trojan==False:
if mpSession.isTrojanMode==False:
# verify that output file does not already exist
if os.path.isfile(mpSession.outputFilePath):
logging.error(" [!] ERROR: Output file %s already exist!" % mpSession.outputFilePath)
Expand Down Expand Up @@ -226,11 +226,11 @@ def main(argv):

logging.info(" [-] Extension %s " % fileExtension)
# Append unicode RTLO to file name
fileName += '\u202e'
fileName += '\u202e'
# Append extension to spoof in reverse order
fileName += mpSession.unicodeRtlo[::-1]
fileName += '\u200b' + mpSession.unicodeRtlo[::-1] # PRepend invisible space so filename does not end with malicious extension
# Appent file extension
fileName += fileExtension
fileName += fileExtension # add space after extension
mpSession.outputFilePath = fileName
logging.info(" [-] File name modified to: %s" % mpSession.outputFilePath)

Expand Down Expand Up @@ -276,7 +276,8 @@ def main(argv):


logging.info(" [+] Cleaning...")
shutil.rmtree(working_directory)
if os.path.isdir(working_directory):
shutil.rmtree(working_directory)

logging.info(" Done!\n")

Expand Down

0 comments on commit bc05c34

Please sign in to comment.