![]() |
|
|||||||
| Register | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Registered Member
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. |
|
|
|
|
|
#2 (permalink) |
|
Alien Paranoid Stumbler
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." |
|
|
|
|
|
#3 (permalink) |
|
Registered Member
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. |
|
|
|
|
|
#4 (permalink) | |
|
Ruwach ra'
Join Date: Sep 2003
Location: Southeast Michigan
Posts: 73
|
Quote:
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. |
|
|
|
|
|
|
#7 (permalink) |
|
Registered Member
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 |
|
|
|
|
|
#9 (permalink) |
|
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 !!!! |
|
|
|
|
|
#10 (permalink) |
|
Registered Member
Join Date: Jan 2005
Posts: 1
|
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!
![]() |
|
|
|
|
|
#11 (permalink) | |
|
Psychic Amish Stumbler
Join Date: Jul 2004
Location: Virginville, BlueBall, Bird In Hand, Intercourse, Paradise, PA
Posts: 11,708
|
Quote:
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. |
|
|
|
|
|
|
#12 (permalink) |
|
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. |
|
|
|
|
|
#13 (permalink) |
|
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. |
|
|
|
|
|
#14 (permalink) | |
|
I amuse you?
Join Date: Dec 2003
Posts: 9,127
|
Quote:
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? |
|
|
|
|
|
|
#15 (permalink) | |
|
Banned
Join Date: Dec 2004
Location: South Dakota
Posts: 32
|
Quote:
So meeeh to you ![]() |
|
|
|
|