Fedora Linux Support Community & Resources Center
  #1  
Old 16th June 2005, 02:30 AM
n3r0 Offline
Registered User
 
Join Date: Jun 2005
Posts: 20
CLI wireless SSID detection

Hello

I am looking for a program like netstumbler for windows but that can be run without GUI. Does such a program exsist? I want to scan for wireless networks in range and then have the option of connecting to them. I can probably figure out how to connect to a network if i have the SSID but where would i get these from?

do i have to install a copy of windows and run net stumbler (lol)

the machine doesnt have Xwindows

thanks
Reply With Quote
  #2  
Old 16th June 2005, 03:22 AM
kg4cbk Offline
Registered User
 
Join Date: Feb 2005
Posts: 675
kismet will do what you are looking for. It also has a gui called gkismet.

Or you can run the following:

iwlist scan

Which will show you available APs in the area.
Reply With Quote
  #3  
Old 16th June 2005, 04:09 PM
n3r0 Offline
Registered User
 
Join Date: Jun 2005
Posts: 20
Code:
lo        Interface doesn't support scanning.

eth0      Interface doesn't support scanning : Operation not supported

eth1      Interface doesn't support scanning.

eth2      Interface doesn't support scanning.

sit0      Interface doesn't support scanning.
eth0 is my wireless card. as you can see it says not supported? whats that about

is it not supported? im pretty sure when the NIC card detects in ifconfig that it becomes supported for every app. do i need some kind of library or osmething? i think the wireless card is a netgear something on a PCMCIA to PCI adapter.

ill try and find kismet and download compile it because there is aparently nothign on up2date
Reply With Quote
  #4  
Old 16th June 2005, 05:17 PM
kg4cbk Offline
Registered User
 
Join Date: Feb 2005
Posts: 675
I assume the command you tried was the iwlist scan command.

What kind of wireless card (chip set) are you using? I suspect you had to use ndiswrapper or possibly driverloader to get it working.

My understanding is that with ndiswrapper there are some features that can not be supported. In particular kismet will not work with such cards. At least it would not a year ago when I installed it on my laptop.

So you may need to get a wireless card that has a native driver. I am using a DWL-G650 which has a prism chip set. The prism54 driver has worked well with that chipset and allows kismet and other tools like ettercap to work with it.

I have not tried installing kismet yet on a new laptop where I had to use driverloader for the Netgear WG511 card which has a marvel chip set. I suspect I will find that kismet will not work with it. However the iwlist scan command does work just fine with it.

You should also check the wireless tools package you have loaded. A newer one may work.
Reply With Quote
  #5  
Old 16th June 2005, 05:27 PM
n3r0 Offline
Registered User
 
Join Date: Jun 2005
Posts: 20
Lol this is why i love linux

Go to download kismet

download. run ./configure and then make. compiler complains becuase i dont have flex installed (wtf?) up2date flex. no match. google flex. find binaries. wget sourcecode. ./configure. make install gives me a nice error.

Code:
yacc -d ./parse.y
make: yacc: Command not found
make: *** [parse.c] Error 127
luxkily i can make some sense of that. yacc must be some sort of program. locate yacc. no match. up2date yacc, no match. google yacc. AH yet another compiler! there we go. but wait. this is only a collection of manuals. hmm. google "yacc download".. hmm more manuals. so i guess if i was interested in the theory of yacc these google searches would be sweet. unfortuantely i onyl want the source.

google yacc source. 5 pages in not direct download from ftp or http. *sigh*
google error message from the script!

no match
hmmm says i. hmm.. going through google postings i see it also goes by the name of byacc. up2date byacc. oooo a match!. make install. SUCCESS!

so there you have it my little story of getting something to work in linux, why dont apps come with all their related files? the mind wonders.

*EDIT*

Aparently i spoke too soon.

Code:
configure: WARNING: don't have both flex and bison; reverting to lex/yacc
checking for capable lex... insufficient
configure: error: Your operating system's lex is insufficient to compile
 libpcap.  flex is a lex replacement that has many advantages, including
 being able to compile libpcap.  For more information, see
 http://www.gnu.org/software/flex/flex.html .
configure: error: /bin/sh './configure' failed for libpcap-0.8.3
GREAT but see i just installed flex. damnit

Last edited by n3r0; 16th June 2005 at 05:29 PM. Reason: correction
Reply With Quote
  #6  
Old 16th June 2005, 05:31 PM
bitrain Offline
Registered User
 
Join Date: Nov 2004
Location: Netherlands
Age: 27
Posts: 1,426
Quote:
locate yacc
....
/usr/bin/yacc
....
That is what I got.

Edit: is that new thing you installed in your path? Just type flex at the commandline and see what it does, maybe switching to root with su - (with a dash) helps.
__________________
Registered Linux user number 389291

Laptop: Nec Versa p550, Pentium M 1.86GHz, 1024MB ram, x300, 80 GB HD, bluetooth, 2915BG Wlan card
Desktop: Amd Athlon x2 4200+, 2GB ram, Geforce 7300GT 512MB silent, 160GB HD in a nice centurion 534 case :cool:

Last edited by bitrain; 16th June 2005 at 05:33 PM.
Reply With Quote
  #7  
Old 16th June 2005, 05:37 PM
n3r0 Offline
Registered User
 
Join Date: Jun 2005
Posts: 20
actually i got it bu up2date bison and up2date libpcap

so now it compiles.

what ho? i guess wireless isnt turned on by default in the kernel.
yay
Code:
Configuration complete:
         Compiling for: linux-gnu (i686)
   Installing as group: root
    Man pages owned by: man
       Installing into: /usr/local
        Setuid capable: yes
         Zaurus extras: no
      Terminal Control: ncurses
      Curses interface: yes
      Panels interface: yes
 Linux Netlink capture: no
       Linux wireless : no
 Linux wireless v.22+ : no
          pcap capture: yes
           pcap source: libpcap-0.8.3
        WSP100 capture: no
          Viha capture: no
      Radiotap headers: no
 Using local dump code: yes
Using ethereal wiretap: no
   Imagemagick support: no
         Expat Library: no
           GMP Library: no
       PThread Support: yes
      libz compression: no
*** WARNING ***
Linux Wireless Extentions were not found.  This means that they are not
turned on in your kernel or that your kernel source include paths on your
distribution are broken (namely, that linux/wireless.h didn't exist or
was unuseable).  Without wireless extentions, most of the commonly used
packet sources (such as Cisco, Orinoco, Madwifi, Prism54, and others)
WILL NOT BE BUILT.
*** WARNING ***
how can it even detect my nic if wireless isnt turned on? also, how do i turn it on? im usign FC3.
Reply With Quote
  #8  
Old 16th June 2005, 07:01 PM
kg4cbk Offline
Registered User
 
Join Date: Feb 2005
Posts: 675
What kernel are you running? Sounds like you don't have some of the development packages installed. I recently installed FC3 on a new laptop and have flex-2.5.4a-33 installed. And byacc-1.9-28 as well as libpcap-0.8.3-7.

Do you have the wireless-tools package installed?

And if you could not find those packages via up2date or yum you should check your repository list.
Reply With Quote
  #9  
Old 16th June 2005, 07:36 PM
n3r0 Offline
Registered User
 
Join Date: Jun 2005
Posts: 20
2.6.11-1.27_FC3 #1 Tue May 17 20:27:37 EDT 2005 i686 i686 i386 GNU/Linux

and yeah all those packages are installed.

up2date wireless-tools reports:

The following packages you requested are already updated:
wireless-tools
Reply With Quote
  #10  
Old 16th June 2005, 08:54 PM
kg4cbk Offline
Registered User
 
Join Date: Feb 2005
Posts: 675
OK, have the solution for you right here!

Run the following command in the build directory:

./configure --with-linuxheaders=/lib/modules/2.6.11-1.27_FC3/build

This will point the configure script to the right set of include files which has the wireless.h include.

That should get you to the point you can run:

make dep
make
make install
Reply With Quote
  #11  
Old 16th June 2005, 10:25 PM
n3r0 Offline
Registered User
 
Join Date: Jun 2005
Posts: 20
ooo so close. no error on ./configure but now i get

Code:
[root@northstar kismet-2005-04-R1]# make
g++ -I/lib/modules/2.6.11-1.27_FC3/build -Ilibpcap-0.8.3 -O2 -Wall -DVERSION_MAJOR=\"2005\" -DVERSION_MINOR=\"04\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\"  -g -O2 -c util.cc -o util.o
/bin/sh: g++: command not found
make: *** [util.o] Error 127
perhaps i need g++ ? i found some source code here

http://www.jcu.edu.au/docs/gnu/g++FAQ.html#SEC8

ill try installing that and let you know. so this is the dependancy hell they keep talking about olo
Reply With Quote
  #12  
Old 17th June 2005, 12:00 AM
kg4cbk Offline
Registered User
 
Join Date: Feb 2005
Posts: 675
You need to go back and install the development tool sets from the CDs or pull them from yum. There are prepackaged RPMs that will install all of this for you.

I just built kismet on a fairly new install of FC3 and just had to sort out the configure option I listed above.
Reply With Quote
Reply

Tags
cli, detection, ssid, wireless

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Eeebox Wireless SSID Cannot set likeant Hardware & Laptops 1 5th January 2010 02:03 PM
wireless channel detection? Hud Servers & Networking 9 26th December 2008 09:34 PM
wireless network detection? hippieh8er Using Fedora 4 24th July 2006 03:14 PM
Detection of wireless card Dwellerofholes Hardware & Laptops 2 5th July 2006 09:56 PM


Current GMT-time: 21:16 (Wednesday, 30-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat