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

A string with a bracket "()" gets chopped in parsing #18

Open
ezaton opened this issue Sep 24, 2023 · 0 comments
Open

A string with a bracket "()" gets chopped in parsing #18

ezaton opened this issue Sep 24, 2023 · 0 comments

Comments

@ezaton
Copy link

ezaton commented Sep 24, 2023

I have a rule which looks like this:
echo /usr/bin/sudo /usr/sbin/openconnect {s:Connection-Other} --protocol {s:Connection-Protocol} {s:Connection-Address}
When the value of "Connection-Other" includes:
--csd-wrapper=/home/ezaton/bin/trojans_tncc-emulate.py --force-trojan=600
and additional text contents, I get the command to print correctly.
When the value includes:
--useragent 'Mozilla/5.0 (Linux) Firefox'
(including the single tags and the brackets), the result shows like this:
/usr/bin/sudo /usr/sbin/openconnect --useragent Mozilla/5.0
The remaining of the text is cut, and the command is not executed correctly, of course.
The stopping point is always the opening bracket. Escaping it using backslash did not work.
Platform: Linux, Ubuntu 22.04
KeyPass version: 2.54
Advanced Connect Plugin version: 1.0.7

Thank you!

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

No branches or pull requests

1 participant