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

Easier solution: Just type it in #7

Open
majewsky opened this issue May 24, 2016 · 7 comments
Open

Easier solution: Just type it in #7

majewsky opened this issue May 24, 2016 · 7 comments

Comments

@majewsky
Copy link

Instead of copy-pasting.

@hakudev
Copy link

hakudev commented May 24, 2016

kebod boken, can't tpe

@gregpardo
Copy link

Works for some but not all cases. Look at instructions for installing rvm...

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable

I certainly don't want to take the time to type something like this in.

@wc-zach
Copy link

wc-zach commented May 24, 2016

@gregpardo in your case I will usually take the time to type the command and copy and paste just the long unpronounceable sections. This might help protect me, or not, I haven't yet tested it.

Also, typing out the commands helps me remember them for later. So, usually whatever time lost by typing is made up the next time when I'm already familiar with the command.

@gregpardo
Copy link

Oh I agree with the suggestion of typing commands in. I usually do it as well. It's just not really an 'Easier solution' more of a 'good practice' where applicable.

@bgrgndz
Copy link

bgrgndz commented May 25, 2016

or preview it before actually pasting it in?

@joker314
Copy link

@macguru2000 That won't help protect you

Payload:

\n\r
echo "evil"\n\r

If you type echo and then paste, this is what happens:

> echo
< ERROR! (not really, but for another command, maybe)
> echo "evil"
< evil

At least, I think so

@wc-zach
Copy link

wc-zach commented Jul 31, 2018

Sure enough @joker314

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

6 participants