macro_pack icon indicating copy to clipboard operation
macro_pack copied to clipboard

Cannot Embed Dll

Open russokiwi opened this issue 2 years ago • 3 comments

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).

russokiwi avatar Oct 05 '22 16:10 russokiwi

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 ?

sevagas avatar Oct 05 '22 16:10 sevagas

yep when running

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

russokiwi avatar Oct 05 '22 16:10 russokiwi

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

TheL1ghtVn avatar Oct 06 '23 08:10 TheL1ghtVn