NetStumbler.org Forums

Go Back   NetStumbler.org Forums > Software > Unix/Linux
Register Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old 09-11-2002   #1 (permalink)
DigitalMDX
Digital Stumbler
 
DigitalMDX's Avatar
 
Join Date: Jul 2002
Location: Pacific Northwest
Posts: 236
Kismet make error - Linux Gurus???

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
DigitalMDX is offline   Reply With Quote
Old 09-11-2002   #2 (permalink)
jpainter
Registered Member
 
Join Date: Jul 2002
Posts: 38
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 is offline   Reply With Quote
Old 09-11-2002   #3 (permalink)
DigitalMDX
Digital Stumbler
 
DigitalMDX's Avatar
 
Join Date: Jul 2002
Location: Pacific Northwest
Posts: 236
Quote:
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 ;. ...
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
DigitalMDX is offline   Reply With Quote
Old 09-11-2002   #4 (permalink)
JimmyPopAli
Registered Member
 
JimmyPopAli's Avatar
 
Join Date: Apr 2002
Location: Washington the state
Posts: 242
Which version of Kismet are you using?
JimmyPopAli is offline   Reply With Quote
Old 09-11-2002   #5 (permalink)
DigitalMDX
Digital Stumbler
 
DigitalMDX's Avatar
 
Join Date: Jul 2002
Location: Pacific Northwest
Posts: 236
Quote:
Originally posted by JimmyPopAli
Which version of Kismet are you using?
Version 2.4.6
Thanks,
Jay
DigitalMDX is offline   Reply With Quote
Old 09-11-2002   #6 (permalink)
JimmyPopAli
Registered Member
 
JimmyPopAli's Avatar
 
Join Date: Apr 2002
Location: Washington the state
Posts: 242
Try it with the devel version.
JimmyPopAli is offline   Reply With Quote
Old 09-11-2002   #7 (permalink)
DigitalMDX
Digital Stumbler
 
DigitalMDX's Avatar
 
Join Date: Jul 2002
Location: Pacific Northwest
Posts: 236
Quote:
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
DigitalMDX is offline   Reply With Quote
Old 09-11-2002   #8 (permalink)
JimmyPopAli
Registered Member
 
JimmyPopAli's Avatar
 
Join Date: Apr 2002
Location: Washington the state
Posts: 242
That's why the devel is so great, bugs and features are added almost daily.
JimmyPopAli is offline   Reply With Quote
Old 09-11-2002   #9 (permalink)
DigitalMDX
Digital Stumbler
 
DigitalMDX's Avatar
 
Join Date: Jul 2002
Location: Pacific Northwest
Posts: 236
Quote:
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

-Jay
DigitalMDX is offline   Reply With Quote
Old 09-11-2002   #10 (permalink)
JimmyPopAli
Registered Member
 
JimmyPopAli's Avatar
 
Join Date: Apr 2002
Location: Washington the state
Posts: 242
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.
JimmyPopAli is offline   Reply With Quote
Old 09-11-2002   #11 (permalink)
DigitalMDX
Digital Stumbler
 
DigitalMDX's Avatar
 
Join Date: Jul 2002
Location: Pacific Northwest
Posts: 236
Quote:
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

Last edited by DigitalMDX : 09-11-2002 at 02:05 PM.
DigitalMDX is offline   Reply With Quote
Old 09-11-2002   #12 (permalink)
JimmyPopAli
Registered Member
 
JimmyPopAli's Avatar
 
Join Date: Apr 2002
Location: Washington the state
Posts: 242
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.
JimmyPopAli is offline   Reply With Quote
Old 09-11-2002   #13 (permalink)
DigitalMDX
Digital Stumbler
 
DigitalMDX's Avatar
 
Join Date: Jul 2002
Location: Pacific Northwest
Posts: 236
Quote:
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? )

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
DigitalMDX is offline   Reply With Quote
Old 09-11-2002   #14 (permalink)
JimmyPopAli
Registered Member
 
JimmyPopAli's Avatar
 
Join Date: Apr 2002
Location: Washington the state
Posts: 242
Try this "chmod 755 kismet".
JimmyPopAli is offline   Reply With Quote
Old 09-11-2002   #15 (permalink)
DigitalMDX
Digital Stumbler
 
DigitalMDX's Avatar
 
Join Date: Jul 2002
Location: Pacific Northwest
Posts: 236
Quote:
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
DigitalMDX is offline   Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Google
 
Web NetStumbler.org

All times are GMT -7. The time now is 11:19 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 ©2007, Crawlability, Inc.


All messages express the views of the author and are for entertainment purposes only. Netstumbler.org cannot be held responsible for the authenticity of the content or the actions of its members. By using this site and its services, you warrant that you will not post any messages that are discriminating, obscene, hateful, threatening, or otherwise violates any laws and you release Netstumbler.org from any future claims of any kind whatsoever including, but not limited to, addiction and loss of productivity. All forum messages, private messages and any other content are properties of Netstumbler.org. Even if publicly available, personal or copyrighted information are not to be posted without the consent of the owner. Distribution of licensed and copyrighted materials in any way not endorsed by the copyright owner is strictly prohibited. You may not use this site and its resources to spam other sites or individuals or perform any action that violates any law. Items sold or bought in the For Sale forum are sold as is and no warranty or insurance of any kind is provided. Netstumbler.org cannot be held responsible for the outcome of any transactions and no warranty of any kind is provided, either express or implied. Vulgar words are not allowed in the subject lines ; they may be used in the message body in any forum. The Administrator, Super Moderators and Moderators of Netstumbler.org have the right to remove, edit, move or close any thread for any reason and to reveal your identity and other known information in the event of a complaint or legal action arising from any message posted by you.