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

[Citrix] - failed to open channel handle: virtual channel open failed (last_error = 5) #1

Closed
Emastermind opened this issue Feb 20, 2025 · 3 comments
Labels
good first issue Good for newcomers

Comments

@Emastermind
Copy link
Contributor

Hello,

First of all, thank you for the project and the idea !
I tried to use the tool with a remote citrix machine but as mentionned in the title, I get an error while running the backend:

Wu, 20 Feb 2025 17:53:40 +0000 [DEBUG] (main) open static channel "SOXY"
Wu, 20 Feb 2025 17:53:4@ +0000 [ERROR] (main) failed to open channel handle: virtual channel open failed (last _error = 5)`

Image

I tried using differents methods (using dll with rundll32, as local admin, ect ...). Frontend is a kali linux host and socks, ftp ... ports are listening on it but doesn't responds to any action.

Error seems to came from :

common::error!("failed to open channel handle: {e}");
with a failing svc.open function.

Do you have any clue on how I can investigate this ? Maybe some parameters on citrix machine block usage of virtual channel for soxy ?
I did'nt get the "error 5" from ws::Win32::Foundation::GetLastError(), if you have any idea about it ...
I will try to gives more details on host / guest and any useful details if need.

Thank you

@af-airbus
Copy link
Member

Hello,

thank you for your interest in our project!

The error code 5 is actually "access denied" from Windows documentation.

Unfortunately you are connecting to a Citrix host where customized virtual channels are forbidden, which is unfortunately (for us) the default behavior on the last version of Citrix.

@af-airbus
Copy link
Member

af-airbus commented Feb 20, 2025

If you have admin rights on the Citrix host, you should be able to whitelist the SOXY virtual channel following the Citrix documentation.
We did not investigate this "allow list" feature; we would greatly appreciate if you do have a working solution to provide your feedback here or even better with a contribution in a dedicated "troubleshooting" section of the README.md file :)

@Emastermind
Copy link
Contributor Author

Hello,

Thanks for your quick answer and all the details. You guided me in the right direction, indeed, we can whitelist soxy virtual channel or completely disable restrictions using registry key. I detailed this in the merge request I did.

It could be nice to add a feature to check that restrictions are set and if so, update registry key to allow soxy to run (maybe in a next PR :) ).
Once again, thank you for the project and for the help!

@af-airbus af-airbus unpinned this issue Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants