• rssfeed

Archive for February 2009

 
 

nmap to get web server info

I realized that nmap can be used to get info about web server.  Informations about servers are easy to read via header. Admins tend to mask actual product or version the web is running on. So, then nmap comes to play with.

[root@kremilek ~]# nmap -sV -P0 -p80 www.idnes.cz
Starting Nmap 4.20 ( http://insecure.org ) at 2009-02-12 21:03 CET
Interesting ports on c1.idnes.cz (194.79.52.192):
PORT   STATE SERVICE VERSION
80/tcp open  http    Microsoft IIS webserver 6.0
Service Info: OS: Windows
Service detection performed. Please report any incorrect results at http://insecure.org/nmap/submit/ .
Nmap finished: 1 IP address (1 host up) scanned in 6.096 seconds
Header way:
[root@kremilek ~]# HEAD www.idnes.cz
200 OK
Cache-Control: no-cache
Connection: close
Date: Thu, 12 Feb 2009 20:03:46 GMT
Accept-Ranges: bytes
ETag: W/"c6b3f4ff4c8dc91:23a"
Server: Microsoft-IIS/6.0
Content-Length: 77562
Content-Location: http://www.idnes.cz/sph.htm
Content-Type: text/html
Last-Modified: Thu, 12 Feb 2009 20:03:40 GMT
Client-Date: Thu, 12 Feb 2009 20:03:46 GMT
Client-Peer: 194.79.52.192:80
Client-Response-Num: 1
X-Powered-By: ASP.NET

Call to undefined function load_config() – squirrelmail-1.4.8-5.el4.centos.3

During one of my squirrelmail upgrades I have discovered strange behavior. Users were able to login, but only blank page had appeared. I have found this in log:

[Mon Feb 09 18:29:10 2009] [error] [client 89.103.46.115] PHP Fatal error:  Call to undefined function load_config() in /usr/share/squirrelmail/plugins/change_sqlpass/functions.php
on line 326, referer: http://blabla.blabla.tld/src/login.php

change_sqlpass pluging needs compatibility plugin to run. So here is the patch:

--- ../../functions/strings.php.orig    2006-08-11 04:15:43.000000000 -0700
+++ ../../functions/strings.php 2006-09-01 06:11:03.000000000 -0700
@@ -31,6 +31,7 @@
* For that reason, bring in global.php AFTER we define the version strings.
*/
require_once(SM_PATH . 'functions/global.php');
+include_once(SM_PATH . 'plugins/compatibility/functions.php');

/**
* Wraps text at $wrap characters