Link to home
Start Free TrialLog in
Avatar of sexyrexy
sexyrexy

asked on

Sniff mysql instances on the network

I am writing a setup wizard for an application that requires a database... right now it supports MSSQL 2000/2005 and MySQL 4 and 5. One of the requirements of the wizard is that it detect any servers running on the network (provided they are on a standard port and open to connections of course).

I can do this with MSSQL by broadcasting a UDP packet on 1434 and all servers will respond with basic info like name and version, but I have no idea how to do something similar with MySQL. So... how is it done?
Avatar of Raynard7
Raynard7

Hi,

If you are sniffing port 3306 you may be able to try to logon with a blank username and password - and record the error message, if mysql is in it then there is a mysql server on that connection

a C++ implementation of this is located at

http://www.securiteam.com/tools/6Y00L0U5PC.html
Avatar of sexyrexy

ASKER

That is impractical for this situation. I need something that will just *broadcast* to the network and wait for replies, not send a logon attempt to every address on the network.
ASKER CERTIFIED SOLUTION
Avatar of Raynard7
Raynard7

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial