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

"Unable to wait for process" error causes script host to crash #1

Open
idiom opened this issue May 31, 2017 · 0 comments
Open

"Unable to wait for process" error causes script host to crash #1

idiom opened this issue May 31, 2017 · 0 comments
Assignees
Labels

Comments

@idiom
Copy link
Member

idiom commented May 31, 2017

Some scripts which call WScript.Shell.Run can cause an error to be thrown when the WaitOnReturn Parameter is set to True causing the command to be run synchronously
Example:
Set oShell = CreateObject("WScript.Shell") oShell.Run "cmd /c ping.exe 127.0.0.1 -n 250 > nul",0,1 WScript.Quit 0
Error: wsrun_fail.vbs(3, 1) WshShell.Run: Unable to wait for process.

Workaround
To work around the issue you can insert On Error Resume Next the line before the command which throws the error.

Although frida-wshook is hooking the windows API call, The error looks to be thrown before ShellExecute is called.

@idiom idiom added the bug label May 31, 2017
@idiom idiom self-assigned this May 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant