Results 1 to 7 of 7

Thread: Wardriving

  1. #1
    QCar Creator Jirka Jirout's Avatar
    Join Date
    Jul 2005
    Location
    Netherlands
    Posts
    590

    Wardriving

    I have just added basic functions for wardriving into my software, but I am not sure how exactly it is supposed to work.

    I refresh the network list in pre-defined interval. I retrieve the network name, channel, signal level etc. The question is whether I should log the information every time I refresh the list or whether I should only log every network once (when it is detected). The first approach would produce much more data, but it could allow me to guess the location of the network with some precision (by looking at signal level at different GPS positions).

  2. #2
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,364
    Blog Entries
    2
    How about logging the information, then replacing that information if it detects a stronger signal? That way, the strongest signal and location would be logged but less data would be collected.
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

  3. #3
    AMP Creator aychamo's Avatar
    Join Date
    Jun 2006
    Posts
    505
    Well, I suppose I would use the MAC address as the "key" lookup information, and then store the signal strength and the latitude/longitude. When the wardriver would connect to a network, it would lookup the MAC address and see what the current signal strength and the one stored in the database, and if the current signal strenght was stronger, for the same MAC address, then I would write the new signal strenght into the database and store the latitude/longitude, etc.

    I straight up wouldn't know how to do it the other way you are talking about, Jirka.
    -

  4. #4
    QCar Creator Jirka Jirout's Avatar
    Join Date
    Jul 2005
    Location
    Netherlands
    Posts
    590
    Quote Originally Posted by aychamo View Post
    When the wardriver would connect to a network, it would lookup the MAC address...
    The module does not connect to the networks at all for two main reasons:

    1. it is not needed (check WirelessScanSplit() function in 80211.h)
    2. it might be illegal in some countries to connect to a network without its owner. The way my module works, I only collect publicly broadcasted info (SSID, MAC Address etc.)

    the code looks like this:
    Code:
    -(void)getNetworks:(NSTimer*)timer {    
        NSArray *list1 = [NSArray array];
        NSArray *list2 = [NSArray array];
        
        int i;
        WirelessNetworkInfo *data;
        WIErr result;
        NSMutableArray *newNetworks = [NSMutableArray array];
        
        result = WirelessScanSplit(wiContext, &list1, &list2, 0);
        
    // we have to test this, because if no network is available, the WirelessScanSplit
    // returns NULL instead of an empty valid array. This does not allow us to just run
    // scan thru the array.
    //
    // Strangely if only one list (managed or ad-hoc) is empty, valid list is
    // returned above :-O
    
    
    if (list1&&list2){
    	for(i=0; i < CFArrayGetCount(list1); i++) {
    	    data = (WirelessNetworkInfo *)CFDataGetBytePtr(CFArrayGetValueAtIndex(list1, i)); // More error checking needed
    	    id netRecord = [self makeRecord:data withType:@"Managed" withVendor: [self vendorCheck:(char *)&(data->macAddress)]];
    	    [newNetworks addObject: netRecord];
    	}
    	
    	for(i=0; i < CFArrayGetCount(list2); i++) {
    	    data = (WirelessNetworkInfo *)CFDataGetBytePtr(CFArrayGetValueAtIndex(list2, i)); // More error checking needed
    	    id netRecord = [self makeRecord:data withType:@"Ad-hoc" withVendor: [self vendorCheck:(char *)&(data->macAddress)]];
    	    [newNetworks addObject: netRecord];
    	}
    	
    	[networks autorelease];
    	networks = [newNetworks retain];
    	
    	[networksTable reloadData];
        }
        [self performSelector:_cmd withObject:self afterDelay:[module refreshInterval]]; // Make configurable!!!
    }

  5. #5
    AMP Creator aychamo's Avatar
    Join Date
    Jun 2006
    Posts
    505
    You don't provide any functionality to connect to the networks you detect? Are you just gathering info for the fun of it? Are you saving the GPS coordinates also?
    -

  6. #6
    QCar Creator Jirka Jirout's Avatar
    Join Date
    Jul 2005
    Location
    Netherlands
    Posts
    590
    Quote Originally Posted by aychamo View Post
    You don't provide any functionality to connect to the networks you detect?
    Yes, I do, but the software does not do it automatically. It needs to be done manually and it is up to the user, whether he wants or does not want to do that. To join a network, you click on the slot with airport module and then select a network to join in a list that appears.

    Are you just gathering info for the fun of it? Are you saving the GPS coordinates also?
    Yes, it is more or less for fun, since I am usually not in range of a network long enough to do something useful. I only use the WiFi internet connection at some Shell gas stations to retrieve mail and sometimes at home to sync smaller amounts of data.

    And Yes, I do save GPS coordinates for each scan (the interval between scans is configurable, usually set to 5 seconds).
    Attached Images Attached Images  

  7. #7
    Newbie
    Join Date
    Mar 2006
    Posts
    26
    can i have a download for it

Similar Threads

  1. Better solution for internet - Wardriving or Celular service?
    By J187 in forum Wireless Communications
    Replies: 14
    Last Post: 06-07-2005, 02:35 PM
  2. Wardriving :)
    By Yuriy in forum Wireless Communications
    Replies: 17
    Last Post: 03-27-2005, 08:33 PM
  3. Athlon Or Pentium ?? DVD, Navigation, GPS, Wardriving, MP3's... Fast boot
    By Cruznlife1 in forum General Hardware Discussion
    Replies: 6
    Last Post: 09-19-2004, 06:08 AM
  4. wardriving antenna
    By wizardPC in forum General Hardware Discussion
    Replies: 26
    Last Post: 01-19-2004, 11:25 PM
  5. Wifi chipsets and wardriving
    By MP3DUB in forum General Hardware Discussion
    Replies: 13
    Last Post: 03-09-2003, 05:44 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •