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 09-16-2004   #1 (permalink)
black02ep3
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
black02ep3 is offline   Reply With Quote
Old 09-16-2004   #2 (permalink)
ThreePts
Desert Stumbler
 
ThreePts's Avatar
 
Join Date: Jul 2003
Location: Phoenix, AZ
Posts: 136
Quote:
Originally Posted by black02ep3
Hi,
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?
Sniffed data? NS is not a network sniffer.
ThreePts is offline   Reply With Quote
Old 09-16-2004   #3 (permalink)
black02ep3
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.
black02ep3 is offline   Reply With Quote
Old 09-16-2004   #4 (permalink)
wrzwaldo
I amuse you?
 
Join Date: Dec 2003
Posts: 9,127
Quote:
Originally Posted by black02ep3
Maybe I'm using the word "sniff" incorrectly.

I'm talking about the signal strength, noise, etc, that can be exported into a file...
You mean other than the ns1 file? Like into a database?
wrzwaldo is offline   Reply With Quote
Old 09-16-2004   #5 (permalink)
black02ep3
Registered Member
 
Join Date: Sep 2004
Posts: 8
sorry, I edited my post right after you sent your reply.

I meant exactly the ns1 file, but I want to do it without going through GUI.
black02ep3 is offline   Reply With Quote
Old 09-16-2004   #6 (permalink)
Thorn
Did you do the math?
 
Thorn's Avatar
 
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."
Thorn is offline   Reply With Quote
Old 09-16-2004   #7 (permalink)
black02ep3
Registered Member
 
Join Date: Sep 2004
Posts: 8
Sounds good.

For the second option, is there some sort of a sample script available somewhere? (I am *absolutely* new at this)

Thank you very much,

James
black02ep3 is offline   Reply With Quote
Old 09-16-2004   #8 (permalink)
wrzwaldo
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.
wrzwaldo is offline   Reply With Quote
Old 09-16-2004   #9 (permalink)
Thorn
Did you do the math?
 
Thorn's Avatar
 
Join Date: Apr 2002
Location: Villa Straylight
Posts: 10,039
Quote:
Originally Posted by wrzwaldo
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
I hate when work interferes with my life.

(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."
Thorn is offline   Reply With Quote
Old 09-16-2004   #10 (permalink)
black02ep3
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...
black02ep3 is offline   Reply With Quote
Old 09-16-2004   #11 (permalink)
goldfndr
Knight Tooth Puller
 
goldfndr's Avatar
 
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
goldfndr is offline   Reply With Quote
Old 09-17-2004   #12 (permalink)
black02ep3
Registered Member
 
Join Date: Sep 2004
Posts: 8
Beatiful! I'll give it a try and go from there!

Thanks a lot!!
black02ep3 is offline   Reply With Quote
Old 09-17-2004   #13 (permalink)
netzst
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.
netzst is offline   Reply With Quote
Old 11-28-2004   #14 (permalink)
Xavier00
Registered Member
 
Join Date: Nov 2004
Posts: 4
I am confused

Quote:
Originally Posted by goldfndr
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

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.
Xavier00 is offline   Reply With Quote
Old 11-28-2004   #15 (permalink)
Xavier00
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>
Xavier00 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 04:37 AM.


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.