Kismet make error - Linux Gurus???

Kismet make error - Linux Gurus???

Postby DigitalMDX » Wed Sep 11, 2002 9:11 am

Hi gang,
I've followed everyones postings and have the Kismet make process up to the 'make' command... when I run make I get the following error.

airsnortdump.cc: In method 'int AirsnortDumpFile::OpenDump(const char *)':
airsnortdump.cc:28: parse error before ';'
make: ***[airsnortdump.o] error 1


I'm a Windows guy and a VB guy, so I have two strikes already in a Linux environment trying to make something that looks like C.

Can anyone offer some help with this cryptic code?
Thank you very much!
-Jay
User avatar
DigitalMDX
 
Posts: 236
Joined: Tue Jul 02, 2002 6:45 pm
Location: Pacific Northwest

Postby jpainter » Wed Sep 11, 2002 9:19 am

I would suggest opening that file with VI, go to line 28, and see if you can see anything that is a blatent error between the beginning of the line and the ;. Maybe you will get lucky and it will be obvious like a information line that has somehow got the comment # removed orso.
jpainter
Mini Stumbler
 
Posts: 38
Joined: Sun Jul 14, 2002 8:43 pm

Postby DigitalMDX » Wed Sep 11, 2002 9:29 am

Originally posted by jpainter
I would suggest opening that file with VI, go to line 28, and see if you can see anything that is a blatent error between the beginning of the line and the ;. ...


:D remember I'm a VB guy... everything looks like a blatent error in this file... ;)

Here is line 28:

dumper = new WtapDumpFile;


Here are the few lines above that line down to line 28

#include "airsnortdump.h"
#include "packetracker.h"

int AirsnortDumpFile::OpenDump(const char *file) {
snprintf(type, 64, "airsnort (weak packet) dump");
snprintf(filename, 1024, "%s",file);

num_dumped = 0;

dumper = new WtapDumpFile;

Thank you for your reply
-Jay
User avatar
DigitalMDX
 
Posts: 236
Joined: Tue Jul 02, 2002 6:45 pm
Location: Pacific Northwest

Postby JimmyPopAli » Wed Sep 11, 2002 9:37 am

Which version of Kismet are you using?
User avatar
JimmyPopAli
Mini Stumbler
 
Posts: 242
Joined: Sun Apr 14, 2002 9:55 am
Location: Washington the state

Postby DigitalMDX » Wed Sep 11, 2002 9:57 am

Originally posted by JimmyPopAli
Which version of Kismet are you using?

Version 2.4.6
Thanks,
Jay
User avatar
DigitalMDX
 
Posts: 236
Joined: Tue Jul 02, 2002 6:45 pm
Location: Pacific Northwest

Postby JimmyPopAli » Wed Sep 11, 2002 10:01 am

Try it with the devel version.
User avatar
JimmyPopAli
Mini Stumbler
 
Posts: 242
Joined: Sun Apr 14, 2002 9:55 am
Location: Washington the state

Postby DigitalMDX » Wed Sep 11, 2002 10:33 am

Originally posted by JimmyPopAli
Try it with the devel version.

Thank you very much! That solved that error. Now I'm having other issues that I need to step back and take a look at.
Thank you again for your reply!
-Jay
User avatar
DigitalMDX
 
Posts: 236
Joined: Tue Jul 02, 2002 6:45 pm
Location: Pacific Northwest

Postby JimmyPopAli » Wed Sep 11, 2002 10:38 am

That's why the devel is so great, bugs and features are added almost daily.
User avatar
JimmyPopAli
Mini Stumbler
 
Posts: 242
Joined: Sun Apr 14, 2002 9:55 am
Location: Washington the state

Postby DigitalMDX » Wed Sep 11, 2002 10:44 am

Originally posted by JimmyPopAli
That's why the devel is so great, bugs and features are added almost daily.


anyclue as to when I type "./kismet" I get...
bash: ./kismet: Permission denied

I did all the make stuff from the root shell...

Thanks again for all your help... I'm hoping for some foreign language credits after messing with this Linux stuff :D

-Jay
User avatar
DigitalMDX
 
Posts: 236
Joined: Tue Jul 02, 2002 6:45 pm
Location: Pacific Northwest

Postby JimmyPopAli » Wed Sep 11, 2002 10:52 am

Did you do a "make install"?
I'm guessing yes, since you said you did all the make stuff.

Try typing just "kismet" with out the period and slash.
User avatar
JimmyPopAli
Mini Stumbler
 
Posts: 242
Joined: Sun Apr 14, 2002 9:55 am
Location: Washington the state

Postby DigitalMDX » Wed Sep 11, 2002 11:55 am

Originally posted by JimmyPopAli
Try typing just "kismet" with out the period and slash.

Kismet w/o the ./ returns bash: kismet: command not found

Here are my thoughts... I'm running Knoppix 3.1 (the bootable all in one Linix Boot CD). I'm thinking that perhaps Kismet at its launch is trying to write to some? directory that it can't because of the CD? I'll keep digging around on this end and see what I can discover...
Another thought... in the Kismet.conf file there is a line that reads:
# User to setid to (should be your normal user)
suiduser=knoppix

I put the "knoppix" in there... how can I tell (in Linux) what my "normal user" is or should be? and would this possibly cause the above problem?
I'm always open to more suggestions.
Thanks again for all your help!!!
-Jay
User avatar
DigitalMDX
 
Posts: 236
Joined: Tue Jul 02, 2002 6:45 pm
Location: Pacific Northwest

Postby JimmyPopAli » Wed Sep 11, 2002 12:28 pm

Go to the directory Kismet is in and type " ls -l kismet" to see what the permissions are.

For the suiduser= use the name that you login with.
If there isn't a login type "whoami" and use that name.
User avatar
JimmyPopAli
Mini Stumbler
 
Posts: 242
Joined: Sun Apr 14, 2002 9:55 am
Location: Washington the state

Postby DigitalMDX » Wed Sep 11, 2002 2:53 pm

Originally posted by JimmyPopAli
Go to the directory Kismet is in and type " ls -l kismet" to see what the permissions are. For the suiduser= use the name that you login with. If there isn't a login type "whoami" and use that name.


The permissions in the directory where Kismet is show:
-rw-r--r-- 1 root root 2028 Sep 11 11:32 kismet

(looks like I need to set the year on this thing eh? :D )

whoami shows "root" so I've changed the kismet.conf suiduser=root

Still shows: bash: ./kismet: Permission denied

Thank you for your time and assistance,
Jay
User avatar
DigitalMDX
 
Posts: 236
Joined: Tue Jul 02, 2002 6:45 pm
Location: Pacific Northwest

Postby JimmyPopAli » Wed Sep 11, 2002 3:29 pm

Try this "chmod 755 kismet".
User avatar
JimmyPopAli
Mini Stumbler
 
Posts: 242
Joined: Sun Apr 14, 2002 9:55 am
Location: Washington the state

Postby DigitalMDX » Wed Sep 11, 2002 4:02 pm

Originally posted by JimmyPopAli
Try this "chmod 755 kismet".

Wow, you are amazing... THANK YOU!!!!!!!!!!!

I'm now getting:
grep: /usr/local/etc/kismet_ui.conf: No such file or directory
No gui specified in /usr/local/etc/kismet.conf. Please specity one!


Thank you! Just quickly I tried adding a "etc" directory to the /KNOPPIX/usr/local/ directory but I get "could not make directory /knoppix/usr/local/etc/
Looking at the permissions to that directory (using the GUI) all the options are greyed out... I don't beleive this directory is on the CDROM because when I look at the CDROM I get a patch that looks like "file:/mnt/cdrom/KNOPPIX"

using the root shell, I can "cd .." several times until I get to "/" at which point I see KNOPPIX boot dev home mnt proc sbin usr bin cdrom etc lib opt ramdisk tmp and var.
When I get home, I'm going to try to copy the kismet_ui.conf while in the etc directory from the shell, once I get the path figured out.

Send me a private msg with your address in it... I need to send you some beer.
Thank you again,
-Jay
User avatar
DigitalMDX
 
Posts: 236
Joined: Tue Jul 02, 2002 6:45 pm
Location: Pacific Northwest

Next

Return to Unix/Linux

Who is online

Users browsing this forum: No registered users and 1 guest