z0mbix
September 14th, 2006, 08:26
I'm scanning my servers to see what info they give out. I've managed to minimise what Apache can give out with the ServerTokens Prod directive, but I'd really like to stop mysql giving out the version too. I just can't seem to find out how this is done.
-zombie@puffix (~) $ sudo nmap -A -sS X.X.X.X
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2006-09-14 14:01 BST
Interesting ports on X.X.X.X:
Not shown: 1673 closed ports
PORT STATE SERVICE VERSION
21/tcp open ftp ProFTPD
25/tcp open smtp Postfix smtpd
53/tcp open domain
80/tcp open http Apache httpd
199/tcp open smux Linux SNMP multiplexer
443/tcp open ssl/http Apache httpd
3306/tcp open mysql MySQL 4.1.20
MAC Address: XX:XX:XX:XX:XX:XX (Addtron Technology CO.)
Device type: general purpose
Running: Linux 2.4.X|2.5.X|2.6.X
OS details: Linux 2.4.0 - 2.5.20, Linux 2.4.7 - 2.6.11
Service Info: Host: X.X.X.X; OSs: Unix, Linux
Nmap finished: 1 IP address (1 host up) scanned in 16.886 seconds
If I telnet to the port, I can see that it's giving out the version no.:
-zombie@puffix (~) $ telnet X.X.X.X 3306
Trying X.X.X.X...
Connected to X.X.X.X.
Escape character is '^]'.
4
4.1.20v"?Vtf$z,]CvIKyD&1avO
Any ideas?
-zombie@puffix (~) $ sudo nmap -A -sS X.X.X.X
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2006-09-14 14:01 BST
Interesting ports on X.X.X.X:
Not shown: 1673 closed ports
PORT STATE SERVICE VERSION
21/tcp open ftp ProFTPD
25/tcp open smtp Postfix smtpd
53/tcp open domain
80/tcp open http Apache httpd
199/tcp open smux Linux SNMP multiplexer
443/tcp open ssl/http Apache httpd
3306/tcp open mysql MySQL 4.1.20
MAC Address: XX:XX:XX:XX:XX:XX (Addtron Technology CO.)
Device type: general purpose
Running: Linux 2.4.X|2.5.X|2.6.X
OS details: Linux 2.4.0 - 2.5.20, Linux 2.4.7 - 2.6.11
Service Info: Host: X.X.X.X; OSs: Unix, Linux
Nmap finished: 1 IP address (1 host up) scanned in 16.886 seconds
If I telnet to the port, I can see that it's giving out the version no.:
-zombie@puffix (~) $ telnet X.X.X.X 3306
Trying X.X.X.X...
Connected to X.X.X.X.
Escape character is '^]'.
4
4.1.20v"?Vtf$z,]CvIKyD&1avO
Any ideas?