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

Missing calls from condition of loop with empty body #93

Open
B-Schmidt opened this issue Jan 24, 2020 · 0 comments
Open

Missing calls from condition of loop with empty body #93

B-Schmidt opened this issue Jan 24, 2020 · 0 comments

Comments

@B-Schmidt
Copy link

ViperMonkey skips loops with an empty body. This makes it possible to hide calls by simply using them as the condition of such a loop. Example:

Private Sub Document_open()
    Do Until Shell("cmd.exe /S /C" & "echo Hello World > C:\Users\Admin\test.txt")
    Loop
End Sub

ViperMonkey will ignore this, only reporting that a loop has been skipped. Office, on the other hand, will execute it.

Expected behavior would be for these calls to be evaluated and (if applicable) logged as an interesting function call.

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

No branches or pull requests

2 participants