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

Cannot Embed Dll #87

Open
russokiwi opened this issue Oct 5, 2022 · 3 comments
Open

Cannot Embed Dll #87

russokiwi opened this issue Oct 5, 2022 · 3 comments

Comments

@russokiwi
Copy link

russokiwi commented Oct 5, 2022

When doing
echo test | macro_pack.exe --template=EMBED_DLL --embed=payload.dll --obfuscate -G payload.hta
compiles fun, but when running HTA., geting an error "Expected End of Statement"
when looking at the particular line in the HTA, it reads:
Private Declare Sub test Lib "Document1.asd" ()
is this right ? (the name of the DLL Function in question is test).

@sevagas
Copy link
Owner

sevagas commented Oct 5, 2022

It seems you have the VBA code instead of VBS that is in your HTA
Are you having the same error with
echo DllMain | macro_pack.exe --template=EMBED_DLL --embed=payload.dll --obfuscate -G payload.vbs ?

@russokiwi
Copy link
Author

yep when running

d:\>cscript payload.vbs
D:\pentesting\tools\macropac\payload.vbs(3, 17) Microsoft VBScript compilation error: Expected end of statement

@TheL1ghtVn
Copy link

This bug appears in version 2.2.0. Use 1.5 solved the problem @russokiwi

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

3 participants