Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Could not open file" error #13

Closed
ricardojoserf opened this issue May 23, 2019 · 7 comments
Closed

"Could not open file" error #13

ricardojoserf opened this issue May 23, 2019 · 7 comments

Comments

@ricardojoserf
Copy link

Hello! I am testing the program and I tried to execute "mono EvilClippy.exe -g $FILENAME" with the files qqq.docm and qqq.docx. I installed Mono, downloaded the repository and included the executable file in it. The output states the file can not be found:

"""
ERROR: Could not open file qqq.docx
Please make sure this file exists and is .docm or .xlsm file or a .doc in the Office 97-2003 format.

Could not find file "/home/ricardo/EvilClippy/qqq_EvilClippy.docx"
"""

Best regards

@stanhegt
Copy link
Contributor

The error that you are pasting is a docx file (without macros, Evil Clippy only works on files that contain a macro project). Can you verify whether you see the same error when opening qqq.docm? Are you sure qqq.docm contains a macro project and is in the 2007+ file format?

@ricardojoserf
Copy link
Author

Hello @stanhegt , thank you for the instant reply! Yes, it does:
"""
ricardo@ubuntu:~/EvilClippy$ mono EvilClippy.exe -g qqq.docm
ERROR: Could not open file qqq.docm
Please make sure this file exists and is .docm or .xlsm file or a .doc in the Office 97-2003 format.

Could not find file "/home/ricardo/EvilClippy/qqq_EvilClippy.docm"
ricardo@ubuntu:~/EvilClippy$ file qqq.docm
qqq.docm: Microsoft Word 2007+
"""
I am using Ubuntu 16.04 64 bits. The docm file contains a macro named "AutoOpen" and there is code inside "NewMacros" but not inside "ThisDocument". I am using Office 16.

Regards

@stanhegt
Copy link
Contributor

Would it be possible to share the sample?

@ricardojoserf
Copy link
Author

Yes of course: https://mega.nz/#!dssnjQAA!C7wAjfgh2TP-IB8tNOeSgfxol6JKH2tkEJ0WfHLqR9A
It is a netcat reverse shell, I am testing it with a vps in DigitalOcean at the moment

@stanhegt
Copy link
Contributor

This file does not contain any macros. ;-) I have verified this with OleVBA and 7zip (there's no vbaproject.bin in the ZIP container). You might have accidentally saved your macro in normal.dotm instead of this file.

@ricardojoserf
Copy link
Author

Ouch! You are completely right. Thank you for the tool and the support! Have a good day :)

@stanhegt
Copy link
Contributor

No worries, I made this mistake myself countless times. Thanks and have fun with the tool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants