NetStumbler.org Forums

Go Back   NetStumbler.org Forums > NetStumbler Community > Scripts
Register Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old 03-03-2004   #1 (permalink)
nikolatesla20
Registered Member
 
Join Date: Feb 2004
Posts: 27
New Tool: StumblerX, OnScanResult() can work for you!

My new tool, StumblerX - Windows 2000/XP only!
--------------------------------------------------------
What is StumblerX?

IT'S AN OnScanResult() IMPLEMENTATION ENGINE !!

It's a program that hooks into the live data from Network Stumbler, and runs an external VBScript you choose, passing the new data to the script. It runs real-time. In other words, it is an external implementation of OnScanResult(). It runs a script whenever Network Stumbler finds a new access point.

Features:

Grabs data from the currently active Network Stumbler collection window.

Buffers data collection/script execution. Even if your script takes a while to run, StumblerX will buffer the new data that comes in. It feeds your script as fast as your script will take the new data.

Data accuracy. StumblerX keeps track of new MAC's and makes sure not to enter any access point twice.

Only supports VBScript at this time.
--------------------------------------------------------

This is my first release of StumblerX. I tested it on my laptop with Windows XP and the latest Network Stumbler and it works well. Report any bugs in this thread.

A small technical note: Don't use Network Stumbler to run a script at the same time as StumberX is running. StumblerX depends on the sound that Network Stumbler plays when it finds a new access point , as its trigger to gather the new data. If you have a script running in Network Stumbler that plays sounds, all heck may break loose. (Usually mainly because I don't know if Network Stumbler will still play the new AP sound).

Download here:

http://webpages.charter.net/nikolatesla20/setup.zip

NOTE: There IS a help file that gets installed with StumblerX that you can check out for more information. There's a shortcut to the help file in the Program menu along with the StumblerX shortcut.


-niko

Last edited by nikolatesla20 : 03-03-2004 at 07:07 PM.
nikolatesla20 is offline   Reply With Quote
Old 03-03-2004   #2 (permalink)
ThreePts
Desert Stumbler
 
ThreePts's Avatar
 
Join Date: Jul 2003
Location: Phoenix, AZ
Posts: 136
ive downloaded and will give it a try next time.. but my question is, what are some of the big benefits of this program. What do you inivsion its uses are. From my understanding, with the sample script it just archives the APs like a summary file would. Great work, keep it up.
ThreePts is offline   Reply With Quote
Old 03-03-2004   #3 (permalink)
nikolatesla20
Registered Member
 
Join Date: Feb 2004
Posts: 27
If you know how to interface with MapPoint 2004 thru its COM automation interface (programmers will know what I am talking about), you could map AP's in real-time, a feature long requested by people on the boards here. The biggest benefit of this is it's real-time data collection. As soon as you get a new AP, your script gets executed.

You could write lots of scripts to take advantage of that. Call batch files, whatever, all upon the instant you detect a new AP.

I would have had a script to demo mapping too but I don't have MapPoint. In fact I have no mapping software yet.

-niko
nikolatesla20 is offline   Reply With Quote
Old 03-03-2004   #4 (permalink)
brendandonhue
Registered Member
 
Join Date: Feb 2004
Posts: 17
I don't understand what its for. First of all, there are already scripts that do live mapping from NetStumbler to MapPoint.
And can't netstumbler's scripting already run an external script when a new AP is found?
brendandonhue is offline   Reply With Quote
Old 03-03-2004   #5 (permalink)
nikolatesla20
Registered Member
 
Join Date: Feb 2004
Posts: 27
Quote:
Originally posted by brendandonhue

And can't netstumbler's scripting already run an external script when a new AP is found? [/b]
Nope. I refer you to thread:

OnScanResult()

I have re-worded my announcement to correctly say that my program does the job of OnScanResult().

-niko
nikolatesla20 is offline   Reply With Quote
Old 03-06-2004   #6 (permalink)
sh00wan
Registered Member
 
Join Date: May 2002
Posts: 2
StumblerX and Signal to Noise

nikolatesla20,

First thanks for your help with my script question the other day that worked great.

I'm using your StumblerX app and I'm finding that it logs everything like you said it would but the one thing I wish it could do is, to continually update the S/N ratio so that when you find an AP it would show the current S/N.. I'm not sure if this is a scripting limitation of netstumbler since I'm new to scripting but not VB.... If you plan on an update could you look at that?? Again thanks in advance

Sh00
sh00wan is offline   Reply With Quote
Old 03-19-2004   #7 (permalink)
digitalchaos
Registered Member
 
Join Date: Mar 2003
Posts: 5
not bad. it takes GPS coordinates in quite well too.
one bug: when 2 APs are detected at the same time only one will be logged.

replicate this by starting netstumbler and closing the current scan.. open stumblerX and run it.. then start a new netstumbler session around several APs that will immedicately detec
digitalchaos is offline   Reply With Quote
Old 10-01-2004   #8 (permalink)
Zharvek
Registered Member
 
Join Date: Nov 2003
Location: Clermont, FL
Posts: 4
The URL is broken... Is there another site I could get it at, im sure your script would fix alot of the problems I am having. Thanks.
Zharvek is offline   Reply With Quote
Old 10-02-2004   #9 (permalink)
Zharvek
Registered Member
 
Join Date: Nov 2003
Location: Clermont, FL
Posts: 4
Unhappy

Does anyone have a copy of this file, or could post a working URL?

Thanks.
Zharvek is offline   Reply With Quote
Old 10-04-2004   #10 (permalink)
goldfndr
Knight Tooth Puller
 
goldfndr's Avatar
 
Join Date: Aug 2004
Location: Bellevue, WA, USA
Posts: 182
While I have no idea where StumblerX can be retrieved, I can tell you:
  • http://webpages.charter.net/nikolatesla20/ does still exist (although setup.zip is missing)
  • As of 0.4.0, OnScanResult is implemented (I have no idea how well but it does get called a lot). Some other scripts around this forum are using it. You could have it call an external routine, e.g. (untested)
    Code:
    Sub OnScanResult(SSID, BSSID, CapFlags, Signal, Noise, LastSeen)
        CreateObject("WScript.Shell").Run "mycmd.exe " & SSID & " " & BSSID & " " & CapFlags & " " & Signal & " " & Noise & " " & LastSeen
    End Sub
goldfndr is offline   Reply With Quote
Old 10-05-2004   #11 (permalink)
Zharvek
Registered Member
 
Join Date: Nov 2003
Location: Clermont, FL
Posts: 4
Post

Yeah, at the moment, my script just uses a fso.OpenTextFile() and writes the lines to the file (Probably not the most efficient way). The problem is that it writes the same AP more then once because Netstumbler feeds data to the script everytime there is a response to its beacon. (Why I wanted this, StumblerX because it claims to never feed the same MAC address).

I've moved on to finding some code (VBScript or VB6) that will open a text file, remove duplicate lines, and then save the file. I have found a sample script around the internet that will do the same, but it also sorts the list, which makes the resulting text file useless for my application (The last seen AP has to be at the bottom of the text file).

I have tried editing the code to remove the sorting option, but no luck thus far. Would posting the sample code help somebody figure out how to make it stop sorting? Thanks.
Zharvek is offline   Reply With Quote
Old 10-05-2004   #12 (permalink)
Zharvek
Registered Member
 
Join Date: Nov 2003
Location: Clermont, FL
Posts: 4
I have found a way to do what I needed.

I have looked through many examples of code to make it...

This will take the file, c:\ap.in and take the duplicates out and write the new file to c:\ap.out .

Code:
sFile ="C:\ap.in"
set oFs = createobject ("Scripting.filesystemobject")
arrLines = Split(oFs.OpenTextfile(sFile).ReadAll,vbcrlf)
for i=0 to Ubound(arrLines)-1
if len(arrLines(i)) then
for j=i+1 to Ubound(arrLines)
if arrLines(j)=arrLines(i) then arrLines(j) = ""
Next
strNew = strNew & arrLines(i) & vbCrLf
End If
next
oFs.OpenTextfile("c:\ap.out",2,-1,-2).Write strNew
Zharvek is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Google
 
Web NetStumbler.org

All times are GMT -7. The time now is 08:03 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 ©2007, Crawlability, Inc.


All messages express the views of the author and are for entertainment purposes only. Netstumbler.org cannot be held responsible for the authenticity of the content or the actions of its members. By using this site and its services, you warrant that you will not post any messages that are discriminating, obscene, hateful, threatening, or otherwise violates any laws and you release Netstumbler.org from any future claims of any kind whatsoever including, but not limited to, addiction and loss of productivity. All forum messages, private messages and any other content are properties of Netstumbler.org. Even if publicly available, personal or copyrighted information are not to be posted without the consent of the owner. Distribution of licensed and copyrighted materials in any way not endorsed by the copyright owner is strictly prohibited. You may not use this site and its resources to spam other sites or individuals or perform any action that violates any law. Items sold or bought in the For Sale forum are sold as is and no warranty or insurance of any kind is provided. Netstumbler.org cannot be held responsible for the outcome of any transactions and no warranty of any kind is provided, either express or implied. Vulgar words are not allowed in the subject lines ; they may be used in the message body in any forum. The Administrator, Super Moderators and Moderators of Netstumbler.org have the right to remove, edit, move or close any thread for any reason and to reveal your identity and other known information in the event of a complaint or legal action arising from any message posted by you.