Pastejacking
Pastejacking copied to clipboard
Easier solution: Just type it in
Instead of copy-pasting.
kebod boken, can't tpe
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.
@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.
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.
or preview it before actually pasting it in?
@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
Sure enough @joker314