Return to Snippet

Revision: 29091
at July 21, 2010 10:40 by seanboycegmailcom


Initial Code
# GET http://hostname.domain/info.php | egrep -o '"module_.*\"'
"module_apache2handler"
"module_bcmath"
"module_bz2"
"module_calendar"
"module_ctype"
"module_curl"
"module_date"
"module_dba"
"module_dom"
"module_exif"
"module_filter"
"module_ftp"
"module_gd"
"module_gettext"
"module_hash"
"module_iconv"
"module_json"
"module_libxml"
"module_mbstring"
"module_mcrypt"
"module_mime_magic"
"module_mysql"
"module_mysqli"
"module_openssl"
"module_pcre"
"module_PDO"
"module_pdo_mysql"
"module_posix"
"module_Reflection"
"module_session"
"module_shmop"
"module_SimpleXML"
"module_soap"
"module_sockets"
"module_SPL"
"module_standard"
"module_sysvmsg"
"module_tokenizer"
"module_wddx"
"module_xml"
"module_xmlreader"
"module_xmlwriter"
"module_zip"
"module_zlib"

Initial URL


Initial Description
Useful for quickly retrieving loaded modules from other servers.  Replace GET with your favorite command-line http client like lwp-request or curl.  Assumes you have a page containing only the phpinfo() function commonly used in development.

Initial Title
Parse loaded modules from phpinfo() page

Initial Tags


Initial Language
Bash