home *** CD-ROM | disk | FTP | other *** search
/ Acorn User 10 / AU_CD10.iso / Updates / Perl / Docs / !PerlDocs / Chapter23 / Text
Unknown  |  1997-07-17  |  23.7 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default
100% TrID Z-Code V8 adventure for Infocom Z-Machine default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 08 5e 00 00 01 00 00 00 | 00 00 00 00 06 08 00 00 |.^......|........|
|00000010| 00 08 00 00 01 10 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 10 00 00 02 18 00 00 | c8 00 00 00 00 00 00 00 |........|........|
|00000030| 07 33 c1 00 00 00 00 00 | 00 18 00 00 a5 6c 00 00 |.3......|.....l..|
|00000040| 43 08 2c 03 40 25 ff ff | 60 73 ff ff d8 3b 00 00 |C.,.@%..|`s...;..|
|00000050| 16 00 00 00 b0 fc 07 00 | 00 00 00 00 07 33 c1 00 |........|.....3..|
|00000060| 07 33 c1 00 07 33 c1 00 | 00 00 00 00 70 65 72 6c |.3...3..|....perl|
|00000070| 73 65 63 20 2d 20 50 65 | 72 6c 20 73 65 63 75 72 |sec - Pe|rl secur|
|00000080| 69 74 79 05 05 0d 08 05 | 07 33 c1 00 00 00 00 00 |ity.....|.3......|
|00000090| 07 00 50 13 08 54 93 00 | 08 54 93 00 00 00 00 00 |..P..T..|.T......|
|000000a0| 05 00 00 00 00 6c 00 00 | a5 30 00 00 40 a2 5f 01 |.....l..|.0..@._.|
|000000b0| a0 98 fe ff f0 de fe ff | 68 37 00 00 44 65 73 63 |........|h7..Desc|
|000000c0| 72 69 70 74 69 6f 6e 0d | 08 65 73 63 08 55 93 00 |ription.|.esc.U..|
|000000d0| 00 00 00 00 00 30 00 00 | 05 88 00 00 00 08 de 07 |.....0..|........|
|000000e0| 3f 40 fe ff 1f 6f fe ff | 20 22 00 00 50 65 72 6c |?@...o..| "..Perl|
|000000f0| 20 69 73 20 64 65 73 69 | 67 6e 65 64 20 74 6f 20 | is desi|gned to |
|00000100| 6d 61 6b 65 20 69 74 20 | 65 61 73 79 20 74 6f 20 |make it |easy to |
|00000110| 70 72 6f 67 72 61 6d 20 | 73 65 63 75 72 65 6c 79 |program |securely|
|00000120| 20 65 76 65 6e 20 77 68 | 65 6e 20 72 75 6e 6e 69 | even wh|en runni|
|00000130| 6e 67 20 77 69 74 68 20 | 65 78 74 72 61 20 70 72 |ng with |extra pr|
|00000140| 69 76 69 6c 65 67 65 73 | 2c 20 6c 69 6b 65 20 73 |ivileges|, like s|
|00000150| 65 74 75 69 64 20 6f 72 | 20 00 00 00 00 88 00 00 |etuid or| .......|
|00000160| 05 84 00 00 00 b8 f1 07 | 18 08 fe ff f8 36 fe ff |........|.....6..|
|00000170| 20 22 00 00 73 65 74 67 | 69 64 20 70 72 6f 67 72 | "..setg|id progr|
|00000180| 61 6d 73 2e 20 20 55 6e | 6c 69 6b 65 20 6d 6f 73 |ams. Un|like mos|
|00000190| 74 20 63 6f 6d 6d 61 6e | 64 20 6c 69 6e 65 20 73 |t comman|d line s|
|000001a0| 68 65 6c 6c 73 2c 20 77 | 68 69 63 68 20 61 72 65 |hells, w|hich are|
|000001b0| 20 62 61 73 65 64 20 6f | 6e 20 6d 75 6c 74 69 70 | based o|n multip|
|000001c0| 6c 65 20 73 75 62 73 74 | 69 74 75 74 69 6f 6e 20 |le subst|itution |
|000001d0| 70 61 73 73 65 73 20 6f | 6e 20 65 61 63 68 20 00 |passes o|n each .|
|000001e0| 00 84 00 00 05 84 00 00 | 00 00 ce 07 f1 cf fd ff |........|........|
|000001f0| d1 fe fd ff 20 22 00 00 | 6c 69 6e 65 20 6f 66 20 |.... "..|line of |
|00000200| 74 68 65 20 73 63 72 69 | 70 74 2c 20 50 65 72 6c |the scri|pt, Perl|
|00000210| 20 75 73 65 73 20 61 20 | 6d 6f 72 65 20 63 6f 6e | uses a |more con|
|00000220| 76 65 6e 74 69 6f 6e 61 | 6c 20 65 76 61 6c 75 61 |ventiona|l evalua|
|00000230| 74 69 6f 6e 20 73 63 68 | 65 6d 65 20 77 69 74 68 |tion sch|eme with|
|00000240| 20 66 65 77 65 72 20 68 | 69 64 64 65 6e 20 73 6e | fewer h|idden sn|
|00000250| 61 67 73 2e 20 20 41 64 | 64 69 74 69 6f 6e 61 6c |ags. Ad|ditional|
|00000260| 6c 79 2c 20 00 84 00 00 | 05 7c 00 00 00 10 fb 06 |ly, ....|.|......|
|00000270| ca 97 fd ff aa c6 fd ff | 20 22 00 00 62 65 63 61 |........| "..beca|
|00000280| 75 73 65 20 74 68 65 20 | 6c 61 6e 67 75 61 67 65 |use the |language|
|00000290| 20 68 61 73 20 6d 6f 72 | 65 20 62 75 69 6c 74 69 | has mor|e builti|
|000002a0| 6e 20 66 75 6e 63 74 69 | 6f 6e 61 6c 69 74 79 2c |n functi|onality,|
|000002b0| 20 69 74 20 63 61 6e 20 | 72 65 6c 79 20 6c 65 73 | it can |rely les|
|000002c0| 73 20 75 70 6f 6e 20 65 | 78 74 65 72 6e 61 6c 20 |s upon e|xternal |
|000002d0| 28 61 6e 64 20 70 6f 73 | 73 69 62 6c 79 20 00 00 |(and pos|sibly ..|
|000002e0| 00 7c 00 00 25 4c 00 00 | 40 e8 da 03 a3 5f fd ff |.|..%L..|@...._..|
|000002f0| 83 8e fd ff 20 22 00 00 | 75 6e 74 72 75 73 74 77 |.... "..|untrustw|
|00000300| 6f 72 74 68 79 29 20 70 | 72 6f 67 72 61 6d 73 20 |orthy) p|rograms |
|00000310| 74 6f 20 61 63 63 6f 6d | 70 6c 69 73 68 20 69 74 |to accom|plish it|
|00000320| 73 20 70 75 72 70 6f 73 | 65 73 2e 0d 00 4c 00 00 |s purpos|es...L..|
|00000330| 85 a0 00 00 00 98 a8 07 | cc f0 fc ff ac 1f fd ff |........|........|
|00000340| 20 22 00 00 50 65 72 6c | 20 61 75 74 6f 6d 61 74 | "..Perl| automat|
|00000350| 69 63 61 6c 6c 79 20 65 | 6e 61 62 6c 65 73 20 61 |ically e|nables a|
|00000360| 20 73 65 74 20 6f 66 20 | 73 70 65 63 69 61 6c 20 | set of |special |
|00000370| 73 65 63 75 72 69 74 79 | 20 63 68 65 63 6b 73 2c |security| checks,|
|00000380| 20 63 61 6c 6c 65 64 20 | 07 67 69 64 11 56 93 00 | called |.gid.V..|
|00000390| 11 56 93 00 00 00 00 00 | 74 61 69 6e 74 20 6d 6f |.V......|taint mo|
|000003a0| 64 65 08 20 11 00 00 00 | 00 00 00 00 2c 20 77 68 |de. ....|...., wh|
|000003b0| 65 6e 20 69 74 20 64 65 | 74 65 63 74 73 20 69 74 |en it de|tects it|
|000003c0| 73 20 70 72 6f 67 72 61 | 6d 20 00 00 00 a0 00 00 |s progra|m ......|
|000003d0| 05 84 00 00 00 68 8d 07 | a5 b8 fc ff 85 e7 fc ff |.....h..|........|
|000003e0| 20 22 00 00 72 75 6e 6e | 69 6e 67 20 77 69 74 68 | "..runn|ing with|
|000003f0| 20 64 69 66 66 65 72 69 | 6e 67 20 72 65 61 6c 20 | differi|ng real |
|00000400| 61 6e 64 20 65 66 66 65 | 63 74 69 76 65 20 75 73 |and effe|ctive us|
|00000410| 65 72 20 6f 72 20 67 72 | 6f 75 70 20 49 44 73 2e |er or gr|oup IDs.|
|00000420| 20 20 54 68 65 20 73 65 | 74 75 69 64 20 62 69 74 | The se|tuid bit|
|00000430| 20 69 6e 20 55 6e 69 78 | 20 70 65 72 6d 69 73 73 | in Unix| permiss|
|00000440| 69 6f 6e 73 20 69 73 20 | 6d 6f 64 65 20 00 00 00 |ions is |mode ...|
|00000450| 00 84 00 00 05 84 00 00 | 00 00 bf 07 7e 80 fc ff |........|....~...|
|00000460| 5e af fc ff 20 22 00 00 | 30 34 30 30 30 2c 20 74 |^... "..|04000, t|
|00000470| 68 65 20 73 65 74 67 69 | 64 20 62 69 74 20 6d 6f |he setgi|d bit mo|
|00000480| 64 65 20 30 32 30 30 30 | 3b 20 65 69 74 68 65 72 |de 02000|; either|
|00000490| 20 6f 72 20 62 6f 74 68 | 20 6d 61 79 20 62 65 20 | or both| may be |
|000004a0| 73 65 74 2e 20 20 59 6f | 75 20 63 61 6e 20 61 6c |set. Yo|u can al|
|000004b0| 73 6f 20 65 6e 61 62 6c | 65 20 74 61 69 6e 74 20 |so enabl|e taint |
|000004c0| 6d 6f 64 65 20 65 78 70 | 6c 69 63 69 74 6c 79 20 |mode exp|licitly |
|000004d0| 62 79 20 00 00 84 00 00 | 85 b8 00 00 00 b0 ed 07 |by .....|........|
|000004e0| 57 48 fc ff 37 77 fc ff | 20 22 00 00 75 73 69 6e |WH..7w..| "..usin|
|000004f0| 67 20 74 68 65 20 07 00 | 10 57 93 00 10 57 93 00 |g the ..|.W...W..|
|00000500| 00 00 00 00 2d 54 08 73 | 10 00 00 00 00 00 00 00 |....-T.s|........|
|00000510| 20 63 6f 6d 6d 61 6e 64 | 20 6c 69 6e 65 20 66 6c | command| line fl|
|00000520| 61 67 2e 20 54 68 69 73 | 20 66 6c 61 67 20 69 73 |ag. This| flag is|
|00000530| 20 07 75 62 11 58 93 00 | 11 58 93 00 00 00 00 00 | .ub.X..|.X......|
|00000540| 73 74 72 6f 6e 67 6c 79 | 08 68 65 73 11 00 00 00 |strongly|.hes....|
|00000550| 00 00 00 00 20 73 75 67 | 67 65 73 74 65 64 20 66 |.... sug|gested f|
|00000560| 6f 72 20 73 65 72 76 65 | 72 20 70 72 6f 67 72 61 |or serve|r progra|
|00000570| 6d 73 20 61 6e 64 20 61 | 6e 79 20 70 72 6f 67 72 |ms and a|ny progr|
|00000580| 61 6d 20 72 75 6e 20 6f | 6e 20 00 00 00 b8 00 00 |am run o|n ......|
|00000590| 25 48 00 00 40 90 4b 03 | 30 10 fc ff 10 3f fc ff |%H..@.K.|0....?..|
|000005a0| 20 22 00 00 62 65 68 61 | 6c 66 20 6f 66 20 73 6f | "..beha|lf of so|
|000005b0| 6d 65 6f 6e 65 20 65 6c | 73 65 2c 20 73 75 63 68 |meone el|se, such|
|000005c0| 20 61 73 20 61 20 43 47 | 49 20 73 63 72 69 70 74 | as a CG|I script|
|000005d0| 2e 0d 00 00 00 48 00 00 | 85 9c 00 00 00 98 9f 07 |.....H..|........|
|000005e0| 59 a1 fb ff 39 d0 fb ff | 20 22 00 00 57 68 69 6c |Y...9...| "..Whil|
|000005f0| 65 20 69 6e 20 74 68 69 | 73 20 6d 6f 64 65 2c 20 |e in thi|s mode, |
|00000600| 50 65 72 6c 20 74 61 6b | 65 73 20 73 70 65 63 69 |Perl tak|es speci|
|00000610| 61 6c 20 70 72 65 63 61 | 75 74 69 6f 6e 73 20 63 |al preca|utions c|
|00000620| 61 6c 6c 65 64 20 07 66 | 11 59 93 00 11 59 93 00 |alled .f|.Y...Y..|
|00000630| 00 00 00 00 74 61 69 6e | 74 20 63 68 65 63 6b 73 |....tain|t checks|
|00000640| 08 65 73 70 11 00 00 00 | 00 00 00 00 20 74 6f 20 |.esp....|.... to |
|00000650| 70 72 65 76 65 6e 74 20 | 62 6f 74 68 20 6f 62 76 |prevent |both obv|
|00000660| 69 6f 75 73 20 61 6e 64 | 20 73 75 62 74 6c 65 20 |ious and| subtle |
|00000670| 00 9c 00 00 05 88 00 00 | 00 20 e1 07 32 69 fb ff |........|. ..2i..|
|00000680| 12 98 fb ff 20 22 00 00 | 74 72 61 70 73 2e 20 20 |.... "..|traps. |
|00000690| 53 6f 6d 65 20 6f 66 20 | 74 68 65 73 65 20 63 68 |Some of |these ch|
|000006a0| 65 63 6b 73 20 61 72 65 | 20 72 65 61 73 6f 6e 61 |ecks are| reasona|
|000006b0| 62 6c 79 20 73 69 6d 70 | 6c 65 2c 20 73 75 63 68 |bly simp|le, such|
|000006c0| 20 61 73 20 76 65 72 69 | 66 79 69 6e 67 20 74 68 | as veri|fying th|
|000006d0| 61 74 20 70 61 74 68 20 | 64 69 72 65 63 74 6f 72 |at path |director|
|000006e0| 69 65 73 20 61 72 65 6e | 27 74 20 77 72 69 74 61 |ies aren|'t writa|
|000006f0| 62 6c 65 20 62 79 20 00 | 00 88 00 00 05 84 00 00 |ble by .|........|
|00000700| 00 cc ec 07 0b 31 fb ff | eb 5f fb ff 20 22 00 00 |.....1..|._.. "..|
|00000710| 6f 74 68 65 72 73 3b 20 | 63 61 72 65 66 75 6c 20 |others; |careful |
|00000720| 70 72 6f 67 72 61 6d 6d | 65 72 73 20 68 61 76 65 |programm|ers have|
|00000730| 20 61 6c 77 61 79 73 20 | 75 73 65 64 20 63 68 65 | always |used che|
|00000740| 63 6b 73 20 6c 69 6b 65 | 20 74 68 65 73 65 2e 20 |cks like| these. |
|00000750| 20 4f 74 68 65 72 20 63 | 68 65 63 6b 73 2c 20 68 | Other c|hecks, h|
|00000760| 6f 77 65 76 65 72 2c 20 | 61 72 65 20 62 65 73 74 |owever, |are best|
|00000770| 20 73 75 70 70 6f 72 74 | 65 64 20 00 00 84 00 00 | support|ed .....|
|00000780| 05 88 00 00 00 10 eb 07 | e4 f8 fa ff c4 27 fb ff |........|.....'..|
|00000790| 20 22 00 00 62 79 20 74 | 68 65 20 6c 61 6e 67 75 | "..by t|he langu|
|000007a0| 61 67 65 20 69 74 73 65 | 6c 66 2c 20 61 6e 64 20 |age itse|lf, and |
|000007b0| 69 74 20 69 73 20 74 68 | 65 73 65 20 63 68 65 63 |it is th|ese chec|
|000007c0| 6b 73 20 65 73 70 65 63 | 69 61 6c 6c 79 20 74 68 |ks espec|ially th|
|000007d0| 61 74 20 63 6f 6e 74 72 | 69 62 75 74 65 20 74 6f |at contr|ibute to|
|000007e0| 20 6d 61 6b 69 6e 67 20 | 61 20 73 65 74 75 69 64 | making |a setuid|
|000007f0| 20 50 65 72 6c 20 70 72 | 6f 67 72 61 6d 20 6d 6f | Perl pr|ogram mo|
|00000800| 72 65 20 00 00 88 00 00 | 25 44 00 00 40 48 12 03 |re .....|%D..@H..|
|00000810| bd c0 fa ff 9d ef fa ff | 20 22 00 00 73 65 63 75 |........| "..secu|
|00000820| 72 65 20 74 68 61 6e 20 | 74 68 65 20 63 6f 72 72 |re than |the corr|
|00000830| 65 73 70 6f 6e 64 69 6e | 67 20 43 20 70 72 6f 67 |espondin|g C prog|
|00000840| 72 61 6d 2e 0d 00 00 00 | 00 44 00 00 05 84 00 00 |ram.....|.D......|
|00000850| 00 58 dc 07 e6 51 fa ff | c6 80 fa ff 20 22 00 00 |.X...Q..|.... "..|
|00000860| 59 6f 75 20 6d 61 79 20 | 6e 6f 74 20 75 73 65 20 |You may |not use |
|00000870| 64 61 74 61 20 64 65 72 | 69 76 65 64 20 66 72 6f |data der|ived fro|
|00000880| 6d 20 6f 75 74 73 69 64 | 65 20 79 6f 75 72 20 70 |m outsid|e your p|
|00000890| 72 6f 67 72 61 6d 20 74 | 6f 20 61 66 66 65 63 74 |rogram t|o affect|
|000008a0| 20 73 6f 6d 65 74 68 69 | 6e 67 20 65 6c 73 65 20 | somethi|ng else |
|000008b0| 6f 75 74 73 69 64 65 20 | 79 6f 75 72 20 70 72 6f |outside |your pro|
|000008c0| 67 72 61 6d 2d 2d 61 74 | 20 00 00 00 00 84 00 00 |gram--at| .......|
|000008d0| 05 80 00 00 00 fc 92 07 | bf 19 fa ff 9f 48 fa ff |........|.....H..|
|000008e0| 20 22 00 00 6c 65 61 73 | 74 2c 20 6e 6f 74 20 62 | "..leas|t, not b|
|000008f0| 79 20 61 63 63 69 64 65 | 6e 74 2e 20 20 41 6c 6c |y accide|nt. All|
|00000900| 20 63 6f 6d 6d 61 6e 64 | 20 6c 69 6e 65 20 61 72 | command| line ar|
|00000910| 67 75 6d 65 6e 74 73 2c | 20 65 6e 76 69 72 6f 6e |guments,| environ|
|00000920| 6d 65 6e 74 20 76 61 72 | 69 61 62 6c 65 73 2c 20 |ment var|iables, |
|00000930| 6c 6f 63 61 6c 65 20 69 | 6e 66 6f 72 6d 61 74 69 |locale i|nformati|
|00000940| 6f 6e 20 28 73 65 65 20 | 74 68 65 20 00 80 00 00 |on (see |the ....|
|00000950| 85 9c 00 00 00 f8 4e 07 | 98 e1 f9 ff 78 10 fa ff |......N.|....x...|
|00000960| 20 22 00 00 63 68 61 70 | 74 65 72 20 07 73 6f 6d | "..chap|ter .som|
|00000970| 10 5a 93 00 10 5a 93 00 | 00 00 00 00 70 65 72 6c |.Z...Z..|....perl|
|00000980| 6c 6f 63 61 6c 65 08 63 | 10 00 00 00 00 00 00 00 |locale.c|........|
|00000990| 29 2c 20 61 6e 64 20 66 | 69 6c 65 20 69 6e 70 75 |), and f|ile inpu|
|000009a0| 74 20 61 72 65 20 6d 61 | 72 6b 65 64 20 61 73 20 |t are ma|rked as |
|000009b0| 22 74 61 69 6e 74 65 64 | 22 2e 20 20 54 61 69 6e |"tainted|". Tain|
|000009c0| 74 65 64 20 64 61 74 61 | 20 6d 61 79 20 6e 6f 74 |ted data| may not|
|000009d0| 20 62 65 20 75 73 65 64 | 20 64 69 72 65 63 74 6c | be used| directl|
|000009e0| 79 20 6f 72 20 00 00 00 | 00 9c 00 00 05 84 00 00 |y or ...|........|
|000009f0| 00 18 d1 07 71 a9 f9 ff | 51 d8 f9 ff 20 22 00 00 |....q...|Q... "..|
|00000a00| 69 6e 64 69 72 65 63 74 | 6c 79 20 69 6e 20 61 6e |indirect|ly in an|
|00000a10| 79 20 63 6f 6d 6d 61 6e | 64 20 74 68 61 74 20 69 |y comman|d that i|
|00000a20| 6e 76 6f 6b 65 73 20 61 | 20 73 75 62 2d 73 68 65 |nvokes a| sub-she|
|00000a30| 6c 6c 2c 20 6e 6f 72 20 | 69 6e 20 61 6e 79 20 63 |ll, nor |in any c|
|00000a40| 6f 6d 6d 61 6e 64 20 74 | 68 61 74 20 6d 6f 64 69 |ommand t|hat modi|
|00000a50| 66 69 65 73 20 66 69 6c | 65 73 2c 20 64 69 72 65 |fies fil|es, dire|
|00000a60| 63 74 6f 72 69 65 73 2c | 20 6f 72 20 00 84 00 00 |ctories,| or ....|
|00000a70| 05 80 00 00 00 08 5d 07 | 4a 71 f9 ff 2a a0 f9 ff |......].|Jq..*...|
|00000a80| 20 22 00 00 70 72 6f 63 | 65 73 73 65 73 2e 20 20 | "..proc|esses. |
|00000a90| 41 6e 79 20 76 61 72 69 | 61 62 6c 65 20 73 65 74 |Any vari|able set|
|00000aa0| 20 77 69 74 68 69 6e 20 | 61 6e 20 65 78 70 72 65 | within |an expre|
|00000ab0| 73 73 69 6f 6e 20 74 68 | 61 74 20 68 61 73 20 70 |ssion th|at has p|
|00000ac0| 72 65 76 69 6f 75 73 6c | 79 20 72 65 66 65 72 65 |reviousl|y refere|
|00000ad0| 6e 63 65 64 20 61 20 74 | 61 69 6e 74 65 64 20 76 |nced a t|ainted v|
|00000ae0| 61 6c 75 65 20 69 74 73 | 65 6c 66 20 00 80 00 00 |alue its|elf ....|
|00000af0| 05 88 00 00 00 5c b4 07 | 23 39 f9 ff 03 68 f9 ff |.....\..|#9...h..|
|00000b00| 20 22 00 00 62 65 63 6f | 6d 65 73 20 74 61 69 6e | "..beco|mes tain|
|00000b10| 74 65 64 2c 20 65 76 65 | 6e 20 69 66 20 69 74 20 |ted, eve|n if it |
|00000b20| 69 73 20 6c 6f 67 69 63 | 61 6c 6c 79 20 69 6d 70 |is logic|ally imp|
|00000b30| 6f 05 73 73 69 62 6c 65 | 20 66 6f 72 20 74 68 65 |o.ssible| for the|
|00000b40| 20 74 61 69 6e 74 65 64 | 20 76 61 6c 75 65 20 74 | tainted| value t|
|00000b50| 6f 20 69 6e 66 6c 75 65 | 6e 63 65 20 74 68 65 20 |o influe|nce the |
|00000b60| 76 61 72 69 61 62 6c 65 | 2e 20 20 42 65 63 61 75 |variable|. Becau|
|00000b70| 73 65 20 00 00 88 00 00 | a5 90 00 00 40 30 a7 07 |se .....|....@0..|
|00000b80| fc 00 f9 ff dc 2f f9 ff | 20 22 00 00 74 61 69 6e |...../..| "..tain|
|00000b90| 74 65 64 6e 65 73 73 20 | 69 73 20 61 73 73 6f 63 |tedness |is assoc|
|00000ba0| 69 61 74 65 64 20 77 69 | 74 68 20 65 61 63 68 20 |iated wi|th each |
|00000bb0| 73 63 61 6c 61 72 20 76 | 61 6c 75 65 2c 20 73 6f |scalar v|alue, so|
|00000bc0| 6d 65 20 65 6c 65 6d 65 | 6e 74 73 20 6f 66 20 61 |me eleme|nts of a|
|00000bd0| 6e 20 61 72 72 61 79 20 | 63 61 6e 20 62 65 20 74 |n array |can be t|
|00000be0| 61 69 6e 74 65 64 20 61 | 6e 64 20 6f 74 68 65 72 |ainted a|nd other|
|00000bf0| 73 20 6e 6f 74 2e 0d 07 | 14 5b 93 00 14 5b 93 00 |s not...|.[...[..|
|00000c00| 00 00 00 00 00 90 00 00 | a5 54 00 00 40 ac f8 00 |........|.T..@...|
|00000c10| 25 92 f8 ff 05 c1 f8 ff | 20 22 00 00 46 6f 72 20 |%.......| "..For |
|00000c20| 65 78 61 6d 70 6c 65 3a | 0d 08 65 63 14 00 00 00 |example:|..ec....|
|00000c30| 00 00 00 00 07 6d 20 22 | 12 5c 93 00 12 5c 93 00 |.....m "|.\...\..|
|00000c40| 00 00 00 00 07 20 20 20 | 0c 5d 93 00 12 5c 93 00 |..... |.]...\..|
|00000c50| 0c 5d 93 00 00 00 00 00 | 00 54 00 00 25 48 00 00 |.]......|.T..%H..|
|00000c60| 40 b0 1e 04 1e 2b f8 ff | 2e 52 f8 ff 70 1a 00 00 |@....+..|.R..p...|
|00000c70| 24 61 72 67 20 3d 20 73 | 68 69 66 74 3b 20 20 20 |$arg = s|hift; |
|00000c80| 20 20 20 20 20 20 20 20 | 20 20 20 20 23 20 24 61 | | # $a|
|00000c90| 72 67 20 69 73 20 74 61 | 69 6e 74 65 64 0d 00 00 |rg is ta|inted...|
|00000ca0| 00 48 00 00 25 4c 00 00 | 40 e0 93 04 3e fc f7 ff |.H..%L..|@...>...|
|00000cb0| 4e 23 f8 ff 70 1a 00 00 | 24 68 69 64 20 3d 20 24 |N#..p...|$hid = $|
|00000cc0| 61 72 67 2c 20 27 62 61 | 72 27 3b 20 20 20 20 20 |arg, 'ba|r'; |
|00000cd0| 20 20 20 20 23 20 24 68 | 69 64 20 69 73 20 61 6c | # $h|id is al|
|00000ce0| 73 6f 20 74 61 69 6e 74 | 65 64 0d 00 00 4c 00 00 |so taint|ed...L..|
|00000cf0| 25 40 00 00 40 30 63 03 | 5e cd f7 ff 6e f4 f7 ff |%@..@0c.|^...n...|
|00000d00| 70 1a 00 00 24 6c 69 6e | 65 20 3d 20 3c 3e 3b 20 |p...$lin|e = <>; |
|00000d10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000d20| 23 20 54 61 69 6e 74 65 | 64 0d 00 00 00 40 00 00 |# Tainte|d....@..|
|00000d30| 25 44 00 00 40 60 d8 03 | 7e 9e f7 ff 8e c5 f7 ff |%D..@`..|~.......|
|00000d40| 70 1a 00 00 24 6c 69 6e | 65 20 3d 20 3c 53 54 44 |p...$lin|e = <STD|
|00000d50| 49 4e 3e 3b 20 20 20 20 | 20 20 20 20 20 20 20 20 |IN>; | |
|00000d60| 23 20 41 6c 73 6f 20 74 | 61 69 6e 74 65 64 0d 00 |# Also t|ainted..|
|00000d70| 00 44 00 00 25 3c 00 00 | 40 50 34 03 9e 6f f7 ff |.D..%<..|@P4..o..|
|00000d80| ae 96 f7 ff 70 1a 00 00 | 6f 70 65 6e 20 46 4f 4f |....p...|open FOO|
|00000d90| 2c 20 22 2f 68 6f 6d 65 | 2f 6d 65 2f 62 61 72 22 |, "/home|/me/bar"|
|00000da0| 20 6f 72 20 64 69 65 20 | 24 21 3b 0d 00 3c 00 00 | or die |$!;..<..|
|00000db0| 25 44 00 00 40 d0 ef 03 | be 40 f7 ff ce 67 f7 ff |%D..@...|.@...g..|
|00000dc0| 70 1a 00 00 24 6c 69 6e | 65 20 3d 20 3c 46 4f 4f |p...$lin|e = <FOO|
|00000dd0| 3e 3b 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |>; | |
|00000de0| 23 20 53 74 69 6c 6c 20 | 74 61 69 6e 74 65 64 0d |# Still |tainted.|
|00000df0| 00 44 00 00 25 50 00 00 | 40 c0 c2 04 de 11 f7 ff |.D..%P..|@.......|
|00000e00| ee 38 f7 ff 70 1a 00 00 | 24 70 61 74 68 20 3d 20 |.8..p...|$path = |
|00000e10| 24 45 4e 56 7b 27 50 41 | 54 48 27 7d 3b 20 20 20 |$ENV{'PA|TH'}; |
|00000e20| 20 20 20 20 23 20 54 61 | 69 6e 74 65 64 2c 20 62 | # Ta|inted, b|
|00000e30| 75 74 20 73 65 65 20 62 | 65 6c 6f 77 0d 00 00 00 |ut see b|elow....|
|00000e40| 00 50 00 00 a5 6c 00 00 | 40 f0 c0 03 fe e2 f6 ff |.P...l..|@.......|
|00000e50| 0e 0a f7 ff 70 1a 00 00 | 24 64 61 74 61 20 3d 20 |....p...|$data = |
|00000e60| 27 61 62 63 27 3b 20 20 | 20 20 20 20 20 20 20 20 |'abc'; | |
|00000e70| 20 20 20 20 23 20 4e 6f | 74 20 74 61 69 6e 74 65 | # No|t tainte|
|00000e80| 64 0d 08 00 0c 5e 93 00 | 12 5c 93 00 00 00 00 00 |d....^..|.\......|
|00000e90| 08 05 05 05 12 00 00 00 | 00 00 00 00 07 00 00 00 |........|........|
|00000ea0| 18 5f 93 00 18 5f 93 00 | 00 00 00 00 00 6c 00 00 |._..._..|.....l..|
|00000eb0| a5 48 00 00 40 00 00 00 | 6e ce f6 ff 2e db f6 ff |.H..@...|n.......|
|00000ec0| 00 00 00 00 0d 08 29 3b | 18 60 93 00 00 00 00 00 |......);|.`......|
|00000ed0| 07 20 4f 4b 12 61 93 00 | 12 61 93 00 00 00 00 00 |. OK.a..|.a......|
|00000ee0| 07 66 69 6c 0c 62 93 00 | 12 61 93 00 0c 62 93 00 |.fil.b..|.a...b..|
|00000ef0| 00 00 00 00 00 48 00 00 | 25 40 00 00 40 a0 7a 03 |.....H..|%@..@.z.|
|00000f00| 6e 7d f6 ff 7e a4 f6 ff | 70 1a 00 00 73 79 73 74 |n}..~...|p...syst|
|00000f10| 65 6d 20 22 65 63 68 6f | 20 24 61 72 67 22 3b 20 |em "echo| $arg"; |
|00000f20| 20 20 20 20 20 20 20 20 | 23 20 49 6e 73 65 63 75 | |# Insecu|
|00000f30| 72 65 0d 00 00 40 00 00 | 25 50 00 00 40 30 da 04 |re...@..|%P..@0..|
|00000f40| 8e 4e f6 ff 9e 75 f6 ff | 70 1a 00 00 73 79 73 74 |.N...u..|p...syst|
|00000f50| 65 6d 20 22 2f 62 69 6e | 2f 65 63 68 6f 22 2c 20 |em "/bin|/echo", |
|00000f60| 24 61 72 67 3b 20 20 20 | 23 20 53 65 63 75 72 65 |$arg; |# Secure|
|00000f70| 20 28 64 6f 65 73 6e 27 | 74 20 75 73 65 20 73 68 | (doesn'|t use sh|
|00000f80| 29 0d 00 00 00 50 00 00 | 25 40 00 00 40 a0 7a 03 |)....P..|%@..@.z.|
|00000f90| ae 1f f6 ff be 46 f6 ff | 70 1a 00 00 73 79 73 74 |.....F..|p...syst|
|00000fa0| 65 6d 20 22 65 63 68 6f | 20 24 68 69 64 22 3b 20 |em "echo| $hid"; |
|00000fb0| 20 20 20 20 20 20 20 20 | 23 20 49 6e 73 65 63 75 | |# Insecu|
|00000fc0| 72 65 0d 00 00 40 00 00 | a5 78 00 00 40 30 da 04 |re...@..|.x..@0..|
|00000fd0| ce f0 f5 ff de 17 f6 ff | 70 1a 00 00 73 79 73 74 |........|p...syst|
|00000fe0| 65 6d 20 22 65 63 68 6f | 20 24 64 61 74 61 22 3b |em "echo| $data";|
|00000ff0| 20 20 20 20 20 20 20 20 | 23 20 49 6e 73 65 63 75 | |# Insecu|
|00001000| 72 65 20 75 6e 74 69 6c | 20 50 41 54 48 20 73 65 |re until| PATH se|
|00001010| 74 0d 08 00 0c 63 93 00 | 12 61 93 00 00 00 00 00 |t....c..|.a......|
|00001020| 08 80 93 00 12 00 00 00 | 00 00 00 00 07 00 00 00 |........|........|
|00001030| 18 64 93 00 18 64 93 00 | 00 00 00 00 00 78 00 00 |.d...d..|.....x..|
|00001040| a5 48 00 00 40 00 00 00 | 3e dc f5 ff fe e8 f5 ff |.H..@...|>.......|
|00001050| 00 00 00 00 0d 08 2c 20 | 18 65 93 00 00 00 00 00 |......, |.e......|
|00001060| 07 77 20 74 12 66 93 00 | 12 66 93 00 00 00 00 00 |.w t.f..|.f......|
|00001070| 07 7f 93 00 0c 67 93 00 | 12 66 93 00 0c 67 93 00 |.....g..|.f...g..|
|00001080| 00 00 00 00 00 48 00 00 | a5 74 00 00 40 90 4d 04 |.....H..|.t..@.M.|
|00001090| 3e 8b f5 ff 4e b2 f5 ff | 70 1a 00 00 24 70 61 74 |>...N...|p...$pat|
|000010a0| 68 20 3d 20 24 45 4e 56 | 7b 27 50 41 54 48 27 7d |h = $ENV|{'PATH'}|
|000010b0| 3b 20 20 20 20 20 20 20 | 23 20 24 70 61 74 68 20 |; |# $path |
|000010c0| 6e 6f 77 20 74 61 69 6e | 74 65 64 0d 08 61 74 61 |now tain|ted..ata|
|000010d0| 0c 68 93 00 12 66 93 00 | 00 00 00 00 08 20 20 20 |.h...f..|..... |
|000010e0| 12 00 00 00 00 00 00 00 | 07 65 0d 75 18 69 93 00 |........|.e.u.i..|
|000010f0| 18 69 93 00 00 00 00 00 | 00 74 00 00 a5 48 00 00 |.i......|.t...H..|
|00001100| 40 00 00 00 ae 76 f5 ff | 6e 83 f5 ff 00 00 00 00 |@....v..|n.......|
|00001110| 0d 08 08 05 18 6a 93 00 | 00 00 00 00 07 00 00 00 |.....j..|........|
|00001120| 12 6b 93 00 12 6b 93 00 | 00 00 00 00 07 05 05 05 |.k...k..|........|
|00001130| 0c 6c 93 00 12 6b 93 00 | 0c 6c 93 00 00 00 00 00 |.l...k..|.l......|
|00001140| 00 48 00 00 25 38 00 00 | 40 90 d6 02 ae 25 f5 ff |.H..%8..|@....%..|
|00001150| be 4c f5 ff 70 1a 00 00 | 24 45 4e 56 7b 27 50 41 |.L..p...|$ENV{'PA|
|00001160| 54 48 27 7d 20 3d 20 27 | 2f 62 69 6e 3a 2f 75 73 |TH'} = '|/bin:/us|
|00001170| 72 2f 62 69 6e 27 3b 0d | 00 38 00 00 a5 74 00 00 |r/bin';.|.8...t..|
|00001180| 40 00 65 04 ce f6 f4 ff | de 1d f5 ff 70 1a 00 00 |@.e.....|....p...|
|00001190| 64 65 6c 65 74 65 20 40 | 45 4e 56 7b 27 49 46 53 |delete @|ENV{'IFS|
|000011a0| 27 2c 20 27 43 44 50 41 | 54 48 27 2c 20 27 45 4e |', 'CDPA|TH', 'EN|
|000011b0| 56 27 2c 20 27 42 41 53 | 48 5f 45 4e 56 27 7d 3b |V', 'BAS|H_ENV'};|
|000011c0| 0d 08 73 65 0c 6d 93 00 | 12 6b 93 00 00 00 00 00 |..se.m..|.k......|
|000011d0| 08 78 65 63 12 00 00 00 | 00 00 00 00 07 63 27 2c |.xec....|.....c',|
|000011e0| 18 6e 93 00 18 6e 93 00 | 00 00 00 00 00 74 00 00 |.n...n..|.....t..|
|000011f0| a5 48 00 00 40 00 00 00 | 3e e2 f4 ff fe ee f4 ff |.H..@...|>.......|
|00001200| 00 00 00 00 0d 08 0d 08 | 18 6f 93 00 00 00 00 00 |........|.o......|
|00001210| 07 00 00 00 12 70 93 00 | 12 70 93 00 00 00 00 00 |.....p..|.p......|
|00001220| 07 05 05 05 0c 71 93 00 | 12 70 93 00 0c 71 93 00 |.....q..|.p...q..|
|00001230| 00 00 00 00 00 48 00 00 | 25 4c 00 00 40 50 ab 04 |.....H..|%L..@P..|
|00001240| 3e 91 f4 ff 4e b8 f4 ff | 70 1a 00 00 24 70 61 74 |>...N...|p...$pat|
|00001250| 68 20 3d 20 24 45 4e 56 | 7b 27 50 41 54 48 27 7d |h = $ENV|{'PATH'}|
|00001260| 3b 20 20 20 20 20 20 20 | 23 20 24 70 61 74 68 20 |; |# $path |
|00001270| 6e 6f 77 20 4e 4f 54 20 | 74 61 69 6e 74 65 64 0d |now NOT |tainted.|
|00001280| 00 4c 00 00 a5 70 00 00 | 40 40 07 04 5e 62 f4 ff |.L...p..|@@..^b..|
|00001290| 6e 89 f4 ff 70 1a 00 00 | 73 79 73 74 65 6d 20 22 |n...p...|system "|
|000012a0| 65 63 68 6f 20 24 64 61 | 74 61 22 3b 20 20 20 20 |echo $da|ta"; |
|000012b0| 20 20 20 20 23 20 49 73 | 20 73 65 63 75 72 65 20 | # Is| secure |
|000012c0| 6e 6f 77 21 0d 08 20 28 | 0c 72 93 00 12 70 93 00 |now!.. (|.r...p..|
|000012d0| 00 00 00 00 08 90 93 00 | 12 00 00 00 00 00 00 00 |........|........|
|000012e0| 07 05 05 05 18 73 93 00 | 18 73 93 00 00 00 00 00 |.....s..|.s......|
|000012f0| 00 70 00 00 a5 48 00 00 | 40 00 00 00 ce 4d f4 ff |.p...H..|@....M..|
|00001300| 8e 5a f4 ff 00 00 00 00 | 0d 08 93 00 18 74 93 00 |.Z......|.....t..|
|00001310| 00 00 00 00 07 4c 00 00 | 12 75 93 00 12 75 93 00 |.....L..|.u...u..|
|00001320| 00 00 00 00 07 1a 00 00 | 0c 76 93 00 12 75 93 00 |........|.v...u..|
|00001330| 0c 76 93 00 00 00 00 00 | 00 48 00 00 01 10 00 00 |.v......|.H......|
|00001340| 41 70 7c 04 00 00 00 00 | 00 10 00 00 02 1c 00 00 |Ap|.....|........|
|00001350| 64 02 00 00 00 00 00 00 | 12 75 93 00 0c 76 93 00 |d.......|.u...v..|
|00001360| 00 00 00 00 00 1c 00 00 | 25 58 00 00 40 70 7c 04 |........|%X..@p|.|
|00001370| 9f 4c f2 ff af 73 f2 ff | 70 1a 00 00 16 00 00 00 |.L...s..|p.......|
|00001380| b0 fc 07 00 00 00 00 00 | 6f 70 65 6e 28 46 4f 4f |........|open(FOO|
|00001390| 2c 20 22 3c 20 24 61 72 | 67 22 29 3b 20 20 20 20 |, "< $ar|g"); |
|000013a0| 20 20 20 20 23 20 4f 4b | 20 2d 20 72 65 61 64 2d | # OK| - read-|
|000013b0| 6f 6e 6c 79 20 66 69 6c | 65 0d 00 00 00 58 00 00 |only fil|e....X..|
|000013c0| a5 78 00 00 40 a0 f1 04 | bf 1d f2 ff cf 44 f2 ff |.x..@...|.....D..|
|000013d0| 70 1a 00 00 6f 70 65 6e | 28 46 4f 4f 2c 20 22 3e |p...open|(FOO, ">|
|000013e0| 20 24 61 72 67 22 29 3b | 20 20 20 20 20 20 20 20 | $arg");| |
|000013f0| 23 20 4e 6f 74 20 4f 4b | 20 2d 20 74 72 79 69 6e |# Not OK| - tryin|
|00001400| 67 20 74 6f 20 77 72 69 | 74 65 0d 08 0c 77 93 00 |g to wri|te...w..|
|00001410| 12 75 93 00 00 00 00 00 | 08 73 65 63 12 00 00 00 |.u......|.sec....|
|00001420| 00 00 00 00 07 76 93 00 | 18 78 93 00 18 78 93 00 |.....v..|.x...x..|
|00001430| 00 00 00 00 00 78 00 00 | a5 48 00 00 40 00 00 00 |.....x..|.H..@...|
|00001440| 2f 09 f2 ff ef 15 f2 ff | 00 00 00 00 0d 08 75 20 |/.......|......u |
|00001450| 18 79 93 00 00 00 00 00 | 07 20 61 20 12 7a 93 00 |.y......|. a .z..|
|00001460| 12 7a 93 00 00 00 00 00 | 07 6e 67 20 0c 7b 93 00 |.z......|.ng .{..|
|00001470| 12 7a 93 00 0c 7b 93 00 | 00 00 00 00 00 48 00 00 |.z...{..|.....H..|
|00001480| 25 48 00 00 40 40 07 04 | 2f b8 f1 ff 3f df f1 ff |%H..@@..|/...?...|
|00001490| 70 1a 00 00 6f 70 65 6e | 28 46 4f 4f 2c 22 65 63 |p...open|(FOO,"ec|
|000014a0| 68 6f 20 24 61 72 67 7c | 22 29 3b 20 20 20 20 20 |ho $arg||"); |
|000014b0| 23 20 4e 6f 74 20 4f 4b | 2c 20 62 75 74 2e 2e 2e |# Not OK|, but...|
|000014c0| 0d 00 00 00 00 48 00 00 | 25 28 00 00 40 20 48 01 |.....H..|%(..@ H.|
|000014d0| 4f 89 f1 ff 5f b0 f1 ff | 70 1a 00 00 6f 70 65 6e |O..._...|p...open|
|000014e0| 28 46 4f 4f 2c 22 2d 7c | 22 29 0d 00 00 28 00 00 |(FOO,"-||")...(..|
|000014f0| a5 64 00 00 40 00 ee 02 | 6f 5a f1 ff 7f 81 f1 ff |.d..@...|oZ......|
|00001500| 70 1a 00 00 20 20 20 20 | 6f 72 20 65 78 65 63 20 |p... |or exec |
|00001510| 27 65 63 68 6f 27 2c 20 | 24 61 72 67 3b 20 20 20 |'echo', |$arg; |
|00001520| 23 20 4f 4b 0d 08 49 74 | 0c 7c 93 00 12 7a 93 00 |# OK..It|.|...z..|
|00001530| 00 00 00 00 08 76 65 72 | 12 00 00 00 00 00 00 00 |.....ver|........|
|00001540| 07 74 68 65 18 7d 93 00 | 18 7d 93 00 00 00 00 00 |.the.}..|.}......|
|00001550| 00 64 00 00 a5 48 00 00 | 40 00 00 00 df 45 f1 ff |.d...H..|@....E..|
|00001560| 9f 52 f1 ff 00 00 00 00 | 0d 08 72 20 18 7e 93 00 |.R......|..r .~..|
|00001570| 00 00 00 00 07 61 6c 75 | 12 7f 93 00 12 7f 93 00 |.....alu|........|
|00001580| 00 00 00 00 07 20 72 61 | 0c 80 93 00 12 7f 93 00 |..... ra|........|
|00001590| 0c 80 93 00 00 00 00 00 | 00 48 00 00 a5 7c 00 00 |........|.H...|..|
|000015a0| 40 60 4f 05 df f4 f0 ff | ef 1b f1 ff 70 1a 00 00 |@`O.....|....p...|
|000015b0| 24 73 68 6f 75 74 20 3d | 20 60 65 63 68 6f 20 24 |$shout =| `echo $|
|000015c0| 61 72 67 60 3b 20 20 20 | 20 20 20 20 23 20 49 6e |arg`; | # In|
|000015d0| 73 65 63 75 72 65 2c 20 | 24 73 68 6f 75 74 20 6e |secure, |$shout n|
|000015e0| 6f 77 20 74 61 69 6e 74 | 65 64 0d 08 0c 81 93 00 |ow taint|ed......|
|000015f0| 12 7f 93 00 00 00 00 00 | 08 61 74 20 12 00 00 00 |........|.at ....|
|00001600| 00 00 00 00 07 20 74 68 | 18 82 93 00 18 82 93 00 |..... th|........|
|00001610| 00 00 00 00 00 7c 00 00 | a5 48 00 00 40 00 00 00 |.....|..|.H..@...|
|00001620| 4f e0 f0 ff 0f ed f0 ff | 00 00 00 00 0d 08 68 61 |O.......|......ha|
|00001630| 18 83 93 00 00 00 00 00 | 07 61 20 63 12 84 93 00 |........|.a c....|
|00001640| 12 84 93 00 00 00 00 00 | 07 6e 67 20 0c 85 93 00 |........|.ng ....|
|00001650| 12 84 93 00 0c 85 93 00 | 00 00 00 00 00 48 00 00 |........|.....H..|
|00001660| 25 40 00 00 40 a0 7a 03 | 4f 8f f0 ff 5f b6 f0 ff |%@..@.z.|O..._...|
|00001670| 70 1a 00 00 75 6e 6c 69 | 6e 6b 20 24 64 61 74 61 |p...unli|nk $data|
|00001680| 2c 20 24 61 72 67 3b 20 | 20 20 20 20 20 20 20 20 |, $arg; | |
|00001690| 23 20 49 6e 73 65 63 75 | 72 65 0d 00 00 40 00 00 |# Insecu|re...@..|
|000016a0| a5 68 00 00 40 a0 7a 03 | 6f 60 f0 ff 7f 87 f0 ff |.h..@.z.|o`......|
|000016b0| 70 1a 00 00 75 6d 61 73 | 6b 20 24 61 72 67 3b 20 |p...umas|k $arg; |
|000016c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000016d0| 23 20 49 6e 73 65 63 75 | 72 65 0d 08 0c 86 93 00 |# Insecu|re......|
|000016e0| 12 84 93 00 00 00 00 00 | 08 29 24 2f 12 00 00 00 |........|.)$/....|
|000016f0| 00 00 00 00 07 64 61 74 | 18 87 93 00 18 87 93 00 |.....dat|........|
|00001700| 00 00 00 00 00 68 00 00 | a5 48 00 00 40 00 00 00 |.....h..|.H..@...|
|00001710| df 4b f0 ff 9f 58 f0 ff | 00 00 00 00 0d 08 77 20 |.K...X..|......w |
|00001720| 18 88 93 00 00 00 00 00 | 07 0d 7d 20 12 89 93 00 |........|..} ....|
|00001730| 12 89 93 00 00 00 00 00 | 07 65 20 22 0c 8a 93 00 |........|.e "....|
|00001740| 12 89 93 00 0c 8a 93 00 | 00 00 00 00 00 48 00 00 |........|.....H..|
|00001750| 25 40 00 00 40 a0 7a 03 | df fa ef ff ef 21 f0 ff |%@..@.z.|.....!..|
|00001760| 70 1a 00 00 65 78 65 63 | 20 22 65 63 68 6f 20 24 |p...exec| "echo $|
|00001770| 61 72 67 22 3b 20 20 20 | 20 20 20 20 20 20 20 20 |arg"; | |
|00001780| 23 20 49 6e 73 65 63 75 | 72 65 0d 00 00 40 00 00 |# Insecu|re...@..|
|00001790| 25 58 00 00 40 40 7e 05 | ff cb ef ff 0f f3 ef ff |%X..@@~.|........|
|000017a0| 70 1a 00 00 65 78 65 63 | 20 22 65 63 68 6f 22 2c |p...exec| "echo",|
|000017b0| 20 24 61 72 67 3b 20 20 | 20 20 20 20 20 20 20 20 | $arg; | |
|000017c0| 23 20 53 65 63 75 72 65 | 20 28 64 6f 65 73 6e 27 |# Secure| (doesn'|
|000017d0| 74 20 75 73 65 20 74 68 | 65 20 73 68 65 6c 6c 29 |t use th|e shell)|
|000017e0| 0d 00 00 00 00 58 00 00 | a5 78 00 00 40 a0 f1 04 |.....X..|.x..@...|
|000017f0| 1f 9d ef ff 2f c4 ef ff | 70 1a 00 00 65 78 65 63 |..../...|p...exec|
|00001800| 20 22 73 68 22 2c 20 27 | 2d 63 27 2c 20 24 61 72 | "sh", '|-c', $ar|
|00001810| 67 3b 20 20 20 20 20 20 | 23 20 43 6f 6e 73 69 64 |g; |# Consid|
|00001820| 65 72 65 64 20 73 65 63 | 75 72 65 2c 20 61 6c 61 |ered sec|ure, ala|
|00001830| 73 21 0d 08 0c 8b 93 00 | 12 89 93 00 00 00 00 00 |s!......|........|
|00001840| 08 65 63 69 12 00 00 00 | 00 00 00 00 07 20 73 68 |.eci....|..... sh|
|00001850| 18 8c 93 00 18 8c 93 00 | 00 00 00 00 00 78 00 00 |........|.....x..|
|00001860| a5 48 00 00 40 00 00 00 | 8f 88 ef ff 4f 95 ef ff |.H..@...|....O...|
|00001870| 00 00 00 00 0d 08 93 00 | 18 8d 93 00 00 00 00 00 |........|........|
|00001880| 07 64 20 68 12 8e 93 00 | 12 8e 93 00 00 00 00 00 |.d h....|........|
|00001890| 07 63 75 72 0c 8f 93 00 | 12 8e 93 00 0c 8f 93 00 |.cur....|........|
|000018a0| 00 00 00 00 00 48 00 00 | 25 54 00 00 40 80 20 05 |.....H..|%T..@. .|
|000018b0| 8f 37 ef ff 9f 5e ef ff | 70 1a 00 00 40 66 69 6c |.7...^..|p...@fil|
|000018c0| 65 73 20 3d 20 3c 2a 2e | 63 3e 3b 20 20 20 20 20 |es = <*.|c>; |
|000018d0| 20 20 20 20 20 20 20 20 | 23 20 41 6c 77 61 79 73 | |# Always|
|000018e0| 20 69 6e 73 65 63 75 72 | 65 20 28 75 73 65 73 20 | insecur|e (uses |
|000018f0| 63 73 68 29 0d 00 00 00 | 00 54 00 00 a5 7c 00 00 |csh)....|.T...|..|
|00001900| 40 80 20 05 af 08 ef ff | bf 2f ef ff 70 1a 00 00 |@. .....|./..p...|
|00001910| 40 66 69 6c 65 73 20 3d | 20 67 6c 6f 62 28 27 2a |@files =| glob('*|
|00001920| 2e 63 27 29 3b 20 20 20 | 20 20 20 20 23 20 41 6c |.c'); | # Al|
|00001930| 77 61 79 73 20 69 6e 73 | 65 63 75 72 65 20 28 75 |ways ins|ecure (u|
|00001940| 73 65 73 20 63 73 68 29 | 0d 08 61 74 0c 90 93 00 |ses csh)|..at....|
|00001950| 12 8e 93 00 00 00 00 00 | 08 61 72 20 12 00 00 00 |........|.ar ....|
|00001960| 00 00 00 00 07 6e 20 69 | 18 91 93 00 18 91 93 00 |.....n i|........|
|00001970| 00 00 00 00 00 7c 00 00 | a5 24 00 00 40 00 00 00 |.....|..|.$..@...|
|00001980| 1f f4 ee ff df 00 ef ff | 00 00 00 00 0d 08 65 63 |........|......ec|
|00001990| 18 92 93 00 00 00 00 00 | 00 24 00 00 05 84 00 00 |........|.$......|
|000019a0| 00 0c d4 07 4f 9b ee ff | 2f ca ee ff 20 22 00 00 |....O...|/... "..|
|000019b0| 49 66 20 79 6f 75 20 74 | 72 79 20 74 6f 20 64 6f |If you t|ry to do|
|000019c0| 20 73 6f 6d 65 74 68 69 | 6e 67 20 69 6e 73 65 63 | somethi|ng insec|
|000019d0| 75 72 65 2c 20 79 6f 75 | 20 77 69 6c 6c 20 67 65 |ure, you| will ge|
|000019e0| 74 20 61 20 66 61 74 61 | 6c 20 65 72 72 6f 72 20 |t a fata|l error |
|000019f0| 73 61 79 69 6e 67 20 73 | 6f 6d 65 74 68 69 6e 67 |saying s|omething|
|00001a00| 20 6c 69 6b 65 20 22 49 | 6e 73 65 63 75 72 65 20 | like "I|nsecure |
|00001a10| 64 65 70 65 6e 64 65 6e | 63 79 22 20 00 84 00 00 |dependen|cy" ....|
|00001a20| 85 b8 00 00 00 44 c9 07 | 28 63 ee ff 08 92 ee ff |.....D..|(c......|
|00001a30| 20 22 00 00 6f 72 20 22 | 49 6e 73 65 63 75 72 65 | "..or "|Insecure|
|00001a40| 20 50 41 54 48 22 2e 20 | 20 4e 6f 74 65 20 74 68 | PATH". | Note th|
|00001a50| 61 74 20 79 6f 75 20 63 | 61 6e 20 73 74 69 6c 6c |at you c|an still|
|00001a60| 20 77 72 69 74 65 20 61 | 6e 20 69 6e 73 65 63 75 | write a|n insecu|
|00001a70| 72 65 20 07 10 93 93 00 | 10 93 93 00 00 00 00 00 |re .....|........|
|00001a80| 73 79 73 74 65 6d 08 00 | 10 00 00 00 00 00 00 00 |system..|........|
|00001a90| 20 6f 72 20 07 00 00 00 | 10 94 93 00 10 94 93 00 | or ....|........|
|00001aa0| 00 00 00 00 65 78 65 63 | 08 79 20 74 10 00 00 00 |....exec|.y t....|
|00001ab0| 00 00 00 00 2c 20 62 75 | 74 20 6f 6e 6c 79 20 62 |...., bu|t only b|
|00001ac0| 79 20 65 78 70 6c 69 63 | 69 74 6c 79 20 64 6f 69 |y explic|itly doi|
|00001ad0| 6e 67 20 00 00 b8 00 00 | a5 4c 00 00 40 18 d9 02 |ng .....|.L..@...|
|00001ae0| 01 2b ee ff e1 59 ee ff | 20 22 00 00 73 6f 6d 65 |.+...Y..| "..some|
|00001af0| 74 68 69 6e 67 20 6c 69 | 6b 65 20 74 68 65 20 6c |thing li|ke the l|
|00001b00| 61 73 74 20 65 78 61 6d | 70 6c 65 20 61 62 6f 76 |ast exam|ple abov|
|00001b10| 65 2e 0d 07 0a 95 93 00 | 0a 95 93 00 00 00 00 00 |e.......|........|
|00001b20| 00 4c 00 00 a5 48 00 00 | 40 76 b3 03 5a b4 ed ff |.L...H..|@v..Z...|
|00001b30| 0a eb ed ff 18 2b 00 00 | 4c 61 75 6e 64 65 72 69 |.....+..|Launderi|
|00001b40| 6e 67 20 61 6e 64 20 44 | 65 74 65 63 74 69 6e 67 |ng and D|etecting|
|00001b50| 20 54 61 69 6e 74 65 64 | 20 44 61 74 61 0d 08 6e | Tainted| Data..n|
|00001b60| 0a 96 93 00 00 00 00 00 | 00 48 00 00 05 84 00 00 |........|.H......|
|00001b70| 00 34 f1 07 25 5f ed ff | 05 8e ed ff 20 22 00 00 |.4..%_..|.... "..|
|00001b80| 54 6f 20 74 65 73 74 20 | 77 68 65 74 68 65 72 20 |To test |whether |
|00001b90| 61 20 76 61 72 69 61 62 | 6c 65 20 63 6f 6e 74 61 |a variab|le conta|
|00001ba0| 69 6e 73 20 74 61 69 6e | 74 65 64 20 64 61 74 61 |ins tain|ted data|
|00001bb0| 2c 20 61 6e 64 20 77 68 | 6f 73 65 20 75 73 65 20 |, and wh|ose use |
|00001bc0| 77 6f 75 6c 64 20 74 68 | 75 73 20 74 72 69 67 67 |would th|us trigg|
|00001bd0| 65 72 20 61 6e 20 22 49 | 6e 73 65 63 75 72 65 20 |er an "I|nsecure |
|00001be0| 64 65 70 65 6e 64 65 6e | 63 79 22 20 00 84 00 00 |dependen|cy" ....|
|00001bf0| a5 8c 00 00 40 18 32 04 | fe 26 ed ff de 55 ed ff |....@.2.|.&...U..|
|00001c00| 20 22 00 00 6d 65 73 73 | 61 67 65 2c 20 79 6f 75 | "..mess|age, you|
|00001c10| 20 63 61 6e 20 75 73 65 | 20 74 68 65 20 66 6f 6c | can use| the fol|
|00001c20| 6c 6f 77 69 6e 67 20 07 | 11 97 93 00 11 97 93 00 |lowing .|........|
|00001c30| 00 00 00 00 69 73 5f 74 | 61 69 6e 74 65 64 28 29 |....is_t|ainted()|
|00001c40| 08 00 00 00 11 00 00 00 | 00 00 00 00 20 66 75 6e |........|.... fun|
|00001c50| 63 74 69 6f 6e 2e 0d 07 | 12 98 93 00 12 98 93 00 |ction...|........|
|00001c60| 00 00 00 00 07 78 61 6d | 0c 99 93 00 12 98 93 00 |.....xam|........|
|00001c70| 0c 99 93 00 00 00 00 00 | 00 8c 00 00 25 2c 00 00 |........|....%,..|
|00001c80| 40 00 77 01 f7 bf ec ff | 07 e7 ec ff 70 1a 00 00 |@.w.....|....p...|
|00001c90| 73 75 62 20 69 73 5f 74 | 61 69 6e 74 65 64 20 7b |sub is_t|ainted {|
|00001ca0| 0d 00 00 00 00 2c 00 00 | 25 2c 00 00 40 50 bd 01 |.....,..|%,..@P..|
|00001cb0| 17 91 ec ff 27 b8 ec ff | 70 1a 00 00 20 20 20 20 |....'...|p... |
|00001cc0| 72 65 74 75 72 6e 20 21 | 20 65 76 61 6c 20 7b 0d |return !| eval {.|
|00001cd0| 00 2c 00 00 25 38 00 00 | 40 40 90 02 37 62 ec ff |.,..%8..|@@..7b..|
|00001ce0| 47 89 ec ff 70 1a 00 00 | 20 20 20 20 20 20 20 20 |G...p...| |
|00001cf0| 6a 6f 69 6e 28 27 27 2c | 40 5f 29 2c 20 6b 69 6c |join('',|@_), kil|
|00001d00| 6c 20 30 3b 0d 00 00 00 | 00 38 00 00 25 24 00 00 |l 0;....|.8..%$..|
|00001d10| 40 60 ea 00 57 33 ec ff | 67 5a ec ff 70 1a 00 00 |@`..W3..|gZ..p...|
|00001d20| 20 20 20 20 20 20 20 20 | 31 3b 0d 00 00 24 00 00 | |1;...$..|
|00001d30| 25 20 00 00 40 a0 8c 00 | 77 04 ec ff 87 2b ec ff |% ..@...|w....+..|
|00001d40| 70 1a 00 00 20 20 20 20 | 7d 3b 0d 00 00 20 00 00 |p... |};... ..|
|00001d50| a5 44 00 00 40 70 17 00 | 97 d5 eb ff a7 fc eb ff |.D..@p..|........|
|00001d60| 70 1a 00 00 7d 0d 08 75 | 0c 9a 93 00 12 98 93 00 |p...}..u|........|
|00001d70| 00 00 00 00 08 29 20 73 | 12 00 00 00 00 00 00 00 |.....) s|........|
|00001d80| 07 75 61 6c 18 9b 93 00 | 18 9b 93 00 00 00 00 00 |.ual....|........|
|00001d90| 00 44 00 00 a5 24 00 00 | 40 00 00 00 07 c1 eb ff |.D...$..|@.......|
|00001da0| c7 cd eb ff 00 00 00 00 | 0d 08 20 53 18 9c 93 00 |........|.. S....|
|00001db0| 00 00 00 00 00 24 00 00 | 05 84 00 00 00 a4 d8 07 |.....$..|........|
|00001dc0| 37 68 eb ff 17 97 eb ff | 20 22 00 00 54 68 69 73 |7h......| "..This|
|00001dd0| 20 66 75 6e 63 74 69 6f | 6e 20 6d 61 6b 65 73 20 | functio|n makes |
|00001de0| 75 73 65 20 6f 66 20 74 | 68 65 20 66 61 63 74 20 |use of t|he fact |
|00001df0| 74 68 61 74 20 74 68 65 | 20 70 72 65 73 65 6e 63 |that the| presenc|
|00001e00| 65 20 6f 66 20 74 61 69 | 6e 74 65 64 20 64 61 74 |e of tai|nted dat|
|00001e10| 61 20 61 6e 79 77 68 65 | 72 65 20 77 69 74 68 69 |a anywhe|re withi|
|00001e20| 6e 20 61 6e 20 65 78 70 | 72 65 73 73 69 6f 6e 20 |n an exp|ression |
|00001e30| 72 65 6e 64 65 72 73 20 | 00 84 00 00 05 80 00 00 |renders |........|
|00001e40| 00 b4 20 07 10 30 eb ff | f0 5e eb ff 20 22 00 00 |.. ..0..|.^.. "..|
|00001e50| 74 68 65 20 65 6e 74 69 | 72 65 20 65 78 70 72 65 |the enti|re expre|
|00001e60| 73 73 69 6f 6e 20 74 61 | 69 6e 74 65 64 2e 20 20 |ssion ta|inted. |
|00001e70| 49 74 20 77 6f 75 6c 64 | 20 62 65 20 69 6e 65 66 |It would| be inef|
|00001e80| 66 69 63 69 65 6e 74 20 | 66 6f 72 20 65 76 65 72 |ficient |for ever|
|00001e90| 79 20 6f 70 65 72 61 74 | 6f 72 20 74 6f 20 74 65 |y operat|or to te|
|00001ea0| 73 74 20 65 76 65 72 79 | 20 61 72 67 75 6d 65 6e |st every| argumen|
|00001eb0| 74 20 66 6f 72 20 00 00 | 00 80 00 00 05 88 00 00 |t for ..|........|
|00001ec0| 00 98 c9 07 e9 f7 ea ff | c9 26 eb ff 20 22 00 00 |........|.&.. "..|
|00001ed0| 74 61 69 6e 74 65 64 6e | 65 73 73 2e 20 20 49 6e |taintedn|ess. In|
|00001ee0| 73 74 65 61 64 2c 20 74 | 68 65 20 73 6c 69 67 68 |stead, t|he sligh|
|00001ef0| 74 6c 79 20 6d 6f 72 65 | 20 65 66 66 69 63 69 65 |tly more| efficie|
|00001f00| 6e 74 20 61 6e 64 20 63 | 6f 6e 73 65 72 76 61 74 |nt and c|onservat|
|00001f10| 69 76 65 20 61 70 70 72 | 6f 61 63 68 20 69 73 20 |ive appr|oach is |
|00001f20| 75 73 65 64 20 74 68 61 | 74 20 69 66 20 61 6e 79 |used tha|t if any|
|00001f30| 20 74 61 69 6e 74 65 64 | 20 76 61 6c 75 65 20 00 | tainted| value .|
|00001f40| 00 88 00 00 25 74 00 00 | 40 2c 97 06 c2 bf ea ff |....%t..|@,......|
|00001f50| a2 ee ea ff 20 22 00 00 | 68 61 73 20 62 65 65 6e |.... "..|has been|
|00001f60| 20 61 63 63 65 73 73 65 | 64 20 77 69 74 68 69 6e | accesse|d within|
|00001f70| 20 74 68 65 20 73 61 6d | 65 20 65 78 70 72 65 73 | the sam|e expres|
|00001f80| 73 69 6f 6e 2c 20 74 68 | 65 20 77 68 6f 6c 65 20 |sion, th|e whole |
|00001f90| 65 78 70 72 65 73 73 69 | 6f 6e 20 69 73 20 63 6f |expressi|on is co|
|00001fa0| 6e 73 69 64 65 72 65 64 | 20 74 61 69 6e 74 65 64 |nsidered| tainted|
|00001fb0| 2e 0d 00 00 00 74 00 00 | 05 88 00 00 00 d8 b3 07 |.....t..|........|
|00001fc0| eb 50 ea ff cb 7f ea ff | 20 22 00 00 42 75 74 20 |.P......| "..But |
|00001fd0| 74 65 73 74 69 6e 67 20 | 66 6f 72 20 74 61 69 6e |testing |for tain|
|00001fe0| 74 65 64 6e 65 73 73 20 | 67 65 74 73 20 79 6f 75 |tedness |gets you|
|00001ff0| 20 6f 6e 6c 79 20 73 6f | 20 66 61 72 2e 20 20 53 | only so| far. S|
|00002000| 6f 6d 65 74 69 6d 65 73 | 20 79 6f 75 20 68 61 76 |ometimes| you hav|
|00002010| 65 20 6a 75 73 74 20 74 | 6f 20 63 6c 65 61 72 20 |e just t|o clear |
|00002020| 79 6f 75 72 20 64 61 74 | 61 27 73 20 74 61 69 6e |your dat|a's tain|
|00002030| 74 65 64 6e 65 73 73 2e | 20 20 00 00 00 88 00 00 |tedness.| ......|
|00002040| 05 80 00 00 00 78 92 07 | c4 18 ea ff a4 47 ea ff |.....x..|.....G..|
|00002050| 20 22 00 00 54 68 65 20 | 6f 6e 6c 79 20 77 61 79 | "..The |only way|
|00002060| 20 74 6f 20 62 79 70 61 | 73 73 20 74 68 65 20 74 | to bypa|ss the t|
|00002070| 61 69 6e 74 69 6e 67 20 | 6d 65 63 68 61 6e 69 73 |ainting |mechanis|
|00002080| 6d 20 69 73 20 62 79 20 | 72 65 66 65 72 65 6e 63 |m is by |referenc|
|00002090| 69 6e 67 20 73 75 62 70 | 61 74 74 65 72 6e 73 20 |ing subp|atterns |
|000020a0| 66 72 6f 6d 20 61 20 72 | 65 67 75 6c 61 72 20 65 |from a r|egular e|
|000020b0| 78 70 72 65 73 73 69 6f | 6e 20 00 00 00 80 00 00 |xpressio|n ......|
|000020c0| 05 88 00 00 00 1c f4 07 | 9d e0 e9 ff 7d 0f ea ff |........|....}...|
|000020d0| 20 22 00 00 6d 61 74 63 | 68 2e 20 50 65 72 6c 20 | "..matc|h. Perl |
|000020e0| 70 72 65 73 75 6d 65 73 | 20 74 68 61 74 20 69 66 |presumes| that if|
|000020f0| 20 79 6f 75 20 72 65 66 | 65 72 65 6e 63 65 20 61 | you ref|erence a|
|00002100| 20 73 75 62 73 74 72 69 | 6e 67 20 75 73 69 6e 67 | substri|ng using|
|00002110| 20 24 31 2c 20 24 32 2c | 20 65 74 63 2e 2c 20 74 | $1, $2,| etc., t|
|00002120| 68 61 74 20 79 6f 75 20 | 6b 6e 65 77 20 77 68 61 |hat you |knew wha|
|00002130| 74 20 79 6f 75 20 77 65 | 72 65 20 64 6f 69 6e 67 |t you we|re doing|
|00002140| 20 00 00 00 00 88 00 00 | 05 84 00 00 00 a8 c2 07 | .......|........|
|00002150| 76 a8 e9 ff 56 d7 e9 ff | 20 22 00 00 77 68 65 6e |v...V...| "..when|
|00002160| 20 79 6f 75 20 77 72 6f | 74 65 20 74 68 65 20 70 | you wro|te the p|
|00002170| 61 74 74 65 72 6e 2e 20 | 20 54 68 61 74 20 6d 65 |attern. | That me|
|00002180| 61 6e 73 20 75 73 69 6e | 67 20 61 20 62 69 74 20 |ans usin|g a bit |
|00002190| 6f 66 20 74 68 6f 75 67 | 68 74 2d 2d 64 6f 6e 27 |of thoug|ht--don'|
|000021a0| 74 20 6a 75 73 74 20 62 | 6c 69 6e 64 6c 79 20 75 |t just b|lindly u|
|000021b0| 6e 74 61 69 6e 74 20 61 | 6e 79 74 68 69 6e 67 2c |ntaint a|nything,|
|000021c0| 20 6f 72 20 79 6f 75 20 | 00 84 00 00 05 84 00 00 | or you |........|
|000021d0| 00 64 7f 07 4f 70 e9 ff | 2f 9f e9 ff 20 22 00 00 |.d..Op..|/... "..|
|000021e0| 64 65 66 65 61 74 20 74 | 68 65 20 65 6e 74 69 72 |defeat t|he entir|
|000021f0| 65 20 6d 65 63 68 61 6e | 69 73 6d 2e 20 20 49 74 |e mechan|ism. It|
|00002200| 27 73 20 62 65 74 74 65 | 72 20 74 6f 20 76 65 72 |'s bette|r to ver|
|00002210| 69 66 79 20 74 68 61 74 | 20 74 68 65 20 76 61 72 |ify that| the var|
|00002220| 69 61 62 6c 65 20 68 61 | 73 20 6f 6e 6c 79 20 67 |iable ha|s only g|
|00002230| 6f 6f 64 20 63 68 61 72 | 61 63 74 65 72 73 20 28 |ood char|acters (|
|00002240| 66 6f 72 20 63 65 72 74 | 61 69 6e 20 00 84 00 00 |for cert|ain ....|
|00002250| 05 88 00 00 00 7c d9 07 | 28 38 e9 ff 08 67 e9 ff |.....|..|(8...g..|
|00002260| 20 22 00 00 76 61 6c 75 | 65 73 20 6f 66 20 22 67 | "..valu|es of "g|
|00002270| 6f 6f 64 22 29 20 72 61 | 74 68 65 72 20 74 68 61 |ood") ra|ther tha|
|00002280| 6e 20 63 68 65 63 6b 69 | 6e 67 20 77 68 65 74 68 |n checki|ng wheth|
|00002290| 65 72 20 69 74 20 68 61 | 73 20 61 6e 79 20 62 61 |er it ha|s any ba|
|000022a0| 64 20 63 68 61 72 61 63 | 74 65 72 73 2e 20 20 54 |d charac|ters. T|
|000022b0| 68 61 74 27 73 20 62 65 | 63 61 75 73 65 20 69 74 |hat's be|cause it|
|000022c0| 27 73 20 66 61 72 20 74 | 6f 6f 20 65 61 73 79 20 |'s far t|oo easy |
|000022d0| 74 6f 20 00 00 88 00 00 | 25 48 00 00 40 6c 60 03 |to .....|%H..@l`.|
|000022e0| 01 00 e9 ff e1 2e e9 ff | 20 22 00 00 6d 69 73 73 |........| "..miss|
|000022f0| 20 62 61 64 20 63 68 61 | 72 61 63 74 65 72 73 20 | bad cha|racters |
|00002300| 74 68 61 74 20 79 6f 75 | 20 6e 65 76 65 72 20 74 |that you| never t|
|00002310| 68 6f 75 67 68 74 20 6f | 66 2e 0d 00 00 48 00 00 |hought o|f....H..|
|00002320| 05 84 00 00 00 60 c2 07 | 2a 91 e8 ff 0a c0 e8 ff |.....`..|*.......|
|00002330| 20 22 00 00 48 65 72 65 | 27 73 20 61 20 74 65 73 | "..Here|'s a tes|
|00002340| 74 20 74 6f 20 6d 61 6b | 65 20 73 75 72 65 20 74 |t to mak|e sure t|
|00002350| 68 61 74 20 74 68 65 20 | 64 61 74 61 20 63 6f 6e |hat the |data con|
|00002360| 74 61 69 6e 73 20 6e 6f | 74 68 69 6e 67 20 62 75 |tains no|thing bu|
|00002370| 74 20 22 77 6f 72 64 22 | 20 63 68 61 72 61 63 74 |t "word"| charact|
|00002380| 65 72 73 20 28 61 6c 70 | 68 61 62 65 74 69 63 73 |ers (alp|habetics|
|00002390| 2c 20 6e 75 6d 65 72 69 | 63 73 2c 20 61 6e 64 20 |, numeri|cs, and |
|000023a0| 00 84 00 00 a5 68 00 00 | 40 ec 2e 03 03 59 e8 ff |.....h..|@....Y..|
|000023b0| e3 87 e8 ff 20 22 00 00 | 75 6e 64 65 72 73 63 6f |.... "..|undersco|
|000023c0| 72 65 73 29 2c 20 61 20 | 68 79 70 68 65 6e 2c 20 |res), a |hyphen, |
|000023d0| 61 6e 20 61 74 20 73 69 | 67 6e 2c 20 6f 72 20 61 |an at si|gn, or a|
|000023e0| 20 64 6f 74 2e 0d 07 20 | 12 9d 93 00 12 9d 93 00 | dot... |........|
|000023f0| 00 00 00 00 07 74 68 6f | 0c 9e 93 00 12 9d 93 00 |.....tho|........|
|00002400| 0c 9e 93 00 00 00 00 00 | 00 68 00 00 25 38 00 00 |........|.h..%8..|
|00002410| 40 90 d6 02 fc f1 e7 ff | 0c 19 e8 ff 70 1a 00 00 |@.......|....p...|
|00002420| 69 66 20 28 24 64 61 74 | 61 20 3d 7e 20 2f 5e 28 |if ($dat|a =~ /^(|
|00002430| 5b 2d 5c 40 5c 77 2e 5d | 2b 29 24 2f 29 20 7b 0d |[-\@\w.]|+)$/) {.|
|00002440| 00 38 00 00 25 54 00 00 | 40 f0 37 05 1c c3 e7 ff |.8..%T..|@.7.....|
|00002450| 2c ea e7 ff 70 1a 00 00 | 20 20 20 20 24 64 61 74 |,...p...| $dat|
|00002460| 61 20 3d 20 24 31 3b 20 | 20 20 20 20 20 20 20 20 |a = $1; | |
|00002470| 20 20 20 20 20 20 20 20 | 20 20 20 20 23 20 24 64 | | # $d|
|00002480| 61 74 61 20 6e 6f 77 20 | 75 6e 74 61 69 6e 74 65 |ata now |untainte|
|00002490| 64 0d 00 00 00 54 00 00 | 25 24 00 00 40 80 bb 00 |d....T..|%$..@...|
|000024a0| 3c 94 e7 ff 4c bb e7 ff | 70 1a 00 00 7d 20 65 6c |<...L...|p...} el|
|000024b0| 73 65 20 7b 0d 00 00 00 | 00 24 00 00 25 54 00 00 |se {....|.$..%T..|
|000024c0| 40 80 20 05 5c 65 e7 ff | 6c 8c e7 ff 70 1a 00 00 |@. .\e..|l...p...|
|000024d0| 20 20 20 20 64 69 65 20 | 22 42 61 64 20 64 61 74 | die |"Bad dat|
|000024e0| 61 20 69 6e 20 24 64 61 | 74 61 22 3b 20 20 20 20 |a in $da|ta"; |
|000024f0| 20 20 20 20 23 20 6c 6f | 67 20 74 68 69 73 20 73 | # lo|g this s|
|00002500| 6f 6d 65 77 68 65 72 65 | 0d 00 00 00 00 54 00 00 |omewhere|.....T..|
|00002510| a5 44 00 00 40 70 17 00 | 7c 36 e7 ff 8c 5d e7 ff |.D..@p..||6...]..|
|00002520| 70 1a 00 00 7d 0d 08 00 | 0c 9f 93 00 12 9d 93 00 |p...}...|........|
|00002530| 00 00 00 00 08 6b 20 66 | 12 00 00 00 00 00 00 00 |.....k f|........|
|00002540| 07 70 72 6f 18 a0 93 00 | 18 a0 93 00 00 00 00 00 |.pro....|........|
|00002550| 00 44 00 00 a5 24 00 00 | 40 00 00 00 ec 21 e7 ff |.D...$..|@....!..|
|00002560| ac 2e e7 ff 00 00 00 00 | 0d 08 69 6f 18 a1 93 00 |........|..io....|
|00002570| 00 00 00 00 00 24 00 00 | 01 10 00 00 00 40 b2 07 |.....$..|.....@..|
|00002580| 00 00 00 00 00 10 00 00 | 02 14 00 00 00 04 00 00 |........|........|
|00002590| 00 00 00 00 00 00 00 00 | 00 14 00 00 85 a8 00 00 |........|........|
|000025a0| 00 40 b2 07 1e 45 e5 ff | fe 73 e5 ff 20 22 00 00 |.@...E..|.s.. "..|
|000025b0| 16 00 00 00 b0 fc 07 00 | 00 00 00 00 54 68 69 73 |........|....This|
|000025c0| 20 69 73 20 66 61 69 72 | 6c 79 20 73 65 63 75 72 | is fair|ly secur|
|000025d0| 65 20 62 65 63 61 75 73 | 65 20 07 61 0e a2 93 00 |e becaus|e .a....|
|000025e0| 0e a2 93 00 00 00 00 00 | 2f 5c 77 2b 2f 08 61 63 |........|/\w+/.ac|
|000025f0| 0e a3 93 00 00 00 00 00 | 20 64 6f 65 73 6e 27 74 |........| doesn't|
|00002600| 20 6e 6f 72 6d 61 6c 6c | 79 20 6d 61 74 63 68 20 | normall|y match |
|00002610| 73 68 65 6c 6c 20 6d 65 | 74 61 63 68 61 72 61 63 |shell me|tacharac|
|00002620| 74 65 72 73 2c 20 6e 6f | 72 20 61 72 65 20 64 6f |ters, no|r are do|
|00002630| 74 2c 20 64 61 73 68 2c | 20 6f 72 20 61 74 20 00 |t, dash,| or at .|
|00002640| 00 a8 00 00 85 9c 00 00 | 00 6c c8 07 f7 0c e5 ff |........|.l......|
|00002650| d7 3b e5 ff 20 22 00 00 | 67 6f 69 6e 67 20 74 6f |.;.. "..|going to|
|00002660| 20 6d 65 61 6e 20 73 6f | 6d 65 74 68 69 6e 67 20 | mean so|mething |
|00002670| 73 70 65 63 69 61 6c 20 | 74 6f 20 74 68 65 20 73 |special |to the s|
|00002680| 68 65 6c 6c 2e 20 20 55 | 73 65 20 6f 66 20 07 20 |hell. U|se of . |
|00002690| 0e a4 93 00 0e a4 93 00 | 00 00 00 00 2f 2e 2b 2f |........|..../.+/|
|000026a0| 08 20 70 61 0e a5 93 00 | 00 00 00 00 20 77 6f 75 |. pa....|.... wou|
|000026b0| 6c 64 20 68 61 76 65 20 | 62 65 65 6e 20 69 6e 73 |ld have |been ins|
|000026c0| 65 63 75 72 65 20 69 6e | 20 74 68 65 6f 72 79 20 |ecure in| theory |
|000026d0| 62 65 63 61 75 73 65 20 | 69 74 20 00 00 9c 00 00 |because |it .....|
|000026e0| 05 84 00 00 00 40 9a 07 | d0 d4 e4 ff b0 03 e5 ff |.....@..|........|
|000026f0| 20 22 00 00 6c 65 74 73 | 20 65 76 65 72 79 74 68 | "..lets| everyth|
|00002700| 69 6e 67 20 74 68 72 6f | 75 67 68 2c 20 62 75 74 |ing thro|ugh, but|
|00002710| 20 50 65 72 6c 20 64 6f | 65 73 6e 27 74 20 63 68 | Perl do|esn't ch|
|00002720| 65 63 6b 20 66 6f 72 20 | 74 68 61 74 2e 20 20 54 |eck for |that. T|
|00002730| 68 65 20 6c 65 73 73 6f | 6e 20 69 73 20 74 68 61 |he lesso|n is tha|
|00002740| 74 20 77 68 65 6e 20 75 | 6e 74 61 69 6e 74 69 6e |t when u|ntaintin|
|00002750| 67 2c 20 79 6f 75 20 6d | 75 73 74 20 62 65 20 00 |g, you m|ust be .|
|00002760| 00 84 00 00 85 9c 00 00 | 00 b8 c1 07 a9 9c e4 ff |........|........|
|00002770| 89 cb e4 ff 20 22 00 00 | 65 78 63 65 65 64 69 6e |.... "..|exceedin|
|00002780| 67 6c 79 20 63 61 72 65 | 66 75 6c 20 77 69 74 68 |gly care|ful with|
|00002790| 20 79 6f 75 72 20 70 61 | 74 74 65 72 6e 73 2e 20 | your pa|tterns. |
|000027a0| 4c 61 75 6e 64 65 72 69 | 6e 67 20 64 61 74 61 20 |Launderi|ng data |
|000027b0| 75 73 69 6e 67 20 72 65 | 67 75 6c 61 72 20 65 78 |using re|gular ex|
|000027c0| 70 72 65 73 73 69 6f 6e | 20 69 73 20 74 68 65 20 |pression| is the |
|000027d0| 07 70 65 6e 11 a6 93 00 | 11 a6 93 00 00 00 00 00 |.pen....|........|
|000027e0| 4f 4e 4c 59 08 74 68 65 | 11 00 00 00 00 00 00 00 |ONLY.the|........|
|000027f0| 20 6d 65 63 68 61 6e 69 | 73 6d 20 00 00 9c 00 00 | mechani|sm .....|
|00002800| 25 84 00 00 40 44 66 07 | 82 64 e4 ff 62 93 e4 ff |%...@Df.|.d..b...|
|00002810| 20 22 00 00 66 6f 72 20 | 75 6e 74 61 69 6e 74 69 | "..for |untainti|
|00002820| 6e 67 20 64 69 72 74 79 | 20 64 61 74 61 2c 20 75 |ng dirty| data, u|
|00002830| 6e 6c 65 73 73 20 79 6f | 75 20 75 73 65 20 74 68 |nless yo|u use th|
|00002840| 65 20 73 74 72 61 74 65 | 67 79 20 64 65 74 61 69 |e strate|gy detai|
|00002850| 6c 65 64 20 62 65 6c 6f | 77 20 74 6f 20 66 6f 72 |led belo|w to for|
|00002860| 6b 20 61 20 63 68 69 6c | 64 20 6f 66 20 6c 65 73 |k a chil|d of les|
|00002870| 73 65 72 20 70 72 69 76 | 69 6c 65 67 65 2e 0d 00 |ser priv|ilege...|
|00002880| 00 84 00 00 85 b4 00 00 | 00 7c e2 07 ab f5 e3 ff |........|.|......|
|00002890| 8b 24 e4 ff 20 22 00 00 | 54 68 65 20 65 78 61 6d |.$.. "..|The exam|
|000028a0| 70 6c 65 20 64 6f 65 73 | 20 6e 6f 74 20 75 6e 74 |ple does| not unt|
|000028b0| 61 69 6e 74 20 24 64 61 | 74 61 20 69 66 20 07 63 |aint $da|ta if .c|
|000028c0| 0e a7 93 00 0e a7 93 00 | 00 00 00 00 75 73 65 20 |........|....use |
|000028d0| 6c 6f 63 61 6c 65 08 67 | 0e a8 93 00 00 00 00 00 |locale.g|........|
|000028e0| 20 69 73 20 69 6e 20 65 | 66 66 65 63 74 2c 20 62 | is in e|ffect, b|
|000028f0| 65 63 61 75 73 65 20 74 | 68 65 20 63 68 61 72 61 |ecause t|he chara|
|00002900| 63 74 65 72 73 20 6d 61 | 74 63 68 65 64 20 62 79 |cters ma|tched by|
|00002910| 20 07 65 6c 0e a9 93 00 | 0e a9 93 00 00 00 00 00 | .el....|........|
|00002920| 5c 77 08 74 0e aa 93 00 | 00 00 00 00 20 61 72 65 |\w.t....|.... are|
|00002930| 20 00 00 00 00 b4 00 00 | 05 88 00 00 00 88 d3 07 | .......|........|
|00002940| 84 bd e3 ff 64 ec e3 ff | 20 22 00 00 64 65 74 65 |....d...| "..dete|
|00002950| 72 6d 69 6e 65 64 20 62 | 79 20 74 68 65 20 6c 6f |rmined b|y the lo|
|00002960| 63 61 6c 65 2e 20 50 65 | 72 6c 20 63 6f 6e 73 69 |cale. Pe|rl consi|
|00002970| 64 65 72 73 20 74 68 61 | 74 20 6c 6f 63 61 6c 65 |ders tha|t locale|
|00002980| 20 64 65 66 69 6e 69 74 | 69 6f 6e 73 20 61 72 65 | definit|ions are|
|00002990| 20 75 6e 74 72 75 73 74 | 77 6f 72 74 68 79 20 62 | untrust|worthy b|
|000029a0| 65 63 61 75 73 65 20 74 | 68 65 79 20 63 6f 6e 74 |ecause t|hey cont|
|000029b0| 61 69 6e 20 64 61 74 61 | 20 00 00 00 00 88 00 00 |ain data| .......|
|000029c0| 05 80 00 00 00 60 74 07 | 5d 85 e3 ff 3d b4 e3 ff |.....`t.|]...=...|
|000029d0| 20 22 00 00 66 72 6f 6d | 20 6f 75 74 73 69 64 65 | "..from| outside|
|000029e0| 20 74 68 65 20 70 72 6f | 67 72 61 6d 2e 20 20 49 | the pro|gram. I|
|000029f0| 66 20 79 6f 75 20 61 72 | 65 20 77 72 69 74 69 6e |f you ar|e writin|
|00002a00| 67 20 61 20 6c 6f 63 61 | 6c 65 2d 61 77 61 72 65 |g a loca|le-aware|
|00002a10| 20 70 72 6f 67 72 61 6d | 2c 20 61 6e 64 20 77 61 | program|, and wa|
|00002a20| 6e 74 20 74 6f 20 6c 61 | 75 6e 64 65 72 20 64 61 |nt to la|under da|
|00002a30| 74 61 20 77 69 74 68 20 | 61 20 00 00 00 80 00 00 |ta with |a ......|
|00002a40| 85 b0 00 00 00 b0 90 07 | 36 4d e3 ff 16 7c e3 ff |........|6M...|..|
|00002a50| 20 22 00 00 72 65 67 75 | 6c 61 72 20 65 78 70 72 | "..regu|lar expr|
|00002a60| 65 73 73 69 6f 6e 20 63 | 6f 6e 74 61 69 6e 69 6e |ession c|ontainin|
|00002a70| 67 20 07 61 0e ab 93 00 | 0e ab 93 00 00 00 00 00 |g .a....|........|
|00002a80| 5c 77 08 73 0e ac 93 00 | 00 00 00 00 2c 20 70 75 |\w.s....|...., pu|
|00002a90| 74 20 07 00 0e ad 93 00 | 0e ad 93 00 00 00 00 00 |t ......|........|
|00002aa0| 6e 6f 20 6c 6f 63 61 6c | 65 08 00 00 0e ae 93 00 |no local|e.......|
|00002ab0| 00 00 00 00 20 61 68 65 | 61 64 20 6f 66 20 74 68 |.... ahe|ad of th|
|00002ac0| 65 20 65 78 70 72 65 73 | 73 69 6f 6e 20 69 6e 20 |e expres|sion in |
|00002ad0| 74 68 65 20 73 61 6d 65 | 20 62 6c 6f 63 6b 2e 20 |the same| block. |
|00002ae0| 20 53 65 65 20 74 68 65 | 20 00 00 00 00 b0 00 00 | See the| .......|
|00002af0| a5 90 00 00 40 e8 05 06 | 0f 15 e3 ff ef 43 e3 ff |....@...|.....C..|
|00002b00| 20 22 00 00 22 53 45 43 | 55 52 49 54 59 22 20 65 | ".."SEC|URITY" e|
|00002b10| 6e 74 72 79 20 69 6e 20 | 74 68 65 20 63 68 61 70 |ntry in |the chap|
|00002b20| 74 65 72 20 07 6f 6d 65 | 10 af 93 00 10 af 93 00 |ter .ome|........|
|00002b30| 00 00 00 00 70 65 72 6c | 6c 6f 63 61 6c 65 08 49 |....perl|locale.I|
|00002b40| 10 00 00 00 00 00 00 00 | 20 66 6f 72 20 66 75 72 |........| for fur|
|00002b50| 74 68 65 72 20 64 69 73 | 63 75 73 73 69 6f 6e 20 |ther dis|cussion |
|00002b60| 61 6e 64 20 65 78 61 6d | 70 6c 65 73 2e 0d 07 20 |and exam|ples... |
|00002b70| 0a b0 93 00 0a b0 93 00 | 00 00 00 00 00 90 00 00 |........|........|
|00002b80| a5 3c 00 00 40 62 68 02 | 68 9e e2 ff 18 d5 e2 ff |.<..@bh.|h.......|
|00002b90| 18 2b 00 00 53 77 69 74 | 63 68 65 73 20 4f 6e 20 |.+..Swit|ches On |
|00002ba0| 74 68 65 20 22 23 21 22 | 20 4c 69 6e 65 0d 08 69 |the "#!"| Line..i|
|00002bb0| 0a b1 93 00 00 00 00 00 | 00 3c 00 00 05 84 00 00 |........|.<......|
|00002bc0| 00 d0 e5 07 33 49 e2 ff | 13 78 e2 ff 20 22 00 00 |....3I..|.x.. "..|
|00002bd0| 57 68 65 6e 20 79 6f 75 | 20 6d 61 6b 65 20 61 20 |When you| make a |
|00002be0| 73 63 72 69 70 74 20 65 | 78 65 63 75 74 61 62 6c |script e|xecutabl|
|00002bf0| 65 2c 20 69 6e 20 6f 72 | 64 65 72 20 74 6f 20 6d |e, in or|der to m|
|00002c00| 61 6b 65 20 69 74 20 75 | 73 61 62 6c 65 20 61 73 |ake it u|sable as|
|00002c10| 20 61 20 63 6f 6d 6d 61 | 6e 64 2c 20 74 68 65 20 | a comma|nd, the |
|00002c20| 73 79 73 74 65 6d 20 77 | 69 6c 6c 20 70 61 73 73 |system w|ill pass|
|00002c30| 20 73 77 69 74 63 68 65 | 73 20 00 00 00 84 00 00 | switche|s ......|
|00002c40| 05 88 00 00 00 68 a5 07 | 0c 11 e2 ff ec 3f e2 ff |.....h..|.....?..|
|00002c50| 20 22 00 00 74 6f 20 70 | 65 72 6c 20 66 72 6f 6d | "..to p|erl from|
|00002c60| 20 74 68 65 20 73 63 72 | 69 70 74 27 73 20 23 21 | the scr|ipt's #!|
|00002c70| 20 6c 69 6e 65 2e 20 20 | 50 65 72 6c 20 63 68 65 | line. |Perl che|
|00002c80| 63 6b 73 20 74 68 61 74 | 20 61 6e 79 20 63 6f 6d |cks that| any com|
|00002c90| 6d 61 6e 64 20 6c 69 6e | 65 20 73 77 69 74 63 68 |mand lin|e switch|
|00002ca0| 65 73 20 67 69 76 65 6e | 20 74 6f 20 61 20 73 65 |es given| to a se|
|00002cb0| 74 75 69 64 20 28 6f 72 | 20 73 65 74 67 69 64 29 |tuid (or| setgid)|
|00002cc0| 20 00 00 00 00 88 00 00 | 05 80 00 00 00 30 95 07 | .......|.....0..|
|00002cd0| e5 d8 e1 ff c5 07 e2 ff | 20 22 00 00 73 63 72 69 |........| "..scri|
|00002ce0| 70 74 20 61 63 74 75 61 | 6c 6c 79 20 6d 61 74 63 |pt actua|lly matc|
|00002cf0| 68 20 74 68 65 20 6f 6e | 65 73 20 73 65 74 20 6f |h the on|es set o|
|00002d00| 6e 20 74 68 65 20 23 21 | 20 6c 69 6e 65 2e 20 20 |n the #!| line. |
|00002d10| 53 6f 6d 65 20 55 6e 69 | 78 20 61 6e 64 20 55 6e |Some Uni|x and Un|
|00002d20| 69 78 2d 6c 69 6b 65 20 | 65 6e 76 69 72 6f 6e 6d |ix-like |environm|
|00002d30| 65 6e 74 73 20 69 6d 70 | 6f 73 65 20 61 20 6f 6e |ents imp|ose a on|
|00002d40| 65 2d 00 00 00 80 00 00 | 85 ac 00 00 00 2c 66 07 |e-......|.....,f.|
|00002d50| be a0 e1 ff 9e cf e1 ff | 20 22 00 00 73 77 69 74 |........| "..swit|
|00002d60| 63 68 20 6c 69 6d 69 74 | 20 6f 6e 20 74 68 65 20 |ch limit| on the |
|00002d70| 23 21 20 6c 69 6e 65 2c | 20 73 6f 20 79 6f 75 20 |#! line,| so you |
|00002d80| 6d 61 79 20 6e 65 65 64 | 20 74 6f 20 75 73 65 20 |may need| to use |
|00002d90| 73 6f 6d 65 74 68 69 6e | 67 20 6c 69 6b 65 20 07 |somethin|g like .|
|00002da0| 0e b2 93 00 0e b2 93 00 | 00 00 00 00 2d 77 55 08 |........|....-wU.|
|00002db0| 0e b3 93 00 00 00 00 00 | 20 69 6e 73 74 65 61 64 |........| instead|
|00002dc0| 20 6f 66 20 07 6e 20 73 | 0e b4 93 00 0e b4 93 00 | of .n s|........|
|00002dd0| 00 00 00 00 2d 77 20 2d | 55 08 6c 66 0e b5 93 00 |....-w -|U.lf....|
|00002de0| 00 00 00 00 20 75 6e 64 | 65 72 20 73 75 63 68 20 |.... und|er such |
|00002df0| 00 ac 00 00 05 80 00 00 | 00 c8 81 07 97 68 e1 ff |........|.....h..|
|00002e00| 77 97 e1 ff 20 22 00 00 | 73 79 73 74 65 6d 73 2e |w... "..|systems.|
|00002e10| 20 20 28 54 68 69 73 20 | 69 73 73 75 65 20 73 68 | (This |issue sh|
|00002e20| 6f 75 6c 64 20 61 72 69 | 73 65 20 6f 6e 6c 79 20 |ould ari|se only |
|00002e30| 69 6e 20 55 6e 69 78 20 | 6f 72 20 55 6e 69 78 2d |in Unix |or Unix-|
|00002e40| 6c 69 6b 65 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |like env|ironment|
|00002e50| 73 20 74 68 61 74 20 73 | 75 70 70 6f 72 74 20 23 |s that s|upport #|
|00002e60| 21 20 61 6e 64 20 73 65 | 74 75 69 64 20 6f 72 20 |! and se|tuid or |
|00002e70| 00 80 00 00 a5 38 00 00 | 40 6c 11 01 70 30 e1 ff |.....8..|@l..p0..|
|00002e80| 50 5f e1 ff 20 22 00 00 | 73 65 74 67 69 64 20 73 |P_.. "..|setgid s|
|00002e90| 63 72 69 70 74 73 2e 29 | 0d 07 61 20 0a b6 93 00 |cripts.)|..a ....|
|00002ea0| 0a b6 93 00 00 00 00 00 | 00 38 00 00 a5 38 00 00 |........|.8...8..|
|00002eb0| 40 46 29 02 c9 b9 e0 ff | 79 f0 e0 ff 18 2b 00 00 |@F).....|y....+..|
|00002ec0| 43 6c 65 61 6e 69 6e 67 | 20 55 70 20 59 6f 75 72 |Cleaning| Up Your|
|00002ed0| 20 50 61 74 68 0d 08 22 | 0a b7 93 00 00 00 00 00 | Path.."|........|
|00002ee0| 00 38 00 00 85 a8 00 00 | 00 c0 8c 07 94 64 e0 ff |.8......|.....d..|
|00002ef0| 74 93 e0 ff 20 22 00 00 | 46 6f 72 20 22 49 6e 73 |t... "..|For "Ins|
|00002f00| 65 63 75 72 65 20 07 6f | 0e b8 93 00 0e b8 93 00 |ecure .o|........|
|00002f10| 00 00 00 00 24 45 4e 56 | 7b 50 41 54 48 7d 08 20 |....$ENV|{PATH}. |
|00002f20| 0e b9 93 00 00 00 00 00 | 22 20 6d 65 73 73 61 67 |........|" messag|
|00002f30| 65 73 2c 20 79 6f 75 20 | 6e 65 65 64 20 74 6f 20 |es, you |need to |
|00002f40| 73 65 74 20 07 65 20 61 | 0e ba 93 00 0e ba 93 00 |set .e a|........|
|00002f50| 00 00 00 00 24 45 4e 56 | 7b 27 50 41 54 48 27 7d |....$ENV|{'PATH'}|
|00002f60| 08 65 74 20 0e bb 93 00 | 00 00 00 00 20 74 6f 20 |.et ....|.... to |
|00002f70| 61 20 6b 6e 6f 77 6e 20 | 76 61 6c 75 65 2c 20 61 |a known |value, a|
|00002f80| 6e 64 20 65 61 63 68 20 | 00 a8 00 00 05 84 00 00 |nd each |........|
|00002f90| 00 3c da 07 6d 2c e0 ff | 4d 5b e0 ff 20 22 00 00 |.<..m,..|M[.. "..|
|00002fa0| 64 69 72 65 63 74 6f 72 | 79 20 69 6e 20 74 68 65 |director|y in the|
|00002fb0| 20 70 61 74 68 20 6d 75 | 73 74 20 62 65 20 6e 6f | path mu|st be no|
|00002fc0| 6e 2d 77 72 69 74 61 62 | 6c 65 20 62 79 20 6f 74 |n-writab|le by ot|
|00002fd0| 68 65 72 73 20 74 68 61 | 6e 20 69 74 73 20 6f 77 |hers tha|n its ow|
|00002fe0| 6e 65 72 20 61 6e 64 20 | 67 72 6f 75 70 2e 20 20 |ner and |group. |
|00002ff0| 59 6f 75 20 6d 61 79 20 | 62 65 20 73 75 72 70 72 |You may |be surpr|
|00003000| 69 73 65 64 20 74 6f 20 | 67 65 74 20 00 84 00 00 |ised to |get ....|
|00003010| 85 9c 00 00 00 b4 c5 07 | 46 f4 df ff 26 23 e0 ff |........|F...&#..|
|00003020| 20 22 00 00 74 68 69 73 | 20 6d 65 73 73 61 67 65 | "..this| message|
|00003030| 20 65 76 65 6e 20 69 66 | 20 74 68 65 20 70 61 74 | even if| the pat|
|00003040| 68 6e 61 6d 65 20 74 6f | 20 79 6f 75 72 20 65 78 |hname to| your ex|
|00003050| 65 63 75 74 61 62 6c 65 | 20 69 73 20 66 75 6c 6c |ecutable| is full|
|00003060| 79 20 71 75 61 6c 69 66 | 69 65 64 2e 20 20 54 68 |y qualif|ied. Th|
|00003070| 69 73 20 69 73 20 07 20 | 11 bc 93 00 11 bc 93 00 |is is . |........|
|00003080| 00 00 00 00 6e 6f 74 08 | 11 00 00 00 00 00 00 00 |....not.|........|
|00003090| 20 67 65 6e 65 72 61 74 | 65 64 20 62 65 63 61 75 | generat|ed becau|
|000030a0| 73 65 20 79 6f 75 20 00 | 00 9c 00 00 05 7c 00 00 |se you .|.....|..|
|000030b0| 00 ac 0a 07 1f bc df ff | ff ea df ff 20 22 00 00 |........|.... "..|
|000030c0| 64 69 64 6e 27 74 20 73 | 75 70 70 6c 79 20 61 20 |didn't s|upply a |
|000030d0| 66 75 6c 6c 20 70 61 74 | 68 20 74 6f 20 74 68 65 |full pat|h to the|
|000030e0| 20 70 72 6f 67 72 61 6d | 3b 20 69 6e 73 74 65 61 | program|; instea|
|000030f0| 64 2c 20 69 74 27 73 20 | 67 65 6e 65 72 61 74 65 |d, it's |generate|
|00003100| 64 20 62 65 63 61 75 73 | 65 20 79 6f 75 20 6e 65 |d becaus|e you ne|
|00003110| 76 65 72 20 73 65 74 20 | 79 6f 75 72 20 50 41 54 |ver set |your PAT|
|00003120| 48 20 00 00 00 7c 00 00 | 05 88 00 00 00 20 c9 07 |H ...|..|..... ..|
|00003130| f8 83 df ff d8 b2 df ff | 20 22 00 00 65 6e 76 69 |........| "..envi|
|00003140| 72 6f 6e 6d 65 6e 74 20 | 76 61 72 69 61 62 6c 65 |ronment |variable|
|00003150| 2c 20 6f 72 20 79 6f 75 | 20 64 69 64 6e 27 74 20 |, or you| didn't |
|00003160| 73 65 74 20 69 74 20 74 | 6f 20 73 6f 6d 65 74 68 |set it t|o someth|
|00003170| 69 6e 67 20 74 68 61 74 | 20 77 61 73 20 73 61 66 |ing that| was saf|
|00003180| 65 2e 20 20 42 65 63 61 | 75 73 65 20 50 65 72 6c |e. Beca|use Perl|
|00003190| 20 63 61 6e 27 74 20 67 | 75 61 72 61 6e 74 65 65 | can't g|uarantee|
|000031a0| 20 74 68 61 74 20 74 68 | 65 20 00 00 00 88 00 00 | that th|e ......|
|000031b0| 05 88 00 00 00 e4 e3 07 | d1 4b df ff b1 7a df ff |........|.K...z..|
|000031c0| 20 22 00 00 65 78 65 63 | 75 74 61 62 6c 65 20 69 | "..exec|utable i|
|000031d0| 6e 20 71 75 65 73 74 69 | 6f 6e 20 69 73 6e 27 74 |n questi|on isn't|
|000031e0| 20 69 74 73 65 6c 66 20 | 67 6f 69 6e 67 20 74 6f | itself |going to|
|000031f0| 20 74 75 72 6e 20 61 72 | 6f 75 6e 64 20 61 6e 64 | turn ar|ound and|
|00003200| 20 65 78 65 63 75 74 65 | 20 73 6f 6d 65 20 6f 74 | execute| some ot|
|00003210| 68 65 72 20 70 72 6f 67 | 72 61 6d 20 74 68 61 74 |her prog|ram that|
|00003220| 20 69 73 20 64 65 70 65 | 6e 64 65 6e 74 20 6f 6e | is depe|ndent on|
|00003230| 20 00 00 00 00 88 00 00 | 25 44 00 00 40 74 40 03 | .......|%D..@t@.|
|00003240| aa 13 df ff 8a 42 df ff | 20 22 00 00 79 6f 75 72 |.....B..| "..your|
|00003250| 20 50 41 54 48 2c 20 69 | 74 20 6d 61 6b 65 73 20 | PATH, i|t makes |
|00003260| 73 75 72 65 20 79 6f 75 | 20 73 65 74 20 74 68 65 |sure you| set the|
|00003270| 20 50 41 54 48 2e 0d 00 | 00 44 00 00 05 88 00 00 | PATH...|.D......|
|00003280| 00 8c 9f 07 d3 a4 de ff | b3 d3 de ff 20 22 00 00 |........|.... "..|
|00003290| 49 74 27 73 20 61 6c 73 | 6f 20 70 6f 73 73 69 62 |It's als|o possib|
|000032a0| 6c 65 20 74 6f 20 67 65 | 74 20 69 6e 74 6f 20 74 |le to ge|t into t|
|000032b0| 72 6f 75 62 6c 65 20 77 | 69 74 68 20 6f 74 68 65 |rouble w|ith othe|
|000032c0| 72 20 6f 70 65 72 61 74 | 69 6f 6e 73 20 74 68 61 |r operat|ions tha|
|000032d0| 74 20 64 6f 6e 27 74 20 | 63 61 72 65 20 77 68 65 |t don't |care whe|
|000032e0| 74 68 65 72 20 74 68 65 | 79 20 75 73 65 20 74 61 |ther the|y use ta|
|000032f0| 69 6e 74 65 64 20 76 61 | 6c 75 65 73 2e 20 20 00 |inted va|lues. .|
|00003300| 00 88 00 00 05 84 00 00 | 00 48 c2 07 ac 6c de ff |........|.H...l..|
|00003310| 8c 9b de ff 20 22 00 00 | 4d 61 6b 65 20 6a 75 64 |.... "..|Make jud|
|00003320| 69 63 69 6f 75 73 20 75 | 73 65 20 6f 66 20 74 68 |icious u|se of th|
|00003330| 65 20 66 69 6c 65 20 74 | 65 73 74 73 20 69 6e 20 |e file t|ests in |
|00003340| 64 65 61 6c 69 6e 67 20 | 77 69 74 68 20 61 6e 79 |dealing |with any|
|00003350| 20 75 73 65 72 2d 73 75 | 70 70 6c 69 65 64 20 66 | user-su|pplied f|
|00003360| 69 6c 65 6e 61 6d 65 73 | 2e 20 20 57 68 65 6e 20 |ilenames|. When |
|00003370| 70 6f 73 73 69 62 6c 65 | 2c 20 64 6f 20 6f 70 65 |possible|, do ope|
|00003380| 6e 73 20 00 00 84 00 00 | 85 94 00 00 00 2c 81 07 |ns .....|.....,..|
|00003390| 85 34 de ff 65 63 de ff | 20 22 00 00 61 6e 64 20 |.4..ec..| "..and |
|000033a0| 73 75 63 68 20 61 66 74 | 65 72 20 73 65 74 74 69 |such aft|er setti|
|000033b0| 6e 67 20 07 0e bd 93 00 | 0e bd 93 00 00 00 00 00 |ng .....|........|
|000033c0| 24 3e 20 3d 20 24 3c 08 | 0e be 93 00 00 00 00 00 |$> = $<.|........|
|000033d0| 2e 20 20 28 52 65 6d 65 | 6d 62 65 72 20 67 72 6f |. (Reme|mber gro|
|000033e0| 75 70 20 49 44 73 2c 20 | 74 6f 6f 21 29 20 20 50 |up IDs, |too!) P|
|000033f0| 65 72 6c 20 64 6f 65 73 | 6e 27 74 20 70 72 65 76 |erl does|n't prev|
|00003400| 65 6e 74 20 79 6f 75 20 | 66 72 6f 6d 20 6f 70 65 |ent you |from ope|
|00003410| 6e 69 6e 67 20 00 00 00 | 00 94 00 00 05 80 00 00 |ning ...|........|
|00003420| 00 a8 77 07 5e fc dd ff | 3e 2b de ff 20 22 00 00 |..w.^...|>+.. "..|
|00003430| 74 61 69 6e 74 65 64 20 | 66 69 6c 65 6e 61 6d 65 |tainted |filename|
|00003440| 73 20 66 6f 72 20 72 65 | 61 64 69 6e 67 2c 20 73 |s for re|ading, s|
|00003450| 6f 20 62 65 20 63 61 72 | 65 66 75 6c 20 77 68 61 |o be car|eful wha|
|00003460| 74 20 79 6f 75 20 70 72 | 69 6e 74 20 6f 75 74 2e |t you pr|int out.|
|00003470| 20 20 54 68 65 20 74 61 | 69 6e 74 69 6e 67 20 6d | The ta|inting m|
|00003480| 65 63 68 61 6e 69 73 6d | 20 69 73 20 69 6e 74 65 |echanism| is inte|
|00003490| 6e 64 65 64 20 74 6f 20 | 00 80 00 00 25 58 00 00 |nded to |....%X..|
|000034a0| 40 cc 68 04 37 c4 dd ff | 17 f3 dd ff 20 22 00 00 |@.h.7...|.... "..|
|000034b0| 70 72 65 76 65 6e 74 20 | 73 74 75 70 69 64 20 6d |prevent |stupid m|
|000034c0| 69 73 74 61 6b 65 73 2c | 20 6e 6f 74 20 74 6f 20 |istakes,| not to |
|000034d0| 72 65 6d 6f 76 65 20 74 | 68 65 20 6e 65 65 64 20 |remove t|he need |
|000034e0| 66 6f 72 20 74 68 6f 75 | 67 68 74 2e 0d 00 00 00 |for thou|ght.....|
|000034f0| 00 58 00 00 85 b8 00 00 | 00 fc 98 07 60 55 dd ff |.X......|....`U..|
|00003500| 40 84 dd ff 20 22 00 00 | 50 65 72 6c 20 64 6f 65 |@... "..|Perl doe|
|00003510| 73 20 6e 6f 74 20 63 61 | 6c 6c 20 74 68 65 20 73 |s not ca|ll the s|
|00003520| 68 65 6c 6c 20 74 6f 20 | 65 78 70 61 6e 64 20 77 |hell to |expand w|
|00003530| 69 6c 64 20 63 61 72 64 | 73 20 77 68 65 6e 20 79 |ild card|s when y|
|00003540| 6f 75 20 70 61 73 73 20 | 07 6f 67 72 10 bf 93 00 |ou pass |.ogr....|
|00003550| 10 bf 93 00 00 00 00 00 | 73 79 73 74 65 6d 08 72 |........|system.r|
|00003560| 10 00 00 00 00 00 00 00 | 20 61 6e 64 20 07 62 6a |........| and .bj|
|00003570| 10 c0 93 00 10 c0 93 00 | 00 00 00 00 65 78 65 63 |........|....exec|
|00003580| 08 20 62 75 10 00 00 00 | 00 00 00 00 20 65 78 70 |. bu....|.... exp|
|00003590| 6c 69 63 69 74 20 70 61 | 72 61 6d 65 74 65 72 20 |licit pa|rameter |
|000035a0| 6c 69 73 74 73 20 00 00 | 00 b8 00 00 85 b4 00 00 |lists ..|........|
|000035b0| 00 94 5b 07 39 1d dd ff | 19 4c dd ff 20 22 00 00 |..[.9...|.L.. "..|
|000035c0| 69 6e 73 74 65 61 64 20 | 6f 66 20 73 74 72 69 6e |instead |of strin|
|000035d0| 67 73 20 77 69 74 68 20 | 70 6f 73 73 69 62 6c 65 |gs with |possible|
|000035e0| 20 73 68 65 6c 6c 20 77 | 69 6c 64 63 61 72 64 73 | shell w|ildcards|
|000035f0| 20 69 6e 20 74 68 65 6d | 2e 20 20 55 6e 66 6f 72 | in them|. Unfor|
|00003600| 74 75 6e 61 74 65 6c 79 | 2c 20 74 68 65 20 07 68 |tunately|, the .h|
|00003610| 10 c1 93 00 10 c1 93 00 | 00 00 00 00 6f 70 65 6e |........|....open|
|00003620| 08 61 63 2c 10 00 00 00 | 00 00 00 00 2c 20 07 61 |.ac,....|...., .a|
|00003630| 10 c2 93 00 10 c2 93 00 | 00 00 00 00 67 6c 6f 62 |........|....glob|
|00003640| 08 63 76 28 10 00 00 00 | 00 00 00 00 2c 20 61 6e |.cv(....|...., an|
|00003650| 64 20 62 61 63 6b 74 69 | 63 6b 20 00 00 b4 00 00 |d backti|ck .....|
|00003660| 25 78 00 00 40 10 b9 06 | 12 e5 dc ff f2 13 dd ff |%x..@...|........|
|00003670| 20 22 00 00 66 75 6e 63 | 74 69 6f 6e 73 20 70 72 | "..func|tions pr|
|00003680| 6f 76 69 64 65 20 6e 6f | 20 73 75 63 68 20 61 6c |ovide no| such al|
|00003690| 74 65 72 6e 61 74 65 20 | 63 61 6c 6c 69 6e 67 20 |ternate |calling |
|000036a0| 63 6f 6e 76 65 6e 74 69 | 6f 6e 2c 20 73 6f 20 6d |conventi|on, so m|
|000036b0| 6f 72 65 20 73 75 62 74 | 65 72 66 75 67 65 20 77 |ore subt|erfuge w|
|000036c0| 69 6c 6c 20 62 65 20 72 | 65 71 75 69 72 65 64 2e |ill be r|equired.|
|000036d0| 0d 00 00 00 00 78 00 00 | 05 88 00 00 00 20 f0 07 |.....x..|..... ..|
|000036e0| 3b 76 dc ff 1b a5 dc ff | 20 22 00 00 50 65 72 6c |;v......| "..Perl|
|000036f0| 20 70 72 6f 76 69 64 65 | 73 20 61 20 72 65 61 73 | provide|s a reas|
|00003700| 6f 6e 61 62 6c 79 20 73 | 61 66 65 20 77 61 79 20 |onably s|afe way |
|00003710| 74 6f 20 6f 70 65 6e 20 | 61 20 66 69 6c 65 20 6f |to open |a file o|
|00003720| 72 20 70 69 70 65 20 66 | 72 6f 6d 20 61 20 73 65 |r pipe f|rom a se|
|00003730| 74 75 69 64 20 6f 72 20 | 73 65 74 67 69 64 20 70 |tuid or |setgid p|
|00003740| 72 6f 67 72 61 6d 3a 20 | 6a 75 73 74 20 63 72 65 |rogram: |just cre|
|00003750| 61 74 65 20 61 20 63 68 | 69 6c 64 20 00 88 00 00 |ate a ch|ild ....|
|00003760| 85 a0 00 00 00 d0 be 07 | 14 3e dc ff f4 6c dc ff |........|.>...l..|
|00003770| 20 22 00 00 70 72 6f 63 | 65 73 73 20 77 69 74 68 | "..proc|ess with|
|00003780| 20 72 65 64 75 63 65 64 | 20 70 72 69 76 69 6c 65 | reduced| privile|
|00003790| 67 65 20 77 68 6f 20 64 | 6f 65 73 20 74 68 65 20 |ge who d|oes the |
|000037a0| 64 69 72 74 79 20 77 6f | 72 6b 20 66 6f 72 20 79 |dirty wo|rk for y|
|000037b0| 6f 75 2e 20 20 46 69 72 | 73 74 2c 20 66 6f 72 6b |ou. Fir|st, fork|
|000037c0| 20 61 20 63 68 69 6c 64 | 20 75 73 69 6e 67 20 74 | a child| using t|
|000037d0| 68 65 20 73 70 65 63 69 | 61 6c 20 07 10 c3 93 00 |he speci|al .....|
|000037e0| 10 c3 93 00 00 00 00 00 | 6f 70 65 6e 08 74 2c 20 |........|open.t, |
|000037f0| 10 00 00 00 00 00 00 00 | 20 00 00 00 00 a0 00 00 |........| .......|
|00003800| 05 80 00 00 00 c0 6b 07 | ed 05 dc ff cd 34 dc ff |......k.|.....4..|
|00003810| 20 22 00 00 73 79 6e 74 | 61 78 20 74 68 61 74 20 | "..synt|ax that |
|00003820| 63 6f 6e 6e 65 63 74 73 | 20 74 68 65 20 70 61 72 |connects| the par|
|00003830| 65 6e 74 20 61 6e 64 20 | 63 68 69 6c 64 20 62 79 |ent and |child by|
|00003840| 20 61 20 70 69 70 65 2e | 20 20 4e 6f 77 20 74 68 | a pipe.| Now th|
|00003850| 65 20 63 68 69 6c 64 20 | 72 65 73 65 74 73 20 69 |e child |resets i|
|00003860| 74 73 20 49 44 20 73 65 | 74 20 61 6e 64 20 61 6e |ts ID se|t and an|
|00003870| 79 20 6f 74 68 65 72 20 | 70 65 72 2d 00 80 00 00 |y other |per-....|
|00003880| 05 88 00 00 00 94 d3 07 | c6 cd db ff a6 fc db ff |........|........|
|00003890| 20 22 00 00 70 72 6f 63 | 65 73 73 20 61 74 74 72 | "..proc|ess attr|
|000038a0| 69 62 75 74 65 73 2c 20 | 6c 69 6b 65 20 65 6e 76 |ibutes, |like env|
|000038b0| 69 72 6f 6e 6d 65 6e 74 | 20 76 61 72 69 61 62 6c |ironment| variabl|
|000038c0| 65 73 2c 20 75 6d 61 73 | 6b 73 2c 20 63 75 72 72 |es, umas|ks, curr|
|000038d0| 65 6e 74 20 77 6f 72 6b | 69 6e 67 20 64 69 72 65 |ent work|ing dire|
|000038e0| 63 74 6f 72 69 65 73 2c | 20 62 61 63 6b 20 74 6f |ctories,| back to|
|000038f0| 20 74 68 65 20 6f 72 69 | 67 69 6e 61 6c 73 20 6f | the ori|ginals o|
|00003900| 72 20 00 00 00 88 00 00 | 85 9c 00 00 00 28 d0 07 |r ......|.....(..|
|00003910| 9f 95 db ff 7f c4 db ff | 20 22 00 00 6b 6e 6f 77 |........| "..know|
|00003920| 6e 20 73 61 66 65 20 76 | 61 6c 75 65 73 2e 20 20 |n safe v|alues. |
|00003930| 54 68 65 6e 20 74 68 65 | 20 63 68 69 6c 64 20 70 |Then the| child p|
|00003940| 72 6f 63 65 73 73 2c 20 | 77 68 69 63 68 20 6e 6f |rocess, |which no|
|00003950| 20 6c 6f 6e 67 65 72 20 | 68 61 73 20 61 6e 79 20 | longer |has any |
|00003960| 73 70 65 63 69 61 6c 20 | 70 65 72 6d 69 73 73 69 |special |permissi|
|00003970| 6f 6e 73 2c 20 64 6f 65 | 73 20 74 68 65 20 07 6e |ons, doe|s the .n|
|00003980| 10 c4 93 00 10 c4 93 00 | 00 00 00 00 6f 70 65 6e |........|....open|
|00003990| 08 6f 72 20 10 00 00 00 | 00 00 00 00 20 6f 72 20 |.or ....|.... or |
|000039a0| 00 9c 00 00 05 8c 00 00 | 00 8c ea 07 78 5d db ff |........|....x]..|
|000039b0| 58 8c db ff 20 22 00 00 | 6f 74 68 65 72 20 73 79 |X... "..|other sy|
|000039c0| 73 74 65 6d 20 63 61 6c | 6c 2e 20 46 69 6e 61 6c |stem cal|l. Final|
|000039d0| 6c 79 2c 20 74 68 65 20 | 63 68 69 6c 64 20 70 61 |ly, the |child pa|
|000039e0| 73 73 65 73 20 74 68 65 | 20 64 61 74 61 20 69 74 |sses the| data it|
|000039f0| 20 6d 61 6e 61 67 65 64 | 20 74 6f 20 61 63 63 65 | managed| to acce|
|00003a00| 73 73 20 62 61 63 6b 20 | 74 6f 20 74 68 65 20 70 |ss back |to the p|
|00003a10| 61 72 65 6e 74 2e 20 20 | 42 65 63 61 75 73 65 20 |arent. |Because |
|00003a20| 74 68 65 20 66 69 6c 65 | 20 00 00 00 00 8c 00 00 |the file| .......|
|00003a30| 05 88 00 00 00 40 c7 07 | 51 25 db ff 31 54 db ff |.....@..|Q%..1T..|
|00003a40| 20 22 00 00 6f 72 20 70 | 69 70 65 20 77 61 73 20 | "..or p|ipe was |
|00003a50| 6f 70 65 6e 65 64 20 69 | 6e 20 74 68 65 20 63 68 |opened i|n the ch|
|00003a60| 69 6c 64 20 77 68 69 6c | 65 20 72 75 6e 6e 69 6e |ild whil|e runnin|
|00003a70| 67 20 75 6e 64 65 72 20 | 6c 65 73 73 20 70 72 69 |g under |less pri|
|00003a80| 76 69 6c 65 67 65 20 74 | 68 61 6e 20 74 68 65 20 |vilege t|han the |
|00003a90| 70 61 72 65 6e 74 2c 20 | 69 74 27 73 20 6e 6f 74 |parent, |it's not|
|00003aa0| 20 61 70 74 20 74 6f 20 | 62 65 20 74 72 69 63 6b | apt to |be trick|
|00003ab0| 65 64 20 00 00 88 00 00 | 25 3c 00 00 40 a0 75 02 |ed .....|%<..@.u.|
|00003ac0| 2a ed da ff 0a 1c db ff | 20 22 00 00 69 6e 74 6f |*.......| "..into|
|00003ad0| 20 64 6f 69 6e 67 20 73 | 6f 6d 65 74 68 69 6e 67 | doing s|omething|
|00003ae0| 20 69 74 20 73 68 6f 75 | 6c 64 6e 27 74 2e 0d 00 | it shou|ldn't...|
|00003af0| 00 3c 00 00 85 a4 00 00 | 00 d8 e9 07 53 7e da ff |.<......|....S~..|
|00003b00| 33 ad da ff 20 22 00 00 | 48 65 72 65 27 73 20 61 |3... "..|Here's a|
|00003b10| 20 77 61 79 20 74 6f 20 | 64 6f 20 62 61 63 6b 74 | way to |do backt|
|00003b20| 69 63 6b 73 20 72 65 61 | 73 6f 6e 61 62 6c 79 20 |icks rea|sonably |
|00003b30| 73 61 66 65 6c 79 2e 20 | 20 4e 6f 74 69 63 65 20 |safely. | Notice |
|00003b40| 68 6f 77 20 74 68 65 20 | 07 00 00 00 10 c5 93 00 |how the |........|
|00003b50| 10 c5 93 00 00 00 00 00 | 65 78 65 63 08 00 00 00 |........|exec....|
|00003b60| 10 00 00 00 00 00 00 00 | 20 69 73 20 6e 6f 74 20 |........| is not |
|00003b70| 63 61 6c 6c 65 64 20 77 | 69 74 68 20 61 20 73 74 |called w|ith a st|
|00003b80| 72 69 6e 67 20 74 68 61 | 74 20 74 68 65 20 73 68 |ring tha|t the sh|
|00003b90| 65 6c 6c 20 00 a4 00 00 | 05 84 00 00 00 a0 a6 07 |ell ....|........|
|00003ba0| 2c 46 da ff 0c 75 da ff | 20 22 00 00 63 6f 75 6c |,F...u..| "..coul|
|00003bb0| 64 20 65 78 70 61 6e 64 | 2e 20 20 54 68 69 73 20 |d expand|. This |
|00003bc0| 69 73 20 62 79 20 66 61 | 72 20 74 68 65 20 62 65 |is by fa|r the be|
|00003bd0| 73 74 20 77 61 79 20 74 | 6f 20 63 61 6c 6c 20 73 |st way t|o call s|
|00003be0| 6f 6d 65 74 68 69 6e 67 | 20 74 68 61 74 20 6d 69 |omething| that mi|
|00003bf0| 67 68 74 20 62 65 20 73 | 75 62 6a 65 63 74 65 64 |ght be s|ubjected|
|00003c00| 20 74 6f 20 73 68 65 6c | 6c 20 65 73 63 61 70 65 | to shel|l escape|
|00003c10| 73 3a 20 6a 75 73 74 20 | 00 84 00 00 01 10 00 00 |s: just |........|
|00003c20| 00 6c e0 07 00 00 00 00 | 00 10 00 00 02 14 00 00 |.l......|........|
|00003c30| 9c 05 00 00 00 00 00 00 | 00 00 00 00 00 14 00 00 |........|........|
|00003c40| 85 b4 00 00 00 6c e0 07 | 6d 45 d8 ff 4d 74 d8 ff |.....l..|mE..Mt..|
|00003c50| 20 22 00 00 16 00 00 00 | b0 fc 07 00 00 00 00 00 | "......|........|
|00003c60| 6e 65 76 65 72 20 63 61 | 6c 6c 20 74 68 65 20 73 |never ca|ll the s|
|00003c70| 68 65 6c 6c 20 61 74 20 | 61 6c 6c 2e 20 20 42 79 |hell at |all. By|
|00003c80| 20 74 68 65 20 74 69 6d | 65 20 77 65 20 67 65 74 | the tim|e we get|
|00003c90| 20 74 6f 20 74 68 65 20 | 07 6e 65 64 10 c6 93 00 | to the |.ned....|
|00003ca0| 10 c6 93 00 00 00 00 00 | 65 78 65 63 08 20 62 65 |........|exec. be|
|00003cb0| 10 00 00 00 00 00 00 00 | 2c 20 74 61 69 6e 74 69 |........|, tainti|
|00003cc0| 6e 67 20 69 73 20 74 75 | 72 6e 65 64 20 6f 66 66 |ng is tu|rned off|
|00003cd0| 2c 20 68 6f 77 65 76 65 | 72 2c 20 73 6f 20 62 65 |, howeve|r, so be|
|00003ce0| 20 63 61 72 65 66 75 6c | 20 77 68 61 74 20 00 00 | careful| what ..|
|00003cf0| 00 b4 00 00 a5 58 00 00 | 40 f0 2b 02 46 0d d8 ff |.....X..|@.+.F...|
|00003d00| 26 3c d8 ff 20 22 00 00 | 79 6f 75 20 63 61 6c 6c |&<.. "..|you call|
|00003d10| 20 61 6e 64 20 77 68 61 | 74 20 79 6f 75 20 70 61 | and wha|t you pa|
|00003d20| 73 73 20 69 74 2e 0d 07 | 12 c7 93 00 12 c7 93 00 |ss it...|........|
|00003d30| 00 00 00 00 07 66 66 65 | 0c c8 93 00 12 c7 93 00 |.....ffe|........|
|00003d40| 0c c8 93 00 00 00 00 00 | 00 58 00 00 25 28 00 00 |........|.X..%(..|
|00003d50| 40 40 19 01 3f a6 d7 ff | 4f cd d7 ff 70 1a 00 00 |@@..?...|O...p...|
|00003d60| 75 73 65 20 45 6e 67 6c | 69 73 68 3b 0d 00 00 00 |use Engl|ish;....|
|00003d70| 00 28 00 00 25 44 00 00 | 40 60 d8 03 5f 77 d7 ff |.(..%D..|@`.._w..|
|00003d80| 6f 9e d7 ff 70 1a 00 00 | 64 69 65 20 75 6e 6c 65 |o...p...|die unle|
|00003d90| 73 73 20 64 65 66 69 6e | 65 64 20 24 70 69 64 20 |ss defin|ed $pid |
|00003da0| 3d 20 6f 70 65 6e 28 4b | 49 44 2c 20 22 2d 7c 22 |= open(K|ID, "-|"|
|00003db0| 29 3b 0d 00 00 44 00 00 | 25 38 00 00 40 20 bf 02 |);...D..|%8..@ ..|
|00003dc0| 7f 48 d7 ff 8f 6f d7 ff | 70 1a 00 00 69 66 20 28 |.H...o..|p...if (|
|00003dd0| 24 70 69 64 29 20 7b 20 | 20 20 20 20 20 20 20 20 |$pid) { | |
|00003de0| 20 20 23 20 70 61 72 65 | 6e 74 0d 00 00 38 00 00 | # pare|nt...8..|
|00003df0| 25 2c 00 00 40 50 bd 01 | 9f 19 d7 ff af 40 d7 ff |%,..@P..|.....@..|
|00003e00| 70 1a 00 00 20 20 20 20 | 77 68 69 6c 65 20 28 3c |p... |while (<|
|00003e10| 4b 49 44 3e 29 20 7b 0d | 00 2c 00 00 25 30 00 00 |KID>) {.|.,..%0..|
|00003e20| 40 a0 03 02 bf ea d6 ff | cf 11 d7 ff 70 1a 00 00 |@.......|....p...|
|00003e30| 20 20 20 20 20 20 20 20 | 23 20 64 6f 20 73 6f 6d | |# do som|
|00003e40| 65 74 68 69 6e 67 0d 00 | 00 30 00 00 25 20 00 00 |ething..|.0..% ..|
|00003e50| 40 30 75 00 df bb d6 ff | ef e2 d6 ff 70 1a 00 00 |@0u.....|....p...|
|00003e60| 20 20 20 20 7d 0d 00 00 | 00 20 00 00 25 28 00 00 | }...|. ..%(..|
|00003e70| 40 20 48 01 ff 8c d6 ff | 0f b4 d6 ff 70 1a 00 00 |@ H.....|....p...|
|00003e80| 20 20 20 20 63 6c 6f 73 | 65 20 4b 49 44 3b 0d 00 | clos|e KID;..|
|00003e90| 00 28 00 00 25 24 00 00 | 40 80 bb 00 1f 5e d6 ff |.(..%$..|@....^..|
|00003ea0| 2f 85 d6 ff 70 1a 00 00 | 7d 20 65 6c 73 65 20 7b |/...p...|} else {|
|00003eb0| 0d 00 00 00 00 24 00 00 | 25 2c 00 00 40 70 8e 01 |.....$..|%,..@p..|
|00003ec0| 3f 2f d6 ff 4f 56 d6 ff | 70 1a 00 00 20 20 20 20 |?/..OV..|p... |
|00003ed0| 24 45 55 49 44 20 3d 20 | 24 55 49 44 3b 0d 00 00 |$EUID = |$UID;...|
|00003ee0| 00 2c 00 00 25 4c 00 00 | 40 50 ab 04 5f 00 d6 ff |.,..%L..|@P.._...|
|00003ef0| 6f 27 d6 ff 70 1a 00 00 | 20 20 20 20 24 45 47 49 |o'..p...| $EGI|
|00003f00| 44 20 3d 20 24 47 49 44 | 3b 20 20 20 20 23 20 58 |D = $GID|; # X|
|00003f10| 58 58 3a 20 69 6e 69 74 | 67 72 6f 75 70 73 28 29 |XX: init|groups()|
|00003f20| 20 6e 6f 74 20 63 61 6c | 6c 65 64 0d 00 4c 00 00 | not cal|led..L..|
|00003f30| 25 3c 00 00 40 70 05 03 | 7f d1 d5 ff 8f f8 d5 ff |%<..@p..|........|
|00003f40| 70 1a 00 00 20 20 20 20 | 24 45 4e 56 7b 50 41 54 |p... |$ENV{PAT|
|00003f50| 48 7d 20 3d 20 22 2f 62 | 69 6e 3a 2f 75 73 72 2f |H} = "/b|in:/usr/|
|00003f60| 62 69 6e 22 3b 0d 00 00 | 00 3c 00 00 25 3c 00 00 |bin";...|.<..%<..|
|00003f70| 40 e0 1c 03 9f a2 d5 ff | af c9 d5 ff 70 1a 00 00 |@.......|....p...|
|00003f80| 20 20 20 20 65 78 65 63 | 20 27 6d 79 70 72 6f 67 | exec| 'myprog|
|00003f90| 27 2c 20 27 61 72 67 31 | 27 2c 20 27 61 72 67 32 |', 'arg1|', 'arg2|
|00003fa0| 27 3b 0d 00 00 3c 00 00 | 25 3c 00 00 40 00 ee 02 |';...<..|%<..@...|
|00003fb0| bf 73 d5 ff cf 9a d5 ff | 70 1a 00 00 20 20 20 20 |.s......|p... |
|00003fc0| 64 69 65 20 22 63 61 6e | 27 74 20 65 78 65 63 20 |die "can|'t exec |
|00003fd0| 6d 79 70 72 6f 67 3a 20 | 24 21 22 3b 0d 00 00 00 |myprog: |$!";....|
|00003fe0| 00 3c 00 00 a5 44 00 00 | 40 70 17 00 df 44 d5 ff |.<...D..|@p...D..|
|00003ff0| ef 6b d5 ff 70 1a 00 00 | 7d 0d 08 00 0c c9 93 00 |.k..p...|}.......|
|00004000| 12 c7 93 00 00 00 00 00 | 08 78 61 6d 12 00 00 00 |........|.xam....|
|00004010| 00 00 00 00 07 00 00 00 | 18 ca 93 00 18 ca 93 00 |........|........|
|00004020| 00 00 00 00 00 44 00 00 | a5 24 00 00 40 00 00 00 |.....D..|.$..@...|
|00004030| 4f 30 d5 ff 0f 3d d5 ff | 00 00 00 00 0d 08 00 00 |O0...=..|........|
|00004040| 18 cb 93 00 00 00 00 00 | 00 24 00 00 a5 74 00 00 |........|.$...t..|
|00004050| 40 20 c3 04 7f d7 d4 ff | 5f 06 d5 ff 20 22 00 00 |@ ......|_... "..|
|00004060| 41 20 73 69 6d 69 6c 61 | 72 20 73 74 72 61 74 65 |A simila|r strate|
|00004070| 67 79 20 77 6f 75 6c 64 | 20 77 6f 72 6b 20 66 6f |gy would| work fo|
|00004080| 72 20 77 69 6c 64 63 61 | 72 64 20 65 78 70 61 6e |r wildca|rd expan|
|00004090| 73 69 6f 6e 20 76 69 61 | 20 07 61 69 0e cc 93 00 |sion via| .ai....|
|000040a0| 0e cc 93 00 00 00 00 00 | 67 6c 6f 62 08 20 20 20 |........|glob. |
|000040b0| 0e cd 93 00 00 00 00 00 | 2e 0d 00 00 00 74 00 00 |........|.....t..|
|000040c0| 05 84 00 00 00 14 cf 07 | a8 68 d4 ff 88 97 d4 ff |........|.h......|
|000040d0| 20 22 00 00 54 61 69 6e | 74 20 63 68 65 63 6b 69 | "..Tain|t checki|
|000040e0| 6e 67 20 69 73 20 6d 6f | 73 74 20 75 73 65 66 75 |ng is mo|st usefu|
|000040f0| 6c 20 77 68 65 6e 20 61 | 6c 74 68 6f 75 67 68 20 |l when a|lthough |
|00004100| 79 6f 75 20 74 72 75 73 | 74 20 79 6f 75 72 73 65 |you trus|t yourse|
|00004110| 6c 66 20 6e 6f 74 20 74 | 6f 20 68 61 76 65 20 77 |lf not t|o have w|
|00004120| 72 69 74 74 65 6e 20 61 | 20 70 72 6f 67 72 61 6d |ritten a| program|
|00004130| 20 74 6f 20 67 69 76 65 | 20 61 77 61 79 20 00 00 | to give| away ..|
|00004140| 00 84 00 00 05 8c 00 00 | 00 88 ee 07 81 30 d4 ff |........|.....0..|
|00004150| 61 5f d4 ff 20 22 00 00 | 74 68 65 20 66 61 72 6d |a_.. "..|the farm|
|00004160| 2c 20 79 6f 75 20 64 6f | 6e 27 74 20 6e 65 63 65 |, you do|n't nece|
|00004170| 73 73 61 72 69 6c 79 20 | 74 72 75 73 74 20 74 68 |ssarily |trust th|
|00004180| 6f 73 65 20 77 68 6f 20 | 65 6e 64 20 75 70 20 75 |ose who |end up u|
|00004190| 73 69 6e 67 20 69 74 20 | 6e 6f 74 20 74 6f 20 74 |sing it |not to t|
|000041a0| 72 79 20 74 6f 20 74 72 | 69 63 6b 20 69 74 20 69 |ry to tr|ick it i|
|000041b0| 6e 74 6f 20 64 6f 69 6e | 67 20 73 6f 6d 65 74 68 |nto doin|g someth|
|000041c0| 69 6e 67 20 62 61 64 2e | 20 20 00 00 00 8c 00 00 |ing bad.| ......|
|000041d0| 05 84 00 00 00 1c be 07 | 5a f8 d3 ff 3a 27 d4 ff |........|Z...:'..|
|000041e0| 20 22 00 00 54 68 69 73 | 20 69 73 20 74 68 65 20 | "..This| is the |
|000041f0| 6b 69 6e 64 20 6f 66 20 | 73 65 63 75 72 69 74 79 |kind of |security|
|00004200| 20 63 68 65 63 6b 69 6e | 67 20 74 68 61 74 27 73 | checkin|g that's|
|00004210| 20 75 73 65 66 75 6c 20 | 66 6f 72 20 73 65 74 75 | useful |for setu|
|00004220| 69 64 20 70 72 6f 67 72 | 61 6d 73 20 61 6e 64 20 |id progr|ams and |
|00004230| 70 72 6f 67 72 61 6d 73 | 20 6c 61 75 6e 63 68 65 |programs| launche|
|00004240| 64 20 6f 6e 20 73 6f 6d | 65 6f 6e 65 20 00 00 00 |d on som|eone ...|
|00004250| 00 84 00 00 25 3c 00 00 | 40 18 67 02 33 c0 d3 ff |....%<..|@.g.3...|
|00004260| 13 ef d3 ff 20 22 00 00 | 65 6c 73 65 27 73 20 62 |.... "..|else's b|
|00004270| 65 68 61 6c 66 2c 20 6c | 69 6b 65 20 43 47 49 20 |ehalf, l|ike CGI |
|00004280| 70 72 6f 67 72 61 6d 73 | 2e 0d 00 00 00 3c 00 00 |programs|.....<..|
|00004290| 05 8c 00 00 00 38 f0 07 | 5c 51 d3 ff 3c 80 d3 ff |.....8..|\Q..<...|
|000042a0| 20 22 00 00 54 68 69 73 | 20 69 73 20 71 75 69 74 | "..This| is quit|
|000042b0| 65 20 64 69 66 66 65 72 | 65 6e 74 2c 20 68 6f 77 |e differ|ent, how|
|000042c0| 65 76 65 72 2c 20 66 72 | 6f 6d 20 6e 6f 74 20 65 |ever, fr|om not e|
|000042d0| 76 65 6e 20 74 72 75 73 | 74 69 6e 67 20 74 68 65 |ven trus|ting the|
|000042e0| 20 77 72 69 74 65 72 20 | 6f 66 20 74 68 65 20 63 | writer |of the c|
|000042f0| 6f 64 65 20 6e 6f 74 20 | 74 6f 20 74 72 79 20 74 |ode not |to try t|
|00004300| 6f 20 64 6f 20 73 6f 6d | 65 74 68 69 6e 67 20 65 |o do som|ething e|
|00004310| 76 69 6c 2e 20 20 00 00 | 00 8c 00 00 05 7c 00 00 |vil. ..|.....|..|
|00004320| 00 4c 85 07 35 19 d3 ff | 15 48 d3 ff 20 22 00 00 |.L..5...|.H.. "..|
|00004330| 54 68 61 74 27 73 20 74 | 68 65 20 6b 69 6e 64 20 |That's t|he kind |
|00004340| 6f 66 20 74 72 75 73 74 | 20 6e 65 65 64 65 64 20 |of trust| needed |
|00004350| 77 68 65 6e 20 73 6f 6d | 65 6f 6e 65 20 68 61 6e |when som|eone han|
|00004360| 64 73 20 79 6f 75 20 61 | 20 70 72 6f 67 72 61 6d |ds you a| program|
|00004370| 20 79 6f 75 27 76 65 20 | 6e 65 76 65 72 20 73 65 | you've |never se|
|00004380| 65 6e 20 62 65 66 6f 72 | 65 20 61 6e 64 20 73 61 |en befor|e and sa|
|00004390| 79 73 2c 20 00 7c 00 00 | 05 80 00 00 00 00 20 07 |ys, .|..|...... .|
|000043a0| 0e e1 d2 ff ee 0f d3 ff | 20 22 00 00 22 48 65 72 |........| ".."Her|
|000043b0| 65 2c 20 72 75 6e 20 74 | 68 69 73 2e 22 20 20 46 |e, run t|his." F|
|000043c0| 6f 72 20 74 68 61 74 20 | 6b 69 6e 64 20 6f 66 20 |or that |kind of |
|000043d0| 73 61 66 65 74 79 2c 20 | 63 68 65 63 6b 20 6f 75 |safety, |check ou|
|000043e0| 74 20 74 68 65 20 53 61 | 66 65 20 6d 6f 64 75 6c |t the Sa|fe modul|
|000043f0| 65 2c 20 69 6e 63 6c 75 | 64 65 64 20 73 74 61 6e |e, inclu|ded stan|
|00004400| 64 61 72 64 20 69 6e 20 | 74 68 65 20 50 65 72 6c |dard in |the Perl|
|00004410| 20 00 00 00 00 80 00 00 | 05 7c 00 00 00 80 69 07 | .......|.|....i.|
|00004420| e7 a8 d2 ff c7 d7 d2 ff | 20 22 00 00 64 69 73 74 |........| "..dist|
|00004430| 72 69 62 75 74 69 6f 6e | 2e 20 20 54 68 69 73 20 |ribution|. This |
|00004440| 6d 6f 64 75 6c 65 20 61 | 6c 6c 6f 77 73 20 74 68 |module a|llows th|
|00004450| 65 20 70 72 6f 67 72 61 | 6d 6d 65 72 20 74 6f 20 |e progra|mmer to |
|00004460| 73 65 74 20 75 70 20 73 | 70 65 63 69 61 6c 20 63 |set up s|pecial c|
|00004470| 6f 6d 70 61 72 74 6d 65 | 6e 74 73 20 69 6e 20 77 |ompartme|nts in w|
|00004480| 68 69 63 68 20 61 6c 6c | 20 73 79 73 74 65 6d 20 |hich all| system |
|00004490| 00 7c 00 00 a5 6c 00 00 | 40 8c ff 04 c0 70 d2 ff |.|...l..|@....p..|
|000044a0| a0 9f d2 ff 20 22 00 00 | 6f 70 65 72 61 74 69 6f |.... "..|operatio|
|000044b0| 6e 73 20 61 72 65 20 74 | 72 61 70 70 65 64 20 61 |ns are t|rapped a|
|000044c0| 6e 64 20 6e 61 6d 65 73 | 70 61 63 65 20 61 63 63 |nd names|pace acc|
|000044d0| 65 73 73 20 69 73 20 63 | 61 72 65 66 75 6c 6c 79 |ess is c|arefully|
|000044e0| 20 63 6f 6e 74 72 6f 6c | 6c 65 64 2e 0d 07 00 00 | control|led.....|
|000044f0| 0a ce 93 00 0a ce 93 00 | 00 00 00 00 00 6c 00 00 |........|.....l..|
|00004500| a5 30 00 00 40 5e 51 01 | 19 fa d1 ff c9 30 d2 ff |.0..@^Q.|.....0..|
|00004510| 18 2b 00 00 53 65 63 75 | 72 69 74 79 20 42 75 67 |.+..Secu|rity Bug|
|00004520| 73 0d 08 4b 0a cf 93 00 | 00 00 00 00 00 30 00 00 |s..K....|.....0..|
|00004530| 05 84 00 00 00 94 c1 07 | e4 a4 d1 ff c4 d3 d1 ff |........|........|
|00004540| 20 22 00 00 42 65 79 6f | 6e 64 20 74 68 65 20 6f | "..Beyo|nd the o|
|00004550| 62 76 69 6f 75 73 20 70 | 72 6f 62 6c 65 6d 73 20 |bvious p|roblems |
|00004560| 74 68 61 74 20 73 74 65 | 6d 20 66 72 6f 6d 20 67 |that ste|m from g|
|00004570| 69 76 69 6e 67 20 73 70 | 65 63 69 61 6c 20 70 72 |iving sp|ecial pr|
|00004580| 69 76 69 6c 65 67 65 73 | 20 74 6f 20 73 79 73 74 |ivileges| to syst|
|00004590| 65 6d 73 20 61 73 20 66 | 6c 65 78 69 62 6c 65 20 |ems as f|lexible |
|000045a0| 61 73 20 73 63 72 69 70 | 74 73 2c 20 6f 6e 20 00 |as scrip|ts, on .|
|000045b0| 00 84 00 00 05 84 00 00 | 00 84 95 07 bd 6c d1 ff |........|.....l..|
|000045c0| 9d 9b d1 ff 20 22 00 00 | 6d 61 6e 79 20 76 65 72 |.... "..|many ver|
|000045d0| 73 69 6f 6e 73 20 6f 66 | 20 55 6e 69 78 2c 20 73 |sions of| Unix, s|
|000045e0| 65 74 75 69 64 20 73 63 | 72 69 70 74 73 20 61 72 |etuid sc|ripts ar|
|000045f0| 65 20 69 6e 68 65 72 65 | 6e 74 6c 79 20 69 6e 73 |e inhere|ntly ins|
|00004600| 65 63 75 72 65 20 72 69 | 67 68 74 20 66 72 6f 6d |ecure ri|ght from|
|00004610| 20 74 68 65 20 73 74 61 | 72 74 2e 20 20 54 68 65 | the sta|rt. The|
|00004620| 20 70 72 6f 62 6c 65 6d | 20 69 73 20 61 20 72 61 | problem| is a ra|
|00004630| 63 65 20 00 00 84 00 00 | 05 88 00 00 00 90 e0 07 |ce .....|........|
|00004640| 96 34 d1 ff 76 63 d1 ff | 20 22 00 00 63 6f 6e 64 |.4..vc..| "..cond|
|00004650| 69 74 69 6f 6e 20 69 6e | 20 74 68 65 20 6b 65 72 |ition in| the ker|
|00004660| 6e 65 6c 2e 20 20 42 65 | 74 77 65 65 6e 20 74 68 |nel. Be|tween th|
|00004670| 65 20 74 69 6d 65 20 74 | 68 65 20 6b 65 72 6e 65 |e time t|he kerne|
|00004680| 6c 20 6f 70 65 6e 73 20 | 74 68 65 20 66 69 6c 65 |l opens |the file|
|00004690| 20 74 6f 20 73 65 65 20 | 77 68 69 63 68 20 69 6e | to see |which in|
|000046a0| 74 65 72 70 72 65 74 65 | 72 20 74 6f 20 72 75 6e |terprete|r to run|
|000046b0| 20 61 6e 64 20 77 68 65 | 6e 20 00 00 00 88 00 00 | and whe|n ......|
|000046c0| 05 88 00 00 00 cc ad 07 | 6f fc d0 ff 4f 2b d1 ff |........|o...O+..|
|000046d0| 20 22 00 00 74 68 65 20 | 28 6e 6f 77 2d 73 65 74 | "..the |(now-set|
|000046e0| 75 69 64 29 20 69 6e 74 | 65 72 70 72 65 74 65 72 |uid) int|erpreter|
|000046f0| 20 74 75 72 6e 73 20 61 | 72 6f 75 6e 64 20 61 6e | turns a|round an|
|00004700| 64 20 72 65 6f 70 65 6e | 73 20 74 68 65 20 66 69 |d reopen|s the fi|
|00004710| 6c 65 20 74 6f 20 69 6e | 74 65 72 70 72 65 74 20 |le to in|terpret |
|00004720| 69 74 2c 20 74 68 65 20 | 66 69 6c 65 20 69 6e 20 |it, the |file in |
|00004730| 71 75 65 73 74 69 6f 6e | 20 6d 61 79 20 68 61 76 |question| may hav|
|00004740| 65 20 00 00 00 88 00 00 | 25 58 00 00 40 14 a2 04 |e ......|%X..@...|
|00004750| 48 c4 d0 ff 28 f3 d0 ff | 20 22 00 00 63 68 61 6e |H...(...| "..chan|
|00004760| 67 65 64 2c 20 65 73 70 | 65 63 69 61 6c 6c 79 20 |ged, esp|ecially |
|00004770| 69 66 20 79 6f 75 20 68 | 61 76 65 20 73 79 6d 62 |if you h|ave symb|
|00004780| 6f 6c 69 63 20 6c 69 6e | 6b 73 20 6f 6e 20 79 6f |olic lin|ks on yo|
|00004790| 75 72 20 73 79 73 74 65 | 6d 2e 0d 00 00 58 00 00 |ur syste|m....X..|
|000047a0| 05 88 00 00 00 e8 eb 07 | 71 55 d0 ff 51 84 d0 ff |........|qU..Q...|
|000047b0| 20 22 00 00 46 6f 72 74 | 75 6e 61 74 65 6c 79 2c | "..Fort|unately,|
|000047c0| 20 73 6f 6d 65 74 69 6d | 65 73 20 74 68 69 73 20 | sometim|es this |
|000047d0| 6b 65 72 6e 65 6c 20 22 | 66 65 61 74 75 72 65 22 |kernel "|feature"|
|000047e0| 20 63 61 6e 20 62 65 20 | 64 69 73 61 62 6c 65 64 | can be |disabled|
|000047f0| 2e 20 55 6e 66 6f 72 74 | 75 6e 61 74 65 6c 79 2c |. Unfort|unately,|
|00004800| 20 74 68 65 72 65 20 61 | 72 65 20 74 77 6f 20 77 | there a|re two w|
|00004810| 61 79 73 20 74 6f 20 64 | 69 73 61 62 6c 65 20 69 |ays to d|isable i|
|00004820| 74 2e 20 20 00 88 00 00 | 05 84 00 00 00 04 a9 07 |t. ....|........|
|00004830| 4a 1d d0 ff 2a 4c d0 ff | 20 22 00 00 54 68 65 20 |J...*L..| "..The |
|00004840| 73 79 73 74 65 6d 20 63 | 61 6e 20 73 69 6d 70 6c |system c|an simpl|
|00004850| 79 20 6f 75 74 6c 61 77 | 20 73 63 72 69 70 74 73 |y outlaw| scripts|
|00004860| 20 77 69 74 68 20 74 68 | 65 20 73 65 74 75 69 64 | with th|e setuid|
|00004870| 20 62 69 74 20 73 65 74 | 2c 20 77 68 69 63 68 20 | bit set|, which |
|00004880| 64 6f 65 73 6e 27 74 20 | 68 65 6c 70 20 6d 75 63 |doesn't |help muc|
|00004890| 68 2e 20 41 6c 74 65 72 | 6e 61 74 65 6c 79 2c 20 |h. Alter|nately, |
|000048a0| 69 74 20 63 61 6e 20 00 | 00 84 00 00 05 8c 00 00 |it can .|........|
|000048b0| 00 ac f1 07 23 e5 cf ff | 03 14 d0 ff 20 22 00 00 |....#...|.... "..|
|000048c0| 73 69 6d 70 6c 79 20 69 | 67 6e 6f 72 65 20 74 68 |simply i|gnore th|
|000048d0| 65 20 73 65 74 75 69 64 | 20 62 69 74 20 6f 6e 20 |e setuid| bit on |
|000048e0| 73 63 72 69 70 74 73 2e | 20 20 49 66 20 74 68 65 |scripts.| If the|
|000048f0| 20 6c 61 74 74 65 72 20 | 69 73 20 74 72 75 65 2c | latter |is true,|
|00004900| 20 50 65 72 6c 20 63 61 | 6e 20 65 6d 75 6c 61 74 | Perl ca|n emulat|
|00004910| 65 20 74 68 65 20 73 65 | 74 75 69 64 20 61 6e 64 |e the se|tuid and|
|00004920| 20 73 65 74 67 69 64 20 | 6d 65 63 68 61 6e 69 73 | setgid |mechanis|
|00004930| 6d 20 00 00 00 8c 00 00 | 05 88 00 00 00 d0 97 07 |m ......|........|
|00004940| fc ac cf ff dc db cf ff | 20 22 00 00 77 68 65 6e |........| "..when|
|00004950| 20 69 74 20 6e 6f 74 69 | 63 65 73 20 74 68 65 20 | it noti|ces the |
|00004960| 6f 74 68 65 72 77 69 73 | 65 20 75 73 65 6c 65 73 |otherwis|e useles|
|00004970| 73 20 73 65 74 75 69 64 | 2f 67 69 64 20 62 69 74 |s setuid|/gid bit|
|00004980| 73 20 6f 6e 20 50 65 72 | 6c 20 73 63 72 69 70 74 |s on Per|l script|
|00004990| 73 2e 20 20 49 74 20 64 | 6f 65 73 20 74 68 69 73 |s. It d|oes this|
|000049a0| 20 76 69 61 20 61 20 73 | 70 65 63 69 61 6c 20 65 | via a s|pecial e|
|000049b0| 78 65 63 75 74 61 62 6c | 65 20 00 00 00 88 00 00 |xecutabl|e ......|
|000049c0| a5 84 00 00 40 d8 e3 04 | d5 74 cf ff b5 a3 cf ff |....@...|.t......|
|000049d0| 20 22 00 00 63 61 6c 6c | 65 64 20 07 10 d0 93 00 | "..call|ed .....|
|000049e0| 10 d0 93 00 00 00 00 00 | 73 75 69 64 70 65 72 6c |........|suidperl|
|000049f0| 08 77 72 69 10 00 00 00 | 00 00 00 00 20 74 68 61 |.wri....|.... tha|
|00004a00| 74 20 69 73 20 61 75 74 | 6f 6d 61 74 69 63 61 6c |t is aut|omatical|
|00004a10| 6c 79 20 69 6e 76 6f 6b | 65 64 20 66 6f 72 20 79 |ly invok|ed for y|
|00004a20| 6f 75 20 69 66 20 69 74 | 27 73 20 6e 65 65 64 65 |ou if it|'s neede|
|00004a30| 64 2e 0d 07 14 d1 93 00 | 14 d1 93 00 00 00 00 00 |d.......|........|
|00004a40| 00 84 00 00 01 10 00 00 | 01 b0 e4 07 00 00 00 00 |........|........|
|00004a50| 00 10 00 00 02 18 00 00 | 38 07 00 00 00 00 00 00 |........|8.......|
|00004a60| 14 d1 93 00 00 00 00 00 | 00 18 00 00 05 98 00 00 |........|........|
|00004a70| 00 b0 e4 07 bc 45 cb ff | 9c 74 cb ff 20 22 00 00 |.....E..|.t.. "..|
|00004a80| 16 00 00 00 b0 fc 07 00 | 00 00 00 00 48 6f 77 65 |........|....Howe|
|00004a90| 76 65 72 2c 20 69 66 20 | 74 68 65 20 6b 65 72 6e |ver, if |the kern|
|00004aa0| 65 6c 20 73 65 74 75 69 | 64 20 73 63 72 69 70 74 |el setui|d script|
|00004ab0| 20 66 65 61 74 75 72 65 | 20 69 73 6e 27 74 20 64 | feature| isn't d|
|00004ac0| 69 73 61 62 6c 65 64 2c | 20 50 65 72 6c 20 77 69 |isabled,| Perl wi|
|00004ad0| 6c 6c 20 63 6f 6d 70 6c | 61 69 6e 20 6c 6f 75 64 |ll compl|ain loud|
|00004ae0| 6c 79 20 74 68 61 74 20 | 79 6f 75 72 20 73 65 74 |ly that |your set|
|00004af0| 75 69 64 20 73 63 72 69 | 70 74 20 69 73 20 00 00 |uid scri|pt is ..|
|00004b00| 00 98 00 00 05 8c 00 00 | 00 30 d4 07 95 0d cb ff |........|.0......|
|00004b10| 75 3c cb ff 20 22 00 00 | 69 6e 73 65 63 75 72 65 |u<.. "..|insecure|
|00004b20| 2e 20 20 59 6f 75 27 6c | 6c 20 6e 65 65 64 20 74 |. You'l|l need t|
|00004b30| 6f 20 65 69 74 68 65 72 | 20 64 69 73 61 62 6c 65 |o either| disable|
|00004b40| 20 74 68 65 20 6b 65 72 | 6e 65 6c 20 73 65 74 75 | the ker|nel setu|
|00004b50| 69 64 20 73 63 72 69 70 | 74 20 66 65 61 74 75 72 |id scrip|t featur|
|00004b60| 65 2c 20 6f 72 20 70 75 | 74 20 61 20 43 20 77 72 |e, or pu|t a C wr|
|00004b70| 61 70 70 65 72 20 61 72 | 6f 75 6e 64 20 74 68 65 |apper ar|ound the|
|00004b80| 20 73 63 72 69 70 74 2e | 20 20 00 00 00 8c 00 00 | script.| ......|
|00004b90| 05 7c 00 00 00 88 5e 07 | 6e d5 ca ff 4e 04 cb ff |.|....^.|n...N...|
|00004ba0| 20 22 00 00 41 20 43 20 | 77 72 61 70 70 65 72 20 | "..A C |wrapper |
|00004bb0| 69 73 20 6a 75 73 74 20 | 61 20 63 6f 6d 70 69 6c |is just |a compil|
|00004bc0| 65 64 20 70 72 6f 67 72 | 61 6d 20 74 68 61 74 20 |ed progr|am that |
|00004bd0| 64 6f 65 73 20 6e 6f 74 | 68 69 6e 67 20 65 78 63 |does not|hing exc|
|00004be0| 65 70 74 20 63 61 6c 6c | 20 79 6f 75 72 20 50 65 |ept call| your Pe|
|00004bf0| 72 6c 20 70 72 6f 67 72 | 61 6d 2e 20 20 20 43 6f |rl progr|am. Co|
|00004c00| 6d 70 69 6c 65 64 20 00 | 00 7c 00 00 a5 b8 00 00 |mpiled .|.|......|
|00004c10| 40 00 ef 07 47 9d ca ff | 27 cc ca ff 20 22 00 00 |@...G...|'... "..|
|00004c20| 70 72 6f 67 72 61 6d 73 | 20 61 72 65 20 6e 6f 74 |programs| are not|
|00004c30| 20 73 75 62 6a 65 63 74 | 20 74 6f 20 74 68 65 20 | subject| to the |
|00004c40| 6b 65 72 6e 65 6c 20 62 | 75 67 20 74 68 61 74 20 |kernel b|ug that |
|00004c50| 70 6c 61 67 75 65 73 20 | 73 65 74 75 69 64 20 73 |plagues |setuid s|
|00004c60| 63 72 69 70 74 73 2e 20 | 20 48 65 72 65 27 73 20 |cripts. | Here's |
|00004c70| 61 20 73 69 6d 70 6c 65 | 20 77 72 61 70 70 65 72 |a simple| wrapper|
|00004c80| 2c 20 77 72 69 74 74 65 | 6e 20 69 6e 20 43 3a 0d |, writte|n in C:.|
|00004c90| 08 65 72 73 14 00 00 00 | 00 00 00 00 07 20 68 79 |.ers....|..... hy|
|00004ca0| 12 d2 93 00 12 d2 93 00 | 00 00 00 00 07 69 67 6e |........|.....ign|
|00004cb0| 0c d3 93 00 12 d2 93 00 | 0c d3 93 00 00 00 00 00 |........|........|
|00004cc0| 00 b8 00 00 25 3c 00 00 | 40 50 34 03 40 36 ca ff |....%<..|@P4.@6..|
|00004cd0| 50 5d ca ff 70 1a 00 00 | 23 64 65 66 69 6e 65 20 |P]..p...|#define |
|00004ce0| 52 45 41 4c 5f 50 41 54 | 48 20 22 2f 70 61 74 68 |REAL_PAT|H "/path|
|00004cf0| 2f 74 6f 2f 73 63 72 69 | 70 74 22 0d 00 3c 00 00 |/to/scri|pt"..<..|
|00004d00| 25 28 00 00 40 40 19 01 | 60 07 ca ff 70 2e ca ff |%(..@@..|`...p...|
|00004d10| 70 1a 00 00 6d 61 69 6e | 28 61 63 2c 20 61 76 29 |p...main|(ac, av)|
|00004d20| 0d 00 00 00 00 28 00 00 | 25 28 00 00 40 20 48 01 |.....(..|%(..@ H.|
|00004d30| 80 d8 c9 ff 90 ff c9 ff | 70 1a 00 00 20 20 20 20 |........|p... |
|00004d40| 63 68 61 72 20 2a 2a 61 | 76 3b 0d 00 00 28 00 00 |char **a|v;...(..|
|00004d50| 25 1c 00 00 40 70 17 00 | a0 a9 c9 ff b0 d0 c9 ff |%...@p..|........|
|00004d60| 70 1a 00 00 7b 0d 00 00 | 00 1c 00 00 25 34 00 00 |p...{...|....%4..|
|00004d70| 40 f0 49 02 c0 7a c9 ff | d0 a1 c9 ff 70 1a 00 00 |@.I..z..|....p...|
|00004d80| 20 20 20 20 65 78 65 63 | 76 28 52 45 41 4c 5f 50 | exec|v(REAL_P|
|00004d90| 41 54 48 2c 20 61 76 29 | 3b 0d 00 00 00 34 00 00 |ATH, av)|;....4..|
|00004da0| a5 44 00 00 40 70 17 00 | e0 4b c9 ff f0 72 c9 ff |.D..@p..|.K...r..|
|00004db0| 70 1a 00 00 7d 0d 08 73 | 0c d4 93 00 12 d2 93 00 |p...}..s|........|
|00004dc0| 00 00 00 00 08 63 75 72 | 12 00 00 00 00 00 00 00 |.....cur|........|
|00004dd0| 07 20 07 05 18 d5 93 00 | 18 d5 93 00 00 00 00 00 |. ......|........|
|00004de0| 00 44 00 00 a5 24 00 00 | 40 00 00 00 50 37 c9 ff |.D...$..|@...P7..|
|00004df0| 10 44 c9 ff 00 00 00 00 | 0d 08 6f 72 18 d6 93 00 |.D......|..or....|
|00004e00| 00 00 00 00 00 24 00 00 | a5 9c 00 00 40 cc 86 07 |.....$..|....@...|
|00004e10| 80 de c8 ff 60 0d c9 ff | 20 22 00 00 43 6f 6d 70 |....`...| "..Comp|
|00004e20| 69 6c 65 20 74 68 69 73 | 20 77 72 61 70 70 65 72 |ile this| wrapper|
|00004e30| 20 69 6e 74 6f 20 61 20 | 62 69 6e 61 72 79 20 65 | into a |binary e|
|00004e40| 78 65 63 75 74 61 62 6c | 65 20 61 6e 64 20 74 68 |xecutabl|e and th|
|00004e50| 65 6e 20 6d 61 6b 65 20 | 07 20 74 68 11 d7 93 00 |en make |. th....|
|00004e60| 11 d7 93 00 00 00 00 00 | 69 74 08 66 11 00 00 00 |........|it.f....|
|00004e70| 00 00 00 00 20 72 61 74 | 68 65 72 20 74 68 61 6e |.... rat|her than|
|00004e80| 20 79 6f 75 72 20 73 63 | 72 69 70 74 20 73 65 74 | your sc|ript set|
|00004e90| 75 69 64 20 6f 72 20 73 | 65 74 67 69 64 2e 0d 00 |uid or s|etgid...|
|00004ea0| 00 9c 00 00 85 b8 00 00 | 00 7c 88 07 a9 6f c8 ff |........|.|...o..|
|00004eb0| 89 9e c8 ff 20 22 00 00 | 53 65 65 20 74 68 65 20 |.... "..|See the |
|00004ec0| 70 72 6f 67 72 61 6d 20 | 07 67 20 74 10 d8 93 00 |program |.g t....|
|00004ed0| 10 d8 93 00 00 00 00 00 | 77 72 61 70 73 75 69 64 |........|wrapsuid|
|00004ee0| 08 6e 27 74 10 00 00 00 | 00 00 00 00 20 69 6e 20 |.n't....|.... in |
|00004ef0| 74 68 65 20 07 20 54 68 | 06 d9 93 00 06 d9 93 00 |the . Th|........|
|00004f00| 00 00 00 00 65 67 08 74 | 06 da 93 00 00 00 00 00 |....eg.t|........|
|00004f10| 20 64 69 72 65 63 74 6f | 72 79 20 6f 66 20 79 6f | directo|ry of yo|
|00004f20| 75 72 20 50 65 72 6c 20 | 64 69 73 74 72 69 62 75 |ur Perl |distribu|
|00004f30| 74 69 6f 6e 20 66 6f 72 | 20 61 20 63 6f 6e 76 65 |tion for| a conve|
|00004f40| 6e 69 65 6e 74 20 77 61 | 79 20 74 6f 20 64 6f 20 |nient wa|y to do |
|00004f50| 74 68 69 73 20 00 00 00 | 00 b8 00 00 05 88 00 00 |this ...|........|
|00004f60| 00 10 e2 07 82 37 c8 ff | 62 66 c8 ff 20 22 00 00 |.....7..|bf.. "..|
|00004f70| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 20 66 6f |automati|cally fo|
|00004f80| 72 20 61 6c 6c 20 79 6f | 75 72 20 73 65 74 75 69 |r all yo|ur setui|
|00004f90| 64 20 50 65 72 6c 20 70 | 72 6f 67 72 61 6d 73 2e |d Perl p|rograms.|
|00004fa0| 20 20 49 74 20 6d 6f 76 | 65 73 20 73 65 74 75 69 | It mov|es setui|
|00004fb0| 64 20 73 63 72 69 70 74 | 73 20 69 6e 74 6f 20 66 |d script|s into f|
|00004fc0| 69 6c 65 73 20 77 69 74 | 68 20 74 68 65 20 73 61 |iles wit|h the sa|
|00004fd0| 6d 65 20 6e 61 6d 65 20 | 70 6c 75 73 20 61 20 00 |me name |plus a .|
|00004fe0| 00 88 00 00 25 68 00 00 | 40 00 b2 05 5b ff c7 ff |....%h..|@...[...|
|00004ff0| 3b 2e c8 ff 20 22 00 00 | 6c 65 61 64 69 6e 67 20 |;... "..|leading |
|00005000| 64 6f 74 2c 20 61 6e 64 | 20 74 68 65 6e 20 63 6f |dot, and| then co|
|00005010| 6d 70 69 6c 65 73 20 61 | 20 77 72 61 70 70 65 72 |mpiles a| wrapper|
|00005020| 20 6c 69 6b 65 20 74 68 | 65 20 6f 6e 65 20 61 62 | like th|e one ab|
|00005030| 6f 76 65 20 66 6f 72 20 | 65 61 63 68 20 6f 66 20 |ove for |each of |
|00005040| 74 68 65 6d 2e 0d 00 00 | 00 68 00 00 05 84 00 00 |them....|.h......|
|00005050| 00 94 d3 07 84 90 c7 ff | 64 bf c7 ff 20 22 00 00 |........|d... "..|
|00005060| 49 6e 20 72 65 63 65 6e | 74 20 79 65 61 72 73 2c |In recen|t years,|
|00005070| 20 76 65 6e 64 6f 72 73 | 20 68 61 76 65 20 62 65 | vendors| have be|
|00005080| 67 75 6e 20 74 6f 20 73 | 75 70 70 6c 79 20 73 79 |gun to s|upply sy|
|00005090| 73 74 65 6d 73 20 66 72 | 65 65 20 6f 66 20 74 68 |stems fr|ee of th|
|000050a0| 69 73 20 69 6e 68 65 72 | 65 6e 74 20 73 65 63 75 |is inher|ent secu|
|000050b0| 72 69 74 79 20 62 75 67 | 2e 20 20 4f 6e 20 73 75 |rity bug|. On su|
|000050c0| 63 68 20 73 79 73 74 65 | 6d 73 2c 20 00 84 00 00 |ch syste|ms, ....|
|000050d0| 05 88 00 00 00 c0 da 07 | 5d 58 c7 ff 3d 87 c7 ff |........|]X..=...|
|000050e0| 20 22 00 00 77 68 65 6e | 20 74 68 65 20 6b 65 72 | "..when| the ker|
|000050f0| 6e 65 6c 20 70 61 73 73 | 65 73 20 74 68 65 20 6e |nel pass|es the n|
|00005100| 61 6d 65 20 6f 66 20 74 | 68 65 20 73 65 74 75 69 |ame of t|he setui|
|00005110| 64 20 73 63 72 69 70 74 | 20 74 6f 20 6f 70 65 6e |d script| to open|
|00005120| 20 74 6f 20 74 68 65 20 | 69 6e 74 65 72 70 72 65 | to the |interpre|
|00005130| 74 65 72 2c 20 72 61 74 | 68 65 72 20 74 68 61 6e |ter, rat|her than|
|00005140| 20 75 73 69 6e 67 20 61 | 20 70 61 74 68 6e 61 6d | using a| pathnam|
|00005150| 65 20 00 00 00 88 00 00 | 85 a0 00 00 00 b8 af 07 |e ......|........|
|00005160| 36 20 c7 ff 16 4f c7 ff | 20 22 00 00 73 75 62 6a |6 ...O..| "..subj|
|00005170| 65 63 74 20 74 6f 20 6d | 65 64 64 6c 69 6e 67 2c |ect to m|eddling,|
|00005180| 20 69 74 20 69 6e 73 74 | 65 61 64 20 70 61 73 73 | it inst|ead pass|
|00005190| 65 73 20 07 11 db 93 00 | 11 db 93 00 00 00 00 00 |es .....|........|
|000051a0| 2f 64 65 76 2f 66 64 2f | 33 08 00 00 11 00 00 00 |/dev/fd/|3.......|
|000051b0| 00 00 00 00 2e 20 20 54 | 68 69 73 20 69 73 20 61 |..... T|his is a|
|000051c0| 20 73 70 65 63 69 61 6c | 20 66 69 6c 65 20 61 6c | special| file al|
|000051d0| 72 65 61 64 79 20 6f 70 | 65 6e 65 64 20 6f 6e 20 |ready op|ened on |
|000051e0| 74 68 65 20 73 63 72 69 | 70 74 2c 20 73 6f 20 74 |the scri|pt, so t|
|000051f0| 68 61 74 20 00 a0 00 00 | 85 98 00 00 00 ac d9 07 |hat ....|........|
|00005200| 0f e8 c6 ff ef 16 c7 ff | 20 22 00 00 74 68 65 72 |........| "..ther|
|00005210| 65 20 63 61 6e 20 62 65 | 20 6e 6f 20 72 61 63 65 |e can be| no race|
|00005220| 20 63 6f 6e 64 69 74 69 | 6f 6e 20 66 6f 72 20 65 | conditi|on for e|
|00005230| 76 69 6c 20 73 63 72 69 | 70 74 73 20 74 6f 20 65 |vil scri|pts to e|
|00005240| 78 70 6c 6f 69 74 2e 20 | 20 4f 6e 20 74 68 65 73 |xploit. | On thes|
|00005250| 65 20 73 79 73 74 65 6d | 73 2c 20 50 65 72 6c 20 |e system|s, Perl |
|00005260| 73 68 6f 75 6c 64 20 62 | 65 20 63 6f 6d 70 69 6c |should b|e compil|
|00005270| 65 64 20 77 69 74 68 20 | 07 6c 65 73 0e dc 93 00 |ed with |.les....|
|00005280| 0e dc 93 00 00 00 00 00 | 2d 00 00 00 00 98 00 00 |........|-.......|
|00005290| 85 98 00 00 00 cc b6 07 | e8 af c6 ff c8 de c6 ff |........|........|
|000052a0| ba 1f 00 00 44 53 45 54 | 55 49 44 5f 53 43 52 49 |....DSET|UID_SCRI|
|000052b0| 50 54 53 5f 41 52 45 5f | 53 45 43 55 52 45 5f 4e |PTS_ARE_|SECURE_N|
|000052c0| 4f 57 08 69 0e dd 93 00 | 00 00 00 00 2e 20 20 54 |OW.i....|..... T|
|000052d0| 68 65 20 07 10 de 93 00 | 10 de 93 00 00 00 00 00 |he .....|........|
|000052e0| 43 6f 6e 66 69 67 75 72 | 65 08 62 6c 10 00 00 00 |Configur|e.bl....|
|000052f0| 00 00 00 00 20 70 72 6f | 67 72 61 6d 20 74 68 61 |.... pro|gram tha|
|00005300| 74 20 62 75 69 6c 64 73 | 20 50 65 72 6c 20 74 72 |t builds| Perl tr|
|00005310| 69 65 73 20 74 6f 20 66 | 69 67 75 72 65 20 74 68 |ies to f|igure th|
|00005320| 69 73 20 00 00 98 00 00 | 05 84 00 00 00 dc d0 07 |is .....|........|
|00005330| c1 77 c6 ff a1 a6 c6 ff | 20 22 00 00 6f 75 74 20 |.w......| "..out |
|00005340| 66 6f 72 20 69 74 73 65 | 6c 66 2c 20 73 6f 20 79 |for itse|lf, so y|
|00005350| 6f 75 20 73 68 6f 75 6c | 64 20 6e 65 76 65 72 20 |ou shoul|d never |
|00005360| 68 61 76 65 20 74 6f 20 | 73 70 65 63 69 66 79 20 |have to |specify |
|00005370| 74 68 69 73 20 79 6f 75 | 72 73 65 6c 66 2e 20 20 |this you|rself. |
|00005380| 4d 6f 73 74 20 6d 6f 64 | 65 72 6e 20 72 65 6c 65 |Most mod|ern rele|
|00005390| 61 73 65 73 20 6f 66 20 | 53 79 73 56 72 34 20 61 |ases of |SysVr4 a|
|000053a0| 6e 64 20 42 53 44 20 00 | 00 84 00 00 25 54 00 00 |nd BSD .|....%T..|
|000053b0| 40 fc 17 04 9a 3f c6 ff | 7a 6e c6 ff 20 22 00 00 |@....?..|zn.. "..|
|000053c0| 34 2e 34 20 75 73 65 20 | 74 68 69 73 20 61 70 70 |4.4 use |this app|
|000053d0| 72 6f 61 63 68 20 74 6f | 20 61 76 6f 69 64 20 74 |roach to| avoid t|
|000053e0| 68 65 20 6b 65 72 6e 65 | 6c 20 72 61 63 65 20 63 |he kerne|l race c|
|000053f0| 6f 6e 64 69 74 69 6f 6e | 2e 0d 00 00 00 54 00 00 |ondition|.....T..|
|00005400| 85 9c 00 00 00 58 73 07 | c3 d0 c5 ff a3 ff c5 ff |.....Xs.|........|
|00005410| 20 22 00 00 50 72 69 6f | 72 20 74 6f 20 72 65 6c | "..Prio|r to rel|
|00005420| 65 61 73 65 20 35 2e 30 | 30 33 20 6f 66 20 50 65 |ease 5.0|03 of Pe|
|00005430| 72 6c 2c 20 61 20 62 75 | 67 20 69 6e 20 74 68 65 |rl, a bu|g in the|
|00005440| 20 63 6f 64 65 20 6f 66 | 20 07 00 00 10 df 93 00 | code of| .......|
|00005450| 10 df 93 00 00 00 00 00 | 73 75 69 64 70 65 72 6c |........|suidperl|
|00005460| 08 b4 93 00 10 00 00 00 | 00 00 00 00 20 63 6f 75 |........|.... cou|
|00005470| 6c 64 20 69 6e 74 72 6f | 64 75 63 65 20 61 20 73 |ld intro|duce a s|
|00005480| 65 63 75 72 69 74 79 20 | 68 6f 6c 65 20 69 6e 20 |ecurity |hole in |
|00005490| 73 79 73 74 65 6d 73 20 | 00 9c 00 00 a5 4c 00 00 |systems |.....L..|
|000054a0| 40 ac f9 02 9c 98 c5 ff | 7c c7 c5 ff 20 22 00 00 |@.......||... "..|
|000054b0| 63 6f 6d 70 69 6c 65 64 | 20 77 69 74 68 20 73 74 |compiled| with st|
|000054c0| 72 69 63 74 20 50 4f 53 | 49 58 20 63 6f 6d 70 6c |rict POS|IX compl|
|000054d0| 69 61 6e 63 65 2e 0d 07 | 0a e0 93 00 0a e0 93 00 |iance...|........|
|000054e0| 00 00 00 00 00 4c 00 00 | a5 3c 00 00 40 1c 6f 02 |.....L..|.<..@.o.|
|000054f0| f5 21 c5 ff a5 58 c5 ff | 18 2b 00 00 50 72 6f 74 |.!...X..|.+..Prot|
|00005500| 65 63 74 69 6e 67 20 59 | 6f 75 72 20 50 72 6f 67 |ecting Y|our Prog|
|00005510| 72 61 6d 73 0d 08 70 20 | 0a e1 93 00 00 00 00 00 |rams..p |........|
|00005520| 00 3c 00 00 25 80 00 00 | 40 b0 8d 07 c0 cc c4 ff |.<..%...|@.......|
|00005530| a0 fb c4 ff 20 22 00 00 | 54 68 65 72 65 20 61 72 |.... "..|There ar|
|00005540| 65 20 61 20 6e 75 6d 62 | 65 72 20 6f 66 20 77 61 |e a numb|er of wa|
|00005550| 79 73 20 74 6f 20 68 69 | 64 65 20 74 68 65 20 73 |ys to hi|de the s|
|00005560| 6f 75 72 63 65 20 74 6f | 20 79 6f 75 72 20 50 65 |ource to| your Pe|
|00005570| 72 6c 20 70 72 6f 67 72 | 61 6d 73 2c 20 77 69 74 |rl progr|ams, wit|
|00005580| 68 20 76 61 72 79 69 6e | 67 20 6c 65 76 65 6c 73 |h varyin|g levels|
|00005590| 20 6f 66 20 22 73 65 63 | 75 72 69 74 79 22 2e 0d | of "sec|urity"..|
|000055a0| 00 80 00 00 85 9c 00 00 | 00 e4 a4 07 e9 5d c4 ff |........|.....]..|
|000055b0| c9 8c c4 ff 20 22 00 00 | 46 69 72 73 74 20 6f 66 |.... "..|First of|
|000055c0| 20 61 6c 6c 2c 20 68 6f | 77 65 76 65 72 2c 20 79 | all, ho|wever, y|
|000055d0| 6f 75 20 07 11 e2 93 00 | 11 e2 93 00 00 00 00 00 |ou .....|........|
|000055e0| 63 61 6e 27 74 08 20 62 | 11 00 00 00 00 00 00 00 |can't. b|........|
|000055f0| 20 74 61 6b 65 20 61 77 | 61 79 20 72 65 61 64 20 | take aw|ay read |
|00005600| 70 65 72 6d 69 73 73 69 | 6f 6e 2c 20 62 65 63 61 |permissi|on, beca|
|00005610| 75 73 65 20 74 68 65 20 | 73 6f 75 72 63 65 20 63 |use the |source c|
|00005620| 6f 64 65 20 68 61 73 20 | 74 6f 20 62 65 20 72 65 |ode has |to be re|
|00005630| 61 64 61 62 6c 65 20 69 | 6e 20 00 00 00 9c 00 00 |adable i|n ......|
|00005640| 05 88 00 00 00 e0 ea 07 | c2 25 c4 ff a2 54 c4 ff |........|.%...T..|
|00005650| 20 22 00 00 6f 72 64 65 | 72 20 74 6f 20 62 65 20 | "..orde|r to be |
|00005660| 63 6f 6d 70 69 6c 65 64 | 20 61 6e 64 20 69 6e 74 |compiled| and int|
|00005670| 65 72 70 72 65 74 65 64 | 2e 20 20 28 54 68 61 74 |erpreted|. (That|
|00005680| 20 64 6f 65 73 6e 27 74 | 20 6d 65 61 6e 20 74 68 | doesn't| mean th|
|00005690| 61 74 20 61 20 43 47 49 | 20 73 63 72 69 70 74 27 |at a CGI| script'|
|000056a0| 73 20 73 6f 75 72 63 65 | 20 69 73 20 72 65 61 64 |s source| is read|
|000056b0| 61 62 6c 65 20 62 79 20 | 70 65 6f 70 6c 65 20 6f |able by |people o|
|000056c0| 6e 20 00 00 00 88 00 00 | 25 78 00 00 40 08 a3 06 |n ......|%x..@...|
|000056d0| 9b ed c3 ff 7b 1c c4 ff | 20 22 00 00 74 68 65 20 |....{...| "..the |
|000056e0| 77 65 62 2c 20 74 68 6f | 75 67 68 2e 29 20 20 53 |web, tho|ugh.) S|
|000056f0| 6f 20 79 6f 75 20 68 61 | 76 65 20 74 6f 20 6c 65 |o you ha|ve to le|
|00005700| 61 76 65 20 74 68 65 20 | 70 65 72 6d 69 73 73 69 |ave the |permissi|
|00005710| 6f 6e 73 20 61 74 20 74 | 68 65 20 73 6f 63 69 61 |ons at t|he socia|
|00005720| 6c 6c 79 20 66 72 69 65 | 6e 64 6c 79 20 30 37 35 |lly frie|ndly 075|
|00005730| 35 20 6c 65 76 65 6c 2e | 0d 00 00 00 00 78 00 00 |5 level.|.....x..|
|00005740| 05 84 00 00 00 d0 c7 07 | c4 7e c3 ff a4 ad c3 ff |........|.~......|
|00005750| 20 22 00 00 53 6f 6d 65 | 20 70 65 6f 70 6c 65 20 | "..Some| people |
|00005760| 72 65 67 61 72 64 20 74 | 68 69 73 20 61 73 20 61 |regard t|his as a|
|00005770| 20 73 65 63 75 72 69 74 | 79 20 70 72 6f 62 6c 65 | securit|y proble|
|00005780| 6d 2e 20 20 49 66 20 79 | 6f 75 72 20 70 72 6f 67 |m. If y|our prog|
|00005790| 72 61 6d 20 64 6f 65 73 | 20 69 6e 73 65 63 75 72 |ram does| insecur|
|000057a0| 65 20 74 68 69 6e 67 73 | 2c 20 61 6e 64 20 72 65 |e things|, and re|
|000057b0| 6c 69 65 73 20 6f 6e 20 | 70 65 6f 70 6c 65 20 00 |lies on |people .|
|000057c0| 00 84 00 00 05 88 00 00 | 00 00 e6 07 9d 46 c3 ff |........|.....F..|
|000057d0| 7d 75 c3 ff 20 22 00 00 | 6e 6f 74 20 6b 6e 6f 77 |}u.. "..|not know|
|000057e0| 69 6e 67 20 68 6f 77 20 | 74 6f 20 65 78 70 6c 6f |ing how |to explo|
|000057f0| 69 74 20 74 68 6f 73 65 | 20 69 6e 73 65 63 75 72 |it those| insecur|
|00005800| 69 74 69 65 73 2c 20 69 | 74 20 69 73 20 6e 6f 74 |ities, i|t is not|
|00005810| 20 73 65 63 75 72 65 2e | 20 20 49 74 20 69 73 20 | secure.| It is |
|00005820| 6f 66 74 65 6e 20 70 6f | 73 73 69 62 6c 65 20 66 |often po|ssible f|
|00005830| 6f 72 20 73 6f 6d 65 6f | 6e 65 20 74 6f 20 64 65 |or someo|ne to de|
|00005840| 74 65 72 6d 69 6e 65 20 | 00 88 00 00 05 84 00 00 |termine |........|
|00005850| 00 88 c7 07 76 0e c3 ff | 56 3d c3 ff 20 22 00 00 |....v...|V=.. "..|
|00005860| 74 68 65 20 69 6e 73 65 | 63 75 72 65 20 74 68 69 |the inse|cure thi|
|00005870| 6e 67 73 20 61 6e 64 20 | 65 78 70 6c 6f 69 74 20 |ngs and |exploit |
|00005880| 74 68 65 6d 20 77 69 74 | 68 6f 75 74 20 76 69 65 |them wit|hout vie|
|00005890| 77 69 6e 67 20 74 68 65 | 20 73 6f 75 72 63 65 2e |wing the| source.|
|000058a0| 20 20 53 65 63 75 72 69 | 74 79 20 74 68 72 6f 75 | Securi|ty throu|
|000058b0| 67 68 20 6f 62 73 63 75 | 72 69 74 79 2c 20 74 68 |gh obscu|rity, th|
|000058c0| 65 20 6e 61 6d 65 20 66 | 6f 72 20 00 00 84 00 00 |e name f|or .....|
|000058d0| 25 5c 00 00 40 18 b3 04 | 4f d6 c2 ff 2f 05 c3 ff |%\..@...|O.../...|
|000058e0| 20 22 00 00 68 69 64 69 | 6e 67 20 79 6f 75 72 20 | "..hidi|ng your |
|000058f0| 62 75 67 73 20 69 6e 73 | 74 65 61 64 20 6f 66 20 |bugs ins|tead of |
|00005900| 66 69 78 69 6e 67 20 74 | 68 65 6d 2c 20 69 73 20 |fixing t|hem, is |
|00005910| 6c 69 74 74 6c 65 20 73 | 65 63 75 72 69 74 79 20 |little s|ecurity |
|00005920| 69 6e 64 65 65 64 2e 0d | 00 5c 00 00 05 88 00 00 |indeed..|.\......|
|00005930| 00 f4 e5 07 78 67 c2 ff | 58 96 c2 ff 20 22 00 00 |....xg..|X... "..|
|00005940| 59 6f 75 20 63 61 6e 20 | 74 72 79 20 75 73 69 6e |You can |try usin|
|00005950| 67 20 65 6e 63 72 79 70 | 74 69 6f 6e 20 76 69 61 |g encryp|tion via|
|00005960| 20 73 6f 75 72 63 65 20 | 66 69 6c 74 65 72 73 20 | source |filters |
|00005970| 28 46 69 6c 74 65 72 3a | 3a 2a 20 66 72 6f 6d 20 |(Filter:|:* from |
|00005980| 43 50 41 4e 29 2e 20 42 | 75 74 20 63 72 61 63 6b |CPAN). B|ut crack|
|00005990| 65 72 73 20 6d 69 67 68 | 74 20 62 65 20 61 62 6c |ers migh|t be abl|
|000059a0| 65 20 74 6f 20 64 65 63 | 72 79 70 74 20 00 00 00 |e to dec|rypt ...|
|000059b0| 00 88 00 00 05 88 00 00 | 00 a4 cc 07 51 2f c2 ff |........|....Q/..|
|000059c0| 31 5e c2 ff 20 22 00 00 | 69 74 2e 20 20 59 6f 75 |1^.. "..|it. You|
|000059d0| 20 63 61 6e 20 74 72 79 | 20 75 73 69 6e 67 20 74 | can try| using t|
|000059e0| 68 65 20 62 79 74 65 20 | 63 6f 64 65 20 63 6f 6d |he byte |code com|
|000059f0| 70 69 6c 65 72 20 61 6e | 64 20 69 6e 74 65 72 70 |piler an|d interp|
|00005a00| 72 65 74 65 72 20 64 65 | 73 63 72 69 62 65 64 20 |reter de|scribed |
|00005a10| 62 65 6c 6f 77 2c 20 62 | 75 74 20 63 72 61 63 6b |below, b|ut crack|
|00005a20| 65 72 73 20 6d 69 67 68 | 74 20 62 65 20 61 62 6c |ers migh|t be abl|
|00005a30| 65 20 74 6f 20 00 00 00 | 00 88 00 00 05 84 00 00 |e to ...|........|
|00005a40| 00 a0 b2 07 2a f7 c1 ff | 0a 26 c2 ff 20 22 00 00 |....*...|.&.. "..|
|00005a50| 64 65 2d 63 6f 6d 70 69 | 6c 65 20 69 74 2e 20 20 |de-compi|le it. |
|00005a60| 59 6f 75 20 63 61 6e 20 | 74 72 79 20 75 73 69 6e |You can |try usin|
|00005a70| 67 20 74 68 65 20 6e 61 | 74 69 76 65 2d 63 6f 64 |g the na|tive-cod|
|00005a80| 65 20 63 6f 6d 70 69 6c | 65 72 20 64 65 73 63 72 |e compil|er descr|
|00005a90| 69 62 65 64 20 62 65 6c | 6f 77 2c 20 62 75 74 20 |ibed bel|ow, but |
|00005aa0| 63 72 61 63 6b 65 72 73 | 20 6d 69 67 68 74 20 62 |crackers| might b|
|00005ab0| 65 20 61 62 6c 65 20 74 | 6f 20 00 00 00 84 00 00 |e able t|o ......|
|00005ac0| 05 88 00 00 00 54 e9 07 | 03 bf c1 ff e3 ed c1 ff |.....T..|........|
|00005ad0| 20 22 00 00 64 69 73 61 | 73 73 65 6d 62 6c 65 20 | "..disa|ssemble |
|00005ae0| 69 74 2e 20 20 54 68 65 | 73 65 20 70 6f 73 65 20 |it. The|se pose |
|00005af0| 76 61 72 79 69 6e 67 20 | 64 65 67 72 65 65 73 20 |varying |degrees |
|00005b00| 6f 66 20 64 69 66 66 69 | 63 75 6c 74 79 20 74 6f |of diffi|culty to|
|00005b10| 20 70 65 6f 70 6c 65 20 | 77 61 6e 74 69 6e 67 20 | people |wanting |
|00005b20| 74 6f 20 67 65 74 20 61 | 74 20 79 6f 75 72 20 63 |to get a|t your c|
|00005b30| 6f 64 65 2c 20 62 75 74 | 20 6e 6f 6e 65 20 63 61 |ode, but| none ca|
|00005b40| 6e 20 00 00 00 88 00 00 | 25 64 00 00 40 58 e8 04 |n ......|%d..@X..|
|00005b50| dc 86 c1 ff bc b5 c1 ff | 20 22 00 00 64 65 66 69 |........| "..defi|
|00005b60| 6e 69 74 69 76 65 6c 79 | 20 63 6f 6e 63 65 61 6c |nitively| conceal|
|00005b70| 20 69 74 20 28 74 68 69 | 73 20 69 73 20 74 72 75 | it (thi|s is tru|
|00005b80| 65 20 6f 66 20 65 76 65 | 72 79 20 6c 61 6e 67 75 |e of eve|ry langu|
|00005b90| 61 67 65 2c 20 6e 6f 74 | 20 6a 75 73 74 20 50 65 |age, not| just Pe|
|00005ba0| 72 6c 29 2e 0d 00 00 00 | 00 64 00 00 05 80 00 00 |rl).....|.d......|
|00005bb0| 00 60 53 07 05 18 c1 ff | e5 46 c1 ff 20 22 00 00 |.`S.....|.F.. "..|
|00005bc0| 49 66 20 79 6f 75 27 72 | 65 20 63 6f 6e 63 65 72 |If you'r|e concer|
|00005bd0| 6e 65 64 20 61 62 6f 75 | 74 20 70 65 6f 70 6c 65 |ned abou|t people|
|00005be0| 20 70 72 6f 66 69 74 69 | 6e 67 20 66 72 6f 6d 20 | profiti|ng from |
|00005bf0| 79 6f 75 72 20 63 6f 64 | 65 2c 20 74 68 65 6e 20 |your cod|e, then |
|00005c00| 74 68 65 20 62 6f 74 74 | 6f 6d 20 6c 69 6e 65 20 |the bott|om line |
|00005c10| 69 73 20 74 68 61 74 20 | 6e 6f 74 68 69 6e 67 20 |is that |nothing |
|00005c20| 62 75 74 20 61 20 00 00 | 00 80 00 00 05 80 00 00 |but a ..|........|
|00005c30| 00 c8 54 07 de df c0 ff | be 0e c1 ff 20 22 00 00 |..T.....|.... "..|
|00005c40| 72 65 73 74 72 69 63 74 | 69 76 65 20 6c 69 63 65 |restrict|ive lice|
|00005c50| 6e 63 65 20 77 69 6c 6c | 20 67 69 76 65 20 79 6f |nce will| give yo|
|00005c60| 75 20 6c 65 67 61 6c 20 | 73 65 63 75 72 69 74 79 |u legal |security|
|00005c70| 2e 20 20 4c 69 63 65 6e | 73 65 20 79 6f 75 72 20 |. Licen|se your |
|00005c80| 73 6f 66 74 77 61 72 65 | 20 61 6e 64 20 70 65 70 |software| and pep|
|00005c90| 70 65 72 20 69 74 20 77 | 69 74 68 20 74 68 72 65 |per it w|ith thre|
|00005ca0| 61 74 65 6e 69 6e 67 20 | 00 80 00 00 05 84 00 00 |atening |........|
|00005cb0| 00 dc d9 07 b7 a7 c0 ff | 97 d6 c0 ff 20 22 00 00 |........|.... "..|
|00005cc0| 73 74 61 74 65 6d 65 6e | 74 73 20 6c 69 6b 65 20 |statemen|ts like |
|00005cd0| 22 54 68 69 73 20 69 73 | 20 75 6e 70 75 62 6c 69 |"This is| unpubli|
|00005ce0| 73 68 65 64 20 70 72 6f | 70 72 69 65 74 61 72 79 |shed pro|prietary|
|00005cf0| 20 73 6f 66 74 77 61 72 | 65 20 6f 66 20 58 59 5a | softwar|e of XYZ|
|00005d00| 20 43 6f 72 70 2e 20 59 | 6f 75 72 20 61 63 63 65 | Corp. Y|our acce|
|00005d10| 73 73 20 74 6f 20 69 74 | 20 64 6f 65 73 20 6e 6f |ss to it| does no|
|00005d20| 74 20 67 69 76 65 20 79 | 6f 75 20 00 00 84 00 00 |t give y|ou .....|
|00005d30| 05 88 00 00 00 88 f4 07 | 90 6f c0 ff 70 9e c0 ff |........|.o..p...|
|00005d40| 20 22 00 00 70 65 72 6d | 69 73 73 69 6f 6e 20 74 | "..perm|ission t|
|00005d50| 6f 20 75 73 65 20 69 74 | 20 62 6c 61 68 20 62 6c |o use it| blah bl|
|00005d60| 61 68 20 62 6c 61 68 2e | 22 20 20 59 6f 75 20 73 |ah blah.|" You s|
|00005d70| 68 6f 75 6c 64 20 73 65 | 65 20 61 20 6c 61 77 79 |hould se|e a lawy|
|00005d80| 65 72 20 74 6f 20 62 65 | 20 73 75 72 65 20 79 6f |er to be| sure yo|
|00005d90| 75 72 20 6c 69 63 65 6e | 63 65 27 73 20 77 6f 72 |ur licen|ce's wor|
|00005da0| 64 69 6e 67 20 77 69 6c | 6c 20 73 74 61 6e 64 20 |ding wil|l stand |
|00005db0| 75 70 20 00 00 88 00 00 | 25 24 00 00 41 3c 9c 00 |up .....|%$..A<..|
|00005dc0| 69 37 c0 ff 49 66 c0 ff | 20 22 00 00 69 6e 20 63 |i7..If..| "..in c|
|00005dd0| 6f 75 72 74 2e 05 0d 00 | 00 24 00 00 01 24 00 00 |ourt....|.$...$..|
|00005de0| 00 00 00 00 00 00 00 00 | 05 05 05 05 05 05 05 05 |........|........|
|00005df0| 05 05 05 05 05 05 05 05 | 05 05 05 05 00 24 00 00 |........|.....$..|
|00005e00| 06 00 00 00 79 56 34 12 | 98 00 00 00 02 00 00 00 |....yV4.|........|
|00005e10| 00 00 00 00 06 08 00 00 | 00 08 00 00 01 10 00 00 |........|........|
|00005e20| 00 00 00 00 00 00 00 00 | 00 10 00 00 02 18 00 00 |........|........|
|00005e30| a8 01 00 00 00 00 00 00 | 17 b8 00 00 00 00 00 00 |........|........|
|00005e40| 00 18 00 00 a5 54 00 00 | c1 1c f2 00 25 c0 f3 ff |.....T..|....%...|
|00005e50| 05 ef f3 ff 20 22 00 00 | 16 00 00 00 b0 fc 07 00 |.... "..|........|
|00005e60| 00 00 00 00 07 b8 00 00 | 17 b8 00 00 17 b8 00 00 |........|........|
|00005e70| 00 00 00 00 70 65 72 6c | 73 65 63 05 20 2d 20 0b |....perl|sec. - .|
|00005e80| 01 00 00 00 08 05 05 05 | 17 b8 00 00 00 00 00 00 |........|........|
|00005e90| 0d 00 00 00 00 54 00 00 | 06 00 00 00 79 56 34 12 |.....T..|....yV4.|
+--------+-------------------------+-------------------------+--------+--------+