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

how can i get query string from Butterfly terminal #200

Open
sathiyasaravanababu91 opened this issue Jul 13, 2020 · 0 comments
Open

how can i get query string from Butterfly terminal #200

sathiyasaravanababu91 opened this issue Jul 13, 2020 · 0 comments

Comments

@sathiyasaravanababu91
Copy link

I have integrated the butterfly terminal. I have run the butterfly terminal using below command

/usr/local/bin/butterfly.server.py --host=0.0.0.0 --port=8000 --login --unsecure --shell="/etc/cmd.sh"

In browser, I have accessed the below terminal using below URL

http://IP:8000/?token=terminal

In /etc/cmd.sh

I want to get the browser Querstring into one variable.

we have tried to get the value from os.environ

url=$(/usr/bin/python3.6 -c "import os;import butterfly;url = os.environ;print(url)") but environ array also don't have a value.

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