You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: