It is currently Sun Dec 17, 2017 10:08 am Advanced search

[DONE] NetBIOS reverse lookup

Here you could request a feature you would like to see in WifiKill

[DONE] NetBIOS reverse lookup

Postby shirioko » Thu Jun 28, 2012 6:52 pm

Hi all,

yesterday I installed WiFi Kill on my device for the first time, and I was amazed by its features :) although it is a bit buggy on my device (HTC Evo 3D GSM)

One of the things that I really missed to use this app to its full potential is automatic hostname resolving. Just having a list of MAC and IP addresses isn't that practical.

I was looking around for a way to resolve hostnames of machines running Windows, and I stumbled upon a library called jcifs. With that library I managed to resolve all of the hosts. Here is the method that I used in my test project:

Code: Select all
private static String resolve(String IPaddr)
{
    try
    {
       IPaddr = UniAddress.getByName(IPaddr).getHostName();
    }catch(Exception e)
    { }
   return IPaddr;
}


you need the jcifs-1.2.25.jar file which you can download from http://jcifs.samba.org/src/
(you need the older version since the newer versions have this feature disabled because it was deemed "unreliable". But hey, it's better than nothing!)

I think this is mostly useful when joining new networks, or when new devices join your network.

resolving in action in my test app:
Image
NOTE: MAX-ASUS is displayed twice in the list. That's not a bug, my laptop was connected to both LAN and WLAN at that time :P

This currently only works for Windows machines, but I'll try to find methods to identify other platforms.

Could you please give this a shot? :)
shirioko
 
Posts: 1
Joined: Thu Jun 28, 2012 6:14 pm


Re: NetBIOS reverse lookup

Postby ponury » Fri Jun 29, 2012 3:48 pm

Ill look at it.
User avatar
ponury
 
Posts: 1199
Joined: Fri Sep 23, 2011 11:19 pm
Location: Poland

Re: NetBIOS reverse lookup

Postby syto203 » Mon Jan 07, 2013 1:17 am

i second that
syto203
 
Posts: 2
Joined: Sun Dec 16, 2012 2:32 pm

Re: NetBIOS reverse lookup

Postby ponury » Mon Jan 07, 2013 6:41 am

syto203 wrote:i second that

I've implemented this in newest version (paid version only)
User avatar
ponury
 
Posts: 1199
Joined: Fri Sep 23, 2011 11:19 pm
Location: Poland


Return to Requests



Who is online

Users browsing this forum: No registered users and 1 guest