News for hackers. Stuff that matters.
Re:Don't Copy-Paste from Website to Terminal by dalke on Sunday April 07, 2013 @08:50PM (#5509427)
or "cat > /dev/null" and paste into the terminal to review.
Re:Don't Copy-Paste from Website to Terminal by mh- on Monday April 08, 2013 @02:07AM (#5510199)
wonder if there's something that would be copyable from the browser to the clipboard/pastebuffer/what-have-you (and pasteable to your terminal emulator) that would constitute a ^C?
Re:Don't Copy-Paste from Website to Terminal by dalke on Monday April 08, 2013 @07:11AM (#5511012)
Oh, wow - you're right! It does work, and trivially so. That is, I created chr(3), opened it in a text editor, and copy/pasted. Poof! No longer in the cat.

I then put sample command line in HTML, with an embedded  . Yep, copied and pasted just fine.

Which means my SOP for dealing with untrusted text isn't anywhere near as good as I thought it would be.

Thanks for pointing that out!