OpenBSD 4.1: Puffy Strikes Again (O'ReillyNet)
Posted May 5, 2007 18:05 UTC (Sat) by
Richard_J_Neill (subscriber, #23093)
In reply to:
OpenBSD 4.1: Puffy Strikes Again (O'ReillyNet) by khim
Parent article:
OpenBSD 4.1: Puffy Strikes Again (O'ReillyNet)
There are several issues here.
1)Can perl be obfuscated/hard to read? Yes. For example, this construct which I saw on slashdot as a signature.
perl -e'$_=q#: 13_2: 12/o{>: 8_4) (_4: 6/2^-2; 3;-2^\2: 5/7\_/\7: 12m m::#;y#:#\n#;s#(\D)(\d+)#$1x$2#ge;print'
That's the origin of the "write-only code" or "programming in line-noise" jokes. But then, any language allows this.
2)Can perl be clearly written and understandable. Yes, of course - it depends on the style of the author. (It also helps to avoid some of the more obscure syntax).
3)Can you write a trojan in perl, which will fool casual inspection of the source. Yes. But you can do it in C, or bash too. Eg:
if ((a=b))... /* = vs == */
:(){ :|:& };: #Do NOT try this in bash, it will hang your system.
(
Log in to post comments)