Finding usernames through iTunes DAAP
Often on our local network, someone will start using up all of our outbound Internet bandwidth, and this leads to the network administrator’s dilemma:
How do we find the user in question so we can thump them on the head to make them stop?
This is a basic exercise in information gathering. For the most part, we’ll have the user’s IP address, and we’re a mac shop with many users running iTunes. If the user is sharing their library, you can use iTunes as a covert means of determining a user’s name, as iTunes will use the local computer’s name as the library name.
Telnet to the machines DAAP port, and issue:
John-adamss-macbook-pro:~ jna$ telnet x.x.x.x 3689 Trying x.x.x.x... Connected to x.x.x.x. Escape character is '^]'. GET /server-info HTTP/1.1 Host: x.x.x.x Client-DAAP-Version: 3.7 User-Agent: iTunes/8.0.2 (Macintosh; N; Intel) Accept-Language: en-us, en;q=0.50 HTTP/1.1 200 OK Date: Tue, 13 Jan 2009 21:26:38 GMT DAAP-Server: iTunes/8.0.2 (Mac OS X) Content-Type: application/x-dmap-tagged Content-Length: 280 msrvmstt?mproaproaeSVaeFPatedmsedmsmlmsmOk?[minmUSER NAME’s LibrarymslrmstmsalmsasmsupmspimsexmsbrmsqymsixmsrsmsdcmstcImmsto???
Other options for this include attempting to sign on to the server with Apple-K if AFP on TCP port 548 is active (which will reveal the computer’s name) and using nmap with service detection to glean information about the host.