Look before you paste from a website to terminal

'Most of the time when we see a code snippet online to do something, we often blindly copy paste it to the terminal. Even the tech savy ones just see it on the website before copy pasting. Here is why you shouldn't do this.' -- source: https://lifepluslinux.blogspot.co.nz/2017/01/look-before-you-paste-from-webs... Hint: hidden commands thanks to HTML/CSS. Cheers, Peter -- Peter Reutemann Dept. of Computer Science University of Waikato, NZ +64 (7) 858-5174 http://www.cms.waikato.ac.nz/~fracpete/ http://www.data-mining.co.nz/

On 2017-01-27 10:30, Peter Reutemann wrote:
'Most of the time when we see a code snippet online to do something, we often blindly copy paste it to the terminal. Even the tech savy ones just see it on the website before copy pasting. Here is why you shouldn't do this.'
-- source: https://lifepluslinux.blogspot.co.nz/2017/01/look-before-you-paste-from-webs...
Hint: hidden commands thanks to HTML/CSS.
Cheers, Peter Hmm, that is worth knowing. The tip about pasting into a text editor first is probably a good one.

On Fri, 27 Jan 2017 10:30:34 +1300, Peter Reutemann wrote:
Hint: hidden commands thanks to HTML/CSS.
Came across this page of hints <https://www.howtogeek.com/251807/how-to-enable-pasting-text-on-sites-that-block-it/> in relation to something else. For Firefox, it mentions the “dom.event.clipboardevents.enabled” configuration setting; changing this to false prevents the sending of JavaScript events for the cut/copy/paste functions.
participants (3)
-
Chris O'Halloran
-
Lawrence D'Oliveiro
-
Peter Reutemann