![]() |
|
|||||||
| Register | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Registered Member
Join Date: Sep 2004
Posts: 8
|
Run NS and export sniff output automatically
Hi,
I'm sure this is simple, but I can't seem to find much info (must be my search, though): I want NS to run for a short amount of time, say 20sec, and export the sniffed data to some file. How do I do this? Or could you point me to the right place? Thanks a lot! James |
|
|
|
|
|
#2 (permalink) | |
|
Desert Stumbler
Join Date: Jul 2003
Location: Phoenix, AZ
Posts: 136
|
Quote:
|
|
|
|
|
|
|
#3 (permalink) |
|
Registered Member
Join Date: Sep 2004
Posts: 8
|
Maybe I'm using the word "sniff" incorrectly.
I'm talking about the signal strength, noise, etc, that can be exported into a file... [EDIT] maybe what I want is not really "scripting" per se... maybe what i really want is some sort of CLI command with args... I'm not really sure... Basically, I want to run NS through some scheduled task for it to check signal strengths, etc, for a short period of time, say 20sec. Once that's done, export that to some file of my choice, and the end. Last edited by black02ep3 : 09-16-2004 at 08:16 AM. |
|
|
|
|
|
#6 (permalink) |
|
Did you do the math?
Join Date: Apr 2002
Location: Villa Straylight
Posts: 10,039
|
There is no CLI version of NS. I'd suggest seeing if you could find some timer program that could call NS and then exit after the right amount of time. It would probably need a keyboard macro function to exit NS properly.
The other option would be to write a script and just let NS run. The script would have to run the scan for 20 seconds, and then stops the scan for whatever amount of time, and then repeat.
__________________
Thorn "Lawyers should never marry lawyers. This is called inbreeding. It produces idiot children and more lawyers." |
|
|
|
|
|
#8 (permalink) |
|
I amuse you?
Join Date: Dec 2003
Posts: 9,127
|
Yes there is. I was just looking for it but someone decided they needed me to do some actual work here at work.
Official NetStumbler Scripting Guide Last edited by wrzwaldo : 09-16-2004 at 08:42 AM. |
|
|
|
|
|
#9 (permalink) | |
|
Did you do the math?
Join Date: Apr 2002
Location: Villa Straylight
Posts: 10,039
|
Quote:
![]() (Sign at the local bar: "Work and a wife have lead to the ruin of many a good biker.") black02ep3, in addition to the Scripting Guide, look through the Scripts Forum. There are loads of different scripts in there posted by other members.
__________________
Thorn "Lawyers should never marry lawyers. This is called inbreeding. It produces idiot children and more lawyers." |
|
|
|
|
|
|
#10 (permalink) |
|
Registered Member
Join Date: Sep 2004
Posts: 8
|
Hi,
I checked the scripting guide... but not really understanding how it could help me... I saw onScanComplete and onScanResult, but these are triggered by a user-initiated action... so how do I start and stop a scan?? If what you're suggesting is that I manually start a scan, and then handle data onScanComplete, then how do I produce something similar to the exported scan results? Seems like a lot of people want to export the scan data as well, but I can't seem to find anyone doing that automatically and periodically... |
|
|
|
|
|
#11 (permalink) |
|
Knight Tooth Puller
Join Date: Aug 2004
Location: Bellevue, WA, USA
Posts: 182
|
Here's code to run for 20 seconds. I don't know what particular export you're seeking, but if you can figure out the keystrokes to pass to SendKeys, you'll be golden.
Code:
Option Explicit
const milliseconds=20000
dim WSH
set WSH=WScript.CreateObject("WScript.Shell")
WSH.Run "netstumbler.exe"
WScript.Sleep milliseconds
WSH.AppActivate "Network Stumbler"
WSH.SendKeys "%{F4}" 'Alt+F4 to exit
|
|
|
|
|
|
#13 (permalink) |
|
Registered Member
Join Date: Sep 2004
Posts: 2
|
I've got MiniStumbler installed on an Axim (PPC2003), and I've searched all folders for *.vb* with no luck.
But MiniStumbler mentions it has a default script (which information in another post leads me to believe might be named 'default.vbs'). I not can find that. I understand the idea of scripting, and the details of yours goldfndr, but where should we put the script and what name call it? Thanks. Not quite completely lost. [I asked because 'default script' isn't in the FAQ, but of course, it IS in this 'scripts' forum. <sorry> goldfndr's post autosave? refers to Thorn's Range Sounder where the contents of NS's 'internal' default script are explicitly listed. <sorry>,<sorry>] ![]() Last edited by netzst : 09-17-2004 at 02:04 PM. |
|
|
|
|
|
#14 (permalink) | |
|
Registered Member
Join Date: Nov 2004
Posts: 4
|
I am confused
Quote:
Hey guys.... I am dieing over here. I am trying to learn VBScript. I put this code into it in order to try to see if it would open Netstumbler, but it didnt. So I tried playing around with it and change the path name and such, but of course it didnt. Please Advise. |
|
|
|
|
|
|
#15 (permalink) |
|
Registered Member
Join Date: Nov 2004
Posts: 4
|
What Is Wrong With This Code
<HTML>
<HEAD> <TITLE>Open Netstumbler</TITLE> <SCRIPT LANGUAGE="VBScript"> <!-- Option Explicit dim objShell set objShell=CreateObject("Wscript.Shell") objShell.Run("C:\Program Files\Network Stumbler\netstumbler.exe") --> </SCRIPT> </HEAD> <BODY> </BODY> </HTML> |
|
|
|