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 04-25-2004   #1 (permalink)
tlouden
Registered Member
 
tlouden's Avatar
 
Join Date: Apr 2004
Posts: 5
Connecting to a network

Does anyone have information on how to actually connect to a wireless network through code? I'm trying to setup a program that compares the SSID/BSSID against a safe-list (networks I'm allowed to use) and the picks the one with highest SNR OR simply monitors all that it can connect to. The only problem that I'm having is that I can't for the life of me figure out how to connect to a network or change networks . Any help is appreciated.
tlouden is offline   Reply With Quote
Old 04-25-2004   #2 (permalink)
King_Ice_Flash
Alien Paranoid Stumbler
 
King_Ice_Flash's Avatar
 
Join Date: May 2003
Location: WI
Posts: 2,625
With linux this would be easy, however with windows, this may be a problem I don't know how to solve.
__________________
"Yeah," said a voice from under the table, "you go to pieces so fast people get hit by the shrapnel."
King_Ice_Flash is offline   Reply With Quote
Old 04-25-2004   #3 (permalink)
tlouden
Registered Member
 
tlouden's Avatar
 
Join Date: Apr 2004
Posts: 5
and so you see my problem, there must be a way to do this useing the GetObject function in vbscript but I'm stuck there. This page might help someone more knowledgable than me to create a solution
__________________
-
TSL

Last edited by tlouden : 04-25-2004 at 09:30 AM.
tlouden is offline   Reply With Quote
Old 04-25-2004   #4 (permalink)
Kazig
Ruwach ra'
 
Kazig's Avatar
 
Join Date: Sep 2003
Location: Southeast Michigan
Posts: 73
Quote:
Originally Posted by tlouden
The only problem that I'm having is that I can't for the life of me figure out how to connect to a network or change networks . Any help is appreciated.

All this can be done with WMI scripting, but remember that NS is not designed to be run while you are connected to a network, you will be disconnected.
__________________
Never Argue With An Idiot. He'll Drag You Down To His Level And Then Beat You With Experience.
Kazig is offline   Reply With Quote
Old 04-25-2004   #5 (permalink)
tlouden
Registered Member
 
tlouden's Avatar
 
Join Date: Apr 2004
Posts: 5
I'm starting to see the WMI with NDIS is the answer but if anyone has some experience with it I'm still working on figuring out how to use WMI
__________________
-
TSL
tlouden is offline   Reply With Quote
Old 07-21-2004   #6 (permalink)
JadePaladin
Registered Member
 
Join Date: Jul 2004
Posts: 1
Good day. I too am looking to restrict user's choices of networks. I have code that displays the available networks, but I do not know how to connect. Any answers?
JadePaladin is offline   Reply With Quote
Old 07-21-2004   #7 (permalink)
tlouden
Registered Member
 
tlouden's Avatar
 
Join Date: Apr 2004
Posts: 5
wmi

goto msdn.microsoft.com and lookup wmi
using this with vb script can do most of the work for you but you may still need to use the command line interface to the device manager to restart the network card (you can look this up at the web site as well) I'll post a script went I have it working but it might take a while so just make sure you're subscribed to this thread
__________________
-
TSL
tlouden is offline   Reply With Quote
Old 10-29-2004   #8 (permalink)
Grayscale
Registered Member
 
Join Date: Aug 2004
Posts: 1
ever get anything figured out?
Grayscale is offline   Reply With Quote
Old 11-02-2004   #9 (permalink)
mihe
Registered Member
 
Join Date: Oct 2004
Posts: 1
Not possible

Is not possible, yet, to set a SSID and connect to a wireless network using WMI.

Only is possible obtain information, but itīs not possible set.

However, in this forum, you can find a great PDF from shmoocon, talking about a windows xp version of linux iwconfig.

In first time, they started to build this implementation in VBs (& WMI), but the final implementation is C#

Iīve put post in MSDN subscribers forums, mail lists, and other VBS guru forums without results.

In digest, the best method to implement this, is adjunt to your script the .exe bin of windows xp iwconfig and call from your VBs script.

Best Regards !!!!
mihe is offline   Reply With Quote
Old 01-15-2005   #10 (permalink)
vultuk
Registered Member
 
Join Date: Jan 2005
Posts: 1
Thumbs up

While not being possible to connect using the same WIFI card as well as using netstumbler it is possible to have one card scanning and one card connected, so if you get an extra card it should be possible by scanning with one card once a network is found, check if connection is allowed and connect using the other network card!
vultuk is offline   Reply With Quote
Old 01-15-2005   #11 (permalink)
streaker69
Psychic Amish Stumbler
 
streaker69's Avatar
 
Join Date: Jul 2004
Location: Virginville, BlueBall, Bird In Hand, Intercourse, Paradise, PA
Posts: 11,708
Quote:
Originally Posted by vultuk
While not being possible to connect using the same WIFI card as well as using netstumbler it is possible to have one card scanning and one card connected, so if you get an extra card it should be possible by scanning with one card once a network is found, check if connection is allowed and connect using the other network card!
And exactly how would you 'check' to see if you're allowed to connect?

Just curious.
__________________
"One of these days, I'm going to cut you to pieces."

If you're offended by this post, please feel free to report it to one of the many helpful moderators of this forum.

Thank you.
streaker69 is offline   Reply With Quote
Old 02-22-2005   #12 (permalink)
BobTheCoward
Registered Member
 
Join Date: Feb 2005
Posts: 1
I would try NETSH. (Net Scripting Host).

Go to a command prompt and type NETSH /?

It works much like the CLI on Cisco routers...not quite identical, but if you're familiar with the CISCO command set, it'll make a lot of sense.

Not sure how much of a wireless connection can be configured, but I'll tinker with it after work tonite. I think it'll mostly handle the Network Layer config, and since wireless is Data Link it probably will only be useful for the IP stuff.

Ping me in case I forget to post results.
BobTheCoward is offline   Reply With Quote
Old 02-22-2005   #13 (permalink)
icefreez
Banned
 
Join Date: Dec 2004
Location: South Dakota
Posts: 32
With my card I can be connected to my network and scann for networks at the same time...

When I first started using netstumbler I had troubles with my card so I just unchecked the reconfigure card opion and now I can be connected while scanning. Although this does not work 100%, occationally while messing around in Netstumbler when connected to my network, I would lose connection then get reconnected.

I have a broadcom wireless card.
icefreez is offline   Reply With Quote
Old 02-22-2005   #14 (permalink)
wrzwaldo
I amuse you?
 
Join Date: Dec 2003
Posts: 9,127
Quote:
Originally Posted by icefreez
With my card I can be connected to my network and scann for networks at the same time...

When I first started using netstumbler I had troubles with my card so I just unchecked the reconfigure card opion and now I can be connected while scanning. Although this does not work 100%, occationally while messing around in Netstumbler when connected to my network, I would lose connection then get reconnected.

I have a broadcom wireless card.

Which is really nice if your network is in an RV and you are on the road!

WTF does this have to do with scripts?
wrzwaldo is offline   Reply With Quote
Old 02-22-2005   #15 (permalink)
icefreez
Banned
 
Join Date: Dec 2004
Location: South Dakota
Posts: 32
Quote:
Originally Posted by wrzwaldo
Which is really nice if your network is in an RV and you are on the road!

WTF does this have to do with scripts?
Well tlouden was trying to stay connected to an SSID while scanning though a script. I thought I would let him know a possible alternative.

So meeeh to you
icefreez 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:43 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.