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

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants