OESF Portables Forum

Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => C1000/3x00 General discussions => Topic started by: Tomoe on November 02, 2005, 11:34:27 am

Title: Wellenreiter And Kismet On Cacko
Post by: Tomoe on November 02, 2005, 11:34:27 am
This is a small instructional I slapped up couple minutes ago for TsingTao when he asked me how did I get these two running; pardon the grammar mistakes and such, English is not my native language and it's rather late here.

-----

About Wellenreiter, I installed the files from the alternative cacko feed ( http://web.mol.ru/~zaurus/feed/ (http://web.mol.ru/~zaurus/feed/) - libpcap, libopie1, libopie2, wellenreiter - install them in this order), at first I got some grays too because it didn't work, I clicked on Autodetect in settings, then checked if the driver name is correct, and there it was, hostap, and everything should work, but it didn't.
The thing was, after 20-some tries without any success I noticed the 'Name' selection box in Wellenreiter configuration, it defaults to wifi0 and it should be wlan0, I changed that and voila! it works. So, first you click on Autodetect, and then switch from wifi0 to wlan0 in Interface box.

About kismet, it is a bit more work. First, make sure you installed libpcap, kismet and kismet-qt from the cacko feed, then:
In the network app create a new service, call it anything you wish, on the config tab untick the 'Non-Spec ESS-ID' and enter 'any' as SSID. Switch the network type from Infrastructure to Ad-hoc and on the TCP/IP tab untick the box for automatic address assignment, then enter this: IP – 10.1.0.2 Mask - 255.0.0.0 Gateway 10.1.0.1
Also, untick the 'Autodetect nameservers' on the DNS tab and enter 10.1.0.1 in the first box.
Now, open /opt/QtPalmtop/etc/kismet/kismet.conf with your favourite editor =) and then find the 'source=blablabla' line (almost on the beginning). Change it to match your card (in my case it looks like this:
source=hostap,wlan0,hostap
first one is the driver name (write it according to your card or according to what Wellenreiter had autodetected) and the second one is the interface name, be sure to change the interface name to wlan0 since the default is 'eth0', not much sense in leaving that right? The third part is name and you can put anything.
Now, scroll down, somewhere at 1/3 of the file there's a line 'gps=true', comment it down (put # in front of it). Save the file.

Connect to the network (dummy network) we configured on the beginning, then open a terminal (don't run the icon for kismet, fails for me too) and enter 'sudo kismet'. It should work. If it acts weird, try entering these two lines:
cardctl eject
cardctl insert
before starting up the network and running 'sudo kismet' (try the same with Wellenreiter if it fails too).


BTW, anyone knows how to get Kismet to display colors, AND the full lines (frames)? When I put TERM=vt100, color is not supported, when I put TERM=linux, lines do now show up correctly, and I'm not too sure if there's color, either.
Title: Wellenreiter And Kismet On Cacko
Post by: GadgetGuy on November 02, 2005, 11:55:21 am
I just installed kismet (with the required libraries), and it worked after changing the config file ( source=hostap,wlan0,Wireless).

There was no need to create any network profile, and there is no need to connect to any network.

I just launch kismet and it works.
Title: Wellenreiter And Kismet On Cacko
Post by: rebski on November 02, 2005, 02:15:35 pm
Thanks for posting this, Kismet is just too hard (though it worked perfectly on my 5500) however Wellenreiter is fab.

Good result!
Title: Wellenreiter And Kismet On Cacko
Post by: maslovsky on November 02, 2005, 03:12:23 pm
I will update kismet package to reflect wireless interface name in 1.23
I will also include most recent kismet version
Title: Wellenreiter And Kismet On Cacko
Post by: Tomoe on November 02, 2005, 11:32:37 pm
Quote
I just installed kismet (with the required libraries), and it worked after changing the config file ( source=hostap,wlan0,Wireless).

There was no need to create any network profile, and there is no need to connect to any network.

I just launch kismet and it works.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=101905\"][{POST_SNAPBACK}][/a][/div]
It doesn't work for me like that, tho.
Title: Wellenreiter And Kismet On Cacko
Post by: Tomoe on November 02, 2005, 11:52:28 pm
Quote
Thanks for posting this, Kismet is just too hard (though it worked perfectly on my 5500) however Wellenreiter is fab.

Good result!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=101923\"][{POST_SNAPBACK}][/a][/div]
You mean you still didn't manage to get Kismet working? If yes, what's the problem?
Title: Wellenreiter And Kismet On Cacko
Post by: rebski on November 03, 2005, 05:50:35 am
No, still not working. It also seemed to require the installation of libstdc++2.10-glibc2.2_1-2.95.4-16_arm.ipk though.

Once that was installed the ‘sudo kismet’ command on Terminal then came to the end of its processes but with “Can’t start server”.

I shall wait now for Maslovsky to work his magic.

Your advice on Wellenreiter is a total success and there could well be something that I am doing wrong with Kismet..

Just a curious footnote, my Symbol card detects 2 local networks but the Linksys finds 3. Why that should be, I wonder? If there was to be any discrepancy in performance I would have assumed the Symbol to be the superior card.
Title: Wellenreiter And Kismet On Cacko
Post by: GadgetGuy on November 03, 2005, 08:43:45 am
Quote
Quote
I just installed kismet (with the required libraries), and it worked after changing the config file ( source=hostap,wlan0,Wireless).

There was no need to create any network profile, and there is no need to connect to any network.

I just launch kismet and it works.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=101905\"][{POST_SNAPBACK}][/a][/div]
It doesn't work for me like that, tho.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=101991\"][{POST_SNAPBACK}][/a][/div]

I have tried this with two cards: an Ambicom and a Symbol card - with my C3100.

In both cases it worked fine. What wifi card do you use? Which Z?
Title: Wellenreiter And Kismet On Cacko
Post by: drakecoldwinter on November 10, 2005, 07:16:32 am
for me Wereiller work very well, but kismet says error opening terminal: vt100.
killing server...

and then stops... :'(
Title: Wellenreiter And Kismet On Cacko
Post by: Tomoe on November 10, 2005, 08:56:05 am
Quote
for me Wereiller work very well, but kismet says error opening terminal: vt100.
killing server...

and then stops... :'(
[div align=\"right\"][a href=\"index.php?act=findpost&pid=103107\"][{POST_SNAPBACK}][/a][/div]
Tomoe to the rescue!

Actually, I was dealing with this (among others) problem for the last half an hour, just finished troubleshooting.
Try entering these commands in shell:

sudo kismet_server

(now open a second shell tab and enter this there:)

export TERMINFO=/usr/share/terminfo
kismet_client

Let me know if it works this way.
Title: Wellenreiter And Kismet On Cacko
Post by: Ragnorok on November 10, 2005, 12:58:41 pm
Quote
...snip...
About Wellenreiter, I installed the files from the alternative cacko feed ( http://web.mol.ru/~zaurus/feed/ (http://web.mol.ru/~zaurus/feed/) - libpcap, libopie1, libopie2, wellenreiter - install them in this order), at first I got some grays too because it didn't work, I clicked on Autodetect in settings, then checked if the driver name is correct, and there it was, hostap, and everything should work, but it didn't.
The thing was, after 20-some tries without any success I noticed the 'Name' selection box in Wellenreiter configuration, it defaults to wifi0 and it should be wlan0, I changed that and voila! it works. So, first you click on Autodetect, and then switch from wifi0 to wlan0 in Interface box.
...snip...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=101897\"][{POST_SNAPBACK}][/a][/div]
- I did this ... the lastest on the Cacko feed has wlan0 already.  (grin)  After autodetect I had to shut down and relaunch Wellenreiter, but then it scans just fine as you please.
- But it never finds anything.  There are two networks visible from my house, and Kismet finds them both.  Wellenreiter just scans and scans and comes up with nothing.  Ideas?...
Title: Wellenreiter And Kismet On Cacko
Post by: Ragnorok on November 10, 2005, 01:31:34 pm
Quote
...snip...
Now, open /opt/QtPalmtop/etc/kismet/kismet.conf with your favourite editor =)
...snip...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=101897\"][{POST_SNAPBACK}][/a][/div]
- I installed Kismet from the v1.23 feed last night, and it looks for the kismet.conf file at /usr/local/etc/kismet.conf, for some reason.  Don't recall it doing that in the past, but a soft link fixes it straight away.  Gotta love Linux!  (wolfish grin)
- This version has handy enablehost settings for hostap and orinico already.  Nice!  But it won't work with my Symbol card unless I leave hostap_source in force.  Says "FATAL: channel get ioctl failed 19:no such device" if I enable orinoco_14.  Weird.
- Wifi never finishes connecting with the recommended setup.  The little lightning bolt is on the connection applet, and it just flashes balefully at me.  The card looks dead ... no blinky lights or anything.  Eject and reseat.  Ding!
- Now it says "FATAL: Failed to set Channel 6 110:Connection timed out".  Additionally, my WiFi link says "No Connection detected." and it disconnected me.
- If I eject and reseat the card, then change back to orinono_source, I get "FATAL: Could not find 'monitor' private ioctl ... <blah><blah>" followed by "No Connection detected" and a disconnect.  Looks like I need to check a lib ... though I've never had this particular problem when installing Kismet from the Cacko feed before.  (shrug)

- I've always had a ton of trouble getting Kismet to work, but once it works, it's a very nice tool.  Wellenreither has always been just the opposite ... it's very simple to configure, but it rarely finds anything.  (bemused grin)

- Just some ramblings from the peanut gallery on this cloudy afternoon...
Title: Wellenreiter And Kismet On Cacko
Post by: drakecoldwinter on November 10, 2005, 10:41:04 pm
Kismet working Tomoe, I send you all my gratitudes
Title: Wellenreiter And Kismet On Cacko
Post by: drakecoldwinter on November 10, 2005, 11:03:48 pm
on a side note, now that we have wereiller and kismet working how about a link to step by step cracking tutorial ?
I understand the theory, I use kismet and were to find networks and get their MAC adresses, computers connected, etc, then I use aircrack tools to provoke very high wifi trafic and force the AP to send identification keys to his clients, then I grab as much of those packets as I can and then I try to figure out the WEP key out of those packets. Then, the theory is very okay, but then I know nothing of how to use airodump, aireplay and I don't know what else... I saw that wereill can dump those packets, but then I played around and my zaurus got a full memory trouble... :'( I guess I will need to do a big ram swapfile for wereiller and kismet... anyway, the point is a link to a tutorial would be fine. Also I understand that you are getting your hands full with zdict, kismet, wereiller kioku dojo (I hope you port this one, it gives a japanese message error, and my japanese is low level) anyway, you don't have the time to write tutorials with is very understandable, so a link would be nice. Also it would be nice a tutorial section on the forums, to put all tutorials and links to tutorials together in the same place.

In the end thanks a lot for sharing the knowledge you posses, without you we would not even have kismet and wereiller and zdict and more
Title: Wellenreiter And Kismet On Cacko
Post by: Tomoe on November 11, 2005, 12:11:52 pm
Quote
In the end thanks a lot for sharing the knowledge you posses, without you we would not even have kismet and wereiller and zdict and more
[div align=\"right\"][a href=\"index.php?act=findpost&pid=103242\"][{POST_SNAPBACK}][/a][/div]
I don't possess any factual knowledge, I'm just a stuborn mule who doesn't give up and  is good at debugging from all the years of Commodore and IBM PC fixing. Praises should go to people who invest a lot of their time for the benefit of others, like maslovsky and sash.
Title: Wellenreiter And Kismet On Cacko
Post by: maslovsky on November 13, 2005, 05:10:31 am
Quote
- But it never finds anything.  There are two networks visible from my house, and Kismet finds them both.  Wellenreiter just scans and scans and comes up with nothing.  Ideas?...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=103157\"][{POST_SNAPBACK}][/a][/div]

I found out that if you use Socket/Symbol card and you use a dummy ad-hoc network connection, then this card will get stuck to the channel you've specified!  Wellenreiter simply cannot switch channels. This seems to be a bug in orinoco dirivers.

The workaround is instead of connecting to a dummy ad-hoc network type the following commands before starting wellenreiter:

cardctl scheme qpewlan0; cardctl reset;

This will keep the card "awaken" and will not lock it to any particular channel. It's also suggested that the first wireless connectino you create with Network Setup is using managed mode, not ad-hoc.
Title: Wellenreiter And Kismet On Cacko
Post by: rebski on November 14, 2005, 05:45:29 am
Ragnorok

“..Kismet.. looks for the kismet.conf file at /usr/local/etc/kismet.conf” how did you fix that please?

Sorry I don’t know what a soft link is.
Title: Wellenreiter And Kismet On Cacko
Post by: stormer on November 15, 2005, 06:38:53 am
Try this link for a quick tutorial on what to do when you get Kismet up and running

http://www.tomsnetworking.com/Sections-article118.php (http://www.tomsnetworking.com/Sections-article118.php)

there is another article on that site about cracking WEP, that follows a demomstration given by the FBI using forced disassociations and replaying authentication requests to generate enough of a sample to give aircrack something to work with.

http://www.tomsnetworking.com/Sections-article111-page1.php (http://www.tomsnetworking.com/Sections-article111-page1.php)

The following article gives a good bit of info on WEP and is a good source of links to other tools and their usage.

http://securityfocus.com/infocus/1814 (http://securityfocus.com/infocus/1814)

If you want to dabble further into this world then the following is a fantastic site by an older Finish  gentleman very much targeted at those of us who tend to ask "Why", just don't visit it using M$ IE !

http://searchlores.org/ (http://searchlores.org/)
Title: Wellenreiter And Kismet On Cacko
Post by: GadgetGuy on November 18, 2005, 08:47:54 pm
Quote
Quote
...snip...
Now, open /opt/QtPalmtop/etc/kismet/kismet.conf with your favourite editor =)
...snip...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=101897\"][{POST_SNAPBACK}][/a][/div]
- I installed Kismet from the v1.23 feed last night, and it looks for the kismet.conf file at /usr/local/etc/kismet.conf, for some reason.  Don't recall it doing that in the past, but a soft link fixes it straight away.  Gotta love Linux!  (wolfish grin)
- This version has handy enablehost settings for hostap and orinico already.  Nice!  But it won't work with my Symbol card unless I leave hostap_source in force.  Says "FATAL: channel get ioctl failed 19:no such device" if I enable orinoco_14.  Weird.
- Wifi never finishes connecting with the recommended setup.  The little lightning bolt is on the connection applet, and it just flashes balefully at me.  The card looks dead ... no blinky lights or anything.  Eject and reseat.  Ding!
- Now it says "FATAL: Failed to set Channel 6 110:Connection timed out".  Additionally, my WiFi link says "No Connection detected." and it disconnected me.
- If I eject and reseat the card, then change back to orinono_source, I get "FATAL: Could not find 'monitor' private ioctl ... <blah><blah>" followed by "No Connection detected" and a disconnect.  Looks like I need to check a lib ... though I've never had this particular problem when installing Kismet from the Cacko feed before.  (shrug)

- I've always had a ton of trouble getting Kismet to work, but once it works, it's a very nice tool.  Wellenreither has always been just the opposite ... it's very simple to configure, but it rarely finds anything.  (bemused grin)

- Just some ramblings from the peanut gallery on this cloudy afternoon...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=103166\"][{POST_SNAPBACK}][/a][/div]

Ragnorok, while my Kismet connection was totally automatic with an earlier version of kismet, and a beta cacko, ( plug and play ) - I experience now the exact same symptoms you describe. ( In the past I used the hostap driver with my symbol card, and no "fake" network and it just worked. I installed it, launched kismet and all was good )

Have you found any solutions? I have tried all the advice in this thread - and no success with my Symbol card. ( Wellenreiter works, and my Ambicom card also works, when following tomoe's advice re. VT-100 terminal. But I would like to use my Symbol card...)
Title: Wellenreiter And Kismet On Cacko
Post by: Kerensa on November 23, 2005, 01:37:25 am
I'll add my two cents. I have a C3000 with the Cacko beta. Installed libpcap, libopie1, libopie2,  and wellenreiter from the cacko feed, but when I ran from terminal the app wanted the older version of libpcap (0.7.2). Found this version and installed it. Tried this for a bit with different cardctl commands before running wellenreiter, no luck. But it was at least running now.

What got the scan up and going is running wellenreiter from the terminal and AFTER it was going connect my card to the wireless ad-Hoc described http://www.users.on.net/~hluc/myZaurus/cus...ml#wellenreiter (http://www.users.on.net/~hluc/myZaurus/custom.html#wellenreiter)

Any ideas on a cleaner method?
Title: Wellenreiter And Kismet On Cacko
Post by: gsgmx on November 25, 2005, 01:56:45 pm
Quote
Quote
for me Wereiller work very well, but kismet says error opening terminal: vt100.
killing server...

and then stops... :'(
[div align=\"right\"][a href=\"index.php?act=findpost&pid=103107\"][{POST_SNAPBACK}][/a][/div]
Tomoe to the rescue!

Actually, I was dealing with this (among others) problem for the last half an hour, just finished troubleshooting.
Try entering these commands in shell:

sudo kismet_server

(now open a second shell tab and enter this there:)

export TERMINFO=/usr/share/terminfo
kismet_client

Let me know if it works this way.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=103117\"][{POST_SNAPBACK}][/a][/div]

Hi Tomoe,

yeah that helped here too!
and with an additional

export TERM=screen

before your export TERMINFO gives me kismet with colors.    

i needed also the link for kismet.conf Ragnorok wrote about.

@rebski:
ls -s /opt/QtPalmtop/etc/kismet/kismet.conf /usr/local/etc/kismet.conf

also had to create a dir /var/log/kismet

Thats quick and dirty to get it working here, will try to optimize that setup, probably the k.sh startup script could be made functional by inserting these exports there.
 - if i find time to do and test.

George
Title: Wellenreiter And Kismet On Cacko
Post by: maslovsky on November 26, 2005, 04:51:02 pm
Great, I will update kiemet package in the feed!

Quote
Hi Tomoe,

yeah that helped here too!
and with an additional

export TERM=screen

before your export TERMINFO gives me kismet with colors.     

i needed also the link for kismet.conf Ragnorok wrote about.

@rebski:
ls -s /opt/QtPalmtop/etc/kismet/kismet.conf /usr/local/etc/kismet.conf

also had to create a dir /var/log/kismet

Thats quick and dirty to get it working here, will try to optimize that setup, probably the k.sh startup script could be made functional by inserting these exports there.
 - if i find time to do and test.

George
[div align=\"right\"][a href=\"index.php?act=findpost&pid=104978\"][{POST_SNAPBACK}][/a][/div]
Title: Wellenreiter And Kismet On Cacko
Post by: dominate on December 06, 2005, 03:52:49 pm
I was having similar trouble to others in this thread....  i'm on cacko 1.23 on a c1000.  

I noticed a couple additional things:
- ioctl errors and it sorta working when wellineter running seems to be due to dhcpd running.  Killing it (as root) makes them go away for me.  
- the permissions on kismet_client were 744, while the other kismet bins were 755.  This made kismet.sh not be able to start the client and fail.

hope that helps some!
ken
Title: Wellenreiter And Kismet On Cacko
Post by: datajerk on December 08, 2005, 11:36:39 am
Kismet is only producing .dump files, the rest (.csv, etc...) are empty.  Is this a bug or a config setting?  The older kismit I used with older Cacko did not have this problem.

Thanks.
Title: Wellenreiter And Kismet On Cacko
Post by: datajerk on December 08, 2005, 11:46:44 am
Quote
Kismet is only producing .dump files, the rest (.csv, etc...) are empty.  Is this a bug or a config setting?  The older kismit I used with older Cacko did not have this problem.

Thanks.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=106474\"][{POST_SNAPBACK}][/a][/div]
Nevermind.  The writeinterval was set to 300, and I was not waiting long enough.
Title: Wellenreiter And Kismet On Cacko
Post by: loc4me on December 19, 2005, 10:46:22 pm
can anyone tell me the difference between Kismet and Wellenreiter? Is one better than the other at some tast? Thanks.
Title: Wellenreiter And Kismet On Cacko
Post by: cmonex on March 11, 2006, 11:40:27 pm
love this thread. helped me a lot, got wellenreiter up and running after four  earlier unsuccessful attempts!!!!

trick was: uninstalling the version of wellenreiter i had and getting the one recommended by thread starter. then su - and then wellenreiter (from console). got some errors in the console but it works fine after setting wlan0!  

(order of installing the libs doesn't matter? i installed the wrong version wellenreiter first then the three libs, in a wrong order again. then uninstalled only wellenreiter itself... all this after a rom reflash.. cacko 1.23 btw)
Title: Wellenreiter And Kismet On Cacko
Post by: BarryW on April 02, 2006, 10:23:18 pm
Hey guys, got kismet to show a color screen!  Borrowed an idea from over in the sl-6000 area.  Made a script to start kismet.  Called it oddly enough startkismet..

Code: [Select]
#!/bin/sh

export TERMINFO=/usr/share/terminfo
export TERM=screen


kismet

Add that to /usr/local/bin/  chmod it 777 then at a prompt type startkismet.  Ta da!  Now to get my gps working.