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

zsh paste will correctly escape this #1

Closed
b4ldr opened this issue Sep 9, 2022 · 3 comments
Closed

zsh paste will correctly escape this #1

b4ldr opened this issue Sep 9, 2022 · 3 comments

Comments

@b4ldr
Copy link

b4ldr commented Sep 9, 2022

just a note that this doesn't work in zsh with default config as it will correctly escape on paste e.g.

$ wget http://example.com/\;'$(gt=$(perl$IFS-E$IFS's//62/\;s/62/chr/e\;say');eval$IFS''cowsay$IFS''pwned$IFS$gt/dev/tty)'\;cowsay$IFS''pwned
--2022-09-09 13:54:46--  http://example.com/;$(gt=$(perl$IFS-E$IFSs//62/;s/62/chr/e;say);eval$IFScowsay$IFSpwned$IFS$gt/dev/tty);cowsay%20%09%0A
Resolving example.com (example.com)... 93.184.216.34, 2606:2800:220:1:248:1893:25c8:1946
Connecting to example.com (example.com)|93.184.216.34|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2022-09-09 13:54:46 ERROR 404: Not Found.
@jwilk
Copy link
Owner

jwilk commented Sep 9, 2022

Hmm, the url-quote-magic feature would do that, but it's not enabled by default in my zsh (5.9 from Debian unstable).

@b4ldr
Copy link
Author

b4ldr commented Sep 9, 2022

Hmm, the url-quote-magic feature would do that, but it's not enabled by default in my zsh (5.9 from Debian unstable).

Ahh yes you are right, i must have enabled it manually at some point sorry for the noise

@b4ldr b4ldr closed this as completed Sep 9, 2022
@jwilk
Copy link
Owner

jwilk commented Sep 10, 2022

But see #2.

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

2 participants