On 02/15/11 13:24, Dmitrij D. Czarkoff wrote:
On Tue, Feb 15, 2011 at 01:19:32PM -0500, Sean Howard wrote:
To get the security type, ask the person who is giving you the key
generally works.
Not in my country. The person who is giving the key just knows the name of the
network and the key. Any detailed question makes such person go sway to find
some help and return 15 minutes later saying that nobody knows what am I
asking about.
So, is there any TECHNICAL way to find out encryption settings of a given
network?
Maybe it's cheating to run OpenBSD on both sides but here's what I get.
NOTE: I'm pretty distrustful of wifi networks so I have *not* tested
this with any other wifi networks.
AP is a ral0 in my workstation at work:
jross@slony:/home/jross $ cat /etc/hostname.ral0
inet 172.31.16.1 255.255.255.0 NONE media autoselect \
mediaopt hostap nwid WCAA wpakey "WY Children's Action Alliance" \
chan 1
My little Acer netbook has an iwn. Here's what I get when I scan for
wifi networks:
jross@acer:/home/jross $ sudo ifconfig iwn0 scan
iwn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:21:5c:73:da:af
priority: 4
groups: wlan
media: IEEE802.11 autoselect (DS1 mode 11g)
status: active
ieee80211: nwid WCAA chan 1 bssid 00:11:50:63:33:f2 216dB
wpakey
0xecef1946509dd46ad0144a25dceb70286337096f71b2045793ff05c9871bbf8b
wpaprotos wpa1,wpa2 wpaakms psk wpaciphers tkip,ccmp wpagroupcipher tkip
I'm in the basement so it's no wonder there are no other networks to be
seen.
Then I make an /etc/hostname.iwn0 file, cutting and pasting the key from
the scan into the file:
dhcp NONE NONE NONE nwid WCAA \
wpakey \
0xecef1946509dd46ad0144a25dceb70286337096f71b2045793ff05c9871bbf8b \
wpaprotos wpa1,wpa2
and run /etc/netstart
jross@acer:/home/jross $ sudo sh /etc/netstart
ale0: no link ............. sleeping
22511
0
svscan already running!
checking for modem
starting wifi connection
DHCPREQUEST on iwn0 to 255.255.255.255 port 67
DHCPACK from 172.31.16.1 (00:11:50:63:33:f2)
bound to 172.31.16.100 -- renewal in 21600 seconds.
(The bit about checking for modem and starting wifi connection are to
first look for my Virgin Mobile broadband modem and if it is plugged in,
use it and if it isn't found, fire up the wifi.)
Jeff