Coder Social home page Coder Social logo

Not defined Sub or Function about vbad HOT 5 CLOSED

pepitoh avatar pepitoh commented on May 20, 2024
Not defined Sub or Function

from vbad.

Comments (5)

Pepitoh avatar Pepitoh commented on May 20, 2024

Hi,

Just keep your "Debugging()" function in original_vba_prepared.txt:
original_vba_prepared (1).txt

You should delete references to Autoopen or Document_open() function in your prepared vba, VBAd will automaticly included good autopen function related to the document you are creating, it sometimes messes up when you try to add others autotrigger function.

Try this and let met know if it works.

Pepitoh.

from vbad.

zeal0t35 avatar zeal0t35 commented on May 20, 2024

Thanks Pepitoh,
I've deleted all references to the AutoOpen and DocumentOpen. In fact i've used the txt you uploaded.
Then generate file OK,
imagen
but same error is rising.
imagen

from vbad.

zeal0t35 avatar zeal0t35 commented on May 20, 2024

UPDATE: I've changed the powershell to another (in txt file attached), and now getting this error.

imagen

original_vba_prepared.txt

Thanks.

from vbad.

Pepitoh avatar Pepitoh commented on May 20, 2024

hi @zeal0t35,

So there are many problems relative to your issue, I manage to, I think, fix them all :

  • First of all I think you misunderstood the markdown implemented for VBad. In your first file, you are for example trying to randomize Dim :
    [rdm::15]Dim str As string
    Of course, it will cause a crash in your final VBA, you cannot randomize VBA native code, you can only apply rdm to variable or function name. The good way to use it will be :
    Dim [rdm::15]str as String
    After that, you put exclusion marquers ([!!]) evrywhere in your prepared VBA which makes no sense (unless you want no obfucstion at all, in this case why are you using VBad for 😁). Exclusion marquer should be used inside of a string you don't want to obfsucate. Example :
    [rdm::15]str = "Powershel[!!]" not [rdm::15] str = [!!]"powershll" which will have no kind of effect. That is for the first file you sent.
  • For the second file, the error is because you try to add too long continious string on a VBA document. You need to split it many line (as you did on the first file) in order to make it work.
  • Finaly, I also find out that VBad is not very Antivirus compatible 😕, sometimes, modules are not created because they are deleted by antivirus at creation of the file, try to disable alll you antivirus and try again (it works for me). Disable also hidding module function -by setting delete_module_name = 0in const.py for debugginf more easily

Hope it helps, you can find a prepared_vba of your vba code that works perfectly on my laptop :
original_vba_prepared.txt

Pepitoh.

from vbad.

zeal0t35 avatar zeal0t35 commented on May 20, 2024

Pepitoh:
Thank you very much for your reply. Clear as the water 👍
Saludos,
zeal0t

from vbad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.