4 ms·
and here a virus in action ... http://pastebin.com/EZRWHKzn http://pastebin.com/EZRWHKzn ;)
by lr--rw-rwx 14y ago
and here a virus in action ...
http://pastebin.com/EZRWHKzn http://pastebin.com/EZRWHKzn
;)
- dag11 14y agoAfter commenting out line 20, this is actually pretty awesome.
- andypants 14y agoWhat does it do? (The whole thing, and line 20 specifically)
- raphman 14y agoIt prints colored 0s and 1s all over your terminal window. Nothing else. Line 20 (the 'trap sig_int_trap SIGINT') disables Ctrl-C. You want to comment this out.
- lr--rw-rwx 14y agoIt does not disable it, it catches it and restores the terminal cursor's visibility (originally it reseted everything, but you can just work on, and the colors will scroll off the screen). ... but of course, maybe you enjoy random color font. :p
- raphman 14y agoThank you for the correction. Based on the previous comment, I assumed the trap function was doing something evil without completely reading the script.
- dag11 14y agoOh, that makes sense. I haven't seen that command before, and from the context/presentation of the script, it made line 20 appear evil to me. :P