So, ok. Don't copy and paste from a website to a terminal, I get it and I got it the last time that this kind of thing was posted. But if I look around I put so incredibly much trust in total strangers all the time that compared to say ordering a pizza (where the cook could put anything in the food they wanted), driving on the highway (where anybody could swerve any moment if they wanted) and simply walking down the…
Don't copy paste from a website to a terminal
121–130 of 257 posts
Re: Don't copy paste from a website to a terminal
#122Totally arbitrary. If you're simply copy and pasting commands you probably don't know what you're doing, OR you're just looking for the quick shortcut. Either way, when I paste I usually put it through a scrapped terminal. Meaning I have to hit enter twice for any command to actually be executed. If you're not checking your commands before you hit enter it's like getting in a car for the first time and bringing it to…
How does this work / how do you do it?
Re: Don't copy paste from a website to a terminal
#123So, ok. Don't copy and paste from a website to a terminal, I get it and I got it the last time that this kind of thing was posted. But if I look around I put so incredibly much trust in total strangers all the time that compared to say ordering a pizza (where the cook could put anything in the food they wanted), driving on the highway (where anybody could swerve any moment if they wanted) and simply walking down the…
I found it really easy to turn off styles, to show the real code. In firefox the View Menu, Page Style, No Style. There are ways to assign this to a keypress or button as well.
Re: Don't copy paste from a website to a terminal
#124At the end of the day we have to have trust in others especially in opensource. Everything you incorporate in your apps/sites could be malicious.
Re: Don't copy paste from a website to a terminal
#125Earlier quoted context omitted.
Further from the main topic but related to your sentiment. One of the best ways to deal with this is to have more experienced guys who have faced these difficulties hanging around. I am a theorist in an experimental laser group, and the group head remarked on a possible counter-intuitive arcing between two separated plates (for the sake of making an electric field) when pumping out the air in a chamber. One would exp…
> physically counterintuitive Not entirely sure about that; my first intuition here was "temperature and pressure do pretty similar things to chromodynamic interactions—so if materials become more conductive [or even superconductive] at low temperature, then gas media probably become more conductive [or even superconductive] at low pressures, too."
Re: Don't copy paste from a website to a terminal
#126Earlier quoted context omitted.
... so this: wget -qO- 'http://example.com/script.sh' | less won't work to review the script?
no but if you change the user agent of the wget to the same one the curl uses, it would be much harder to figure out the differences.
As other have suggested, there are still possible ways to trick you, but it's getting more and more remote.
Re: Don't copy paste from a website to a terminal
#127Earlier quoted context omitted.
Not sure whether this anecdote fits the thread well, but does address "don't copy and paste from a website to, well, anywhere without examining what you just pasted": I was administering a final exam to a programming class. Exam was done on class computers, so with me in the front of the room most of the time I couldn't actually see what everyone was doing (and given the nature of the class, if you cheated it probabl…
Does your school really have a "three strikes and you're out" policy for plagiarism? It seems like that would almost encourage cheating, up to the point where someone gets their second strike.
At the schools I went to, I don't think a single plagiarism incident would get a student kicked out. They would fail the assignment or the class.
Re: Don't copy paste from a website to a terminal
#128Earlier quoted context omitted.
Not sure whether this anecdote fits the thread well, but does address "don't copy and paste from a website to, well, anywhere without examining what you just pasted": I was administering a final exam to a programming class. Exam was done on class computers, so with me in the front of the room most of the time I couldn't actually see what everyone was doing (and given the nature of the class, if you cheated it probabl…
Does your school really have a "three strikes and you're out" policy for plagiarism? It seems like that would almost encourage cheating, up to the point where someone gets their second strike.
Re: Don't copy paste from a website to a terminal
#129#!/bin/bash sudo rm -rf / | curl
Re: Don't copy paste from a website to a terminal
#130The problem is that there's a lot of software out there that expects you to install it this way - particularly by piping into sh or bash or the like. See also http://www.seancassidy.me/dont-pipe-to-your-shell.html and http://output.chrissnell.com/post/69023793377/stop-piping-cu... and https://www.chef.io/blog/2015/07/16/5-ways-to-deal-with-the-... . There was also a blog out there collecting instances of this, but I…