For those asking for the PHP version, here it is: 
http://pastebin.com/3GX0CicS

There are three different scripts there: lfi.php, funcs.php and dirs.php

Thank you!

-- 
Posted via http://www.ruby-forum.com/.