[SOLVED] Kismet - komplikacje przy instalacji LibPCAP

Instalacja i konfiguracja oprogramowania sieciowego.
dareeek
Piegowaty Guziec
Piegowaty Guziec
Posty: 6
Rejestracja: 01 sie 2007, 18:03
Płeć: Mężczyzna
Wersja Ubuntu: 7.04
Środowisko graficzne: Blackbox
Kontakt:

[SOLVED] Kismet - komplikacje przy instalacji LibPCAP

Post autor: dareeek »

Na wstępie chciałbym zaznaczyć, iż jestem początkujący ;)
Zabrałem się za instalacje kismeta. Opiszę po kolei co i jak.

Oczywiście ściągnąłem i rozpakowałem archiwum kismeta.
Wydałem polecenie ./configure, w pewnym momencie nastąpiło zatrzymanie tego procesu zakończone komunikatem, że wystąpił problem z C compiler. Poszukałem na google i znalazłem:

Kod: Zaznacz cały

apt-get install libc6-dev g++ gcc
Ponownie ./configure kismeta. Przez długi czas szło gładko, aż w pewnym momencie znów się zatrzymało i ogłosiło, że brakuje ncurses. Google i udało się znaleźć:
https://launchpad.net/ubuntu/+source/nc ... 6-1ubuntu1
Trochę czasu trwała instalacja tego, ale wreszcie dobrnąłem do końca.
No to jedziemy dalej. Ponowne ./configure kismeta. Tym razem dobrnęło do końca, ale wyświetliło ostrzeżenie następującej treści:

Kod: Zaznacz cały

*** WARNING ***
LibPCAP was not found.  Kismet previously included a local copy of this
library, however it now expects libpcap to be provided by the system.
Kismet on Linux without LibPcap cannot capture data locally and will 
almost certainly NOT BE WHAT YOU WANT.
Your distribution should provide packages for libpcap, otherwise 
it can be downloaded from http://tcpdump.org

Configuration complete.  Run 'make dep' to generate dependencies
and 'make' followed by 'make install' to compile and install.
Wg. rady wszedłem na http://tcpdump.org i ściągnąłem LibPCAP.
Wydaje na nim polecenie ./configure i wychodzi, że brakuje mi jakiegoś flex.
Odwiedziłem http://flex.sourceforge.net/ ściągnąłem wersję 2.5.33
Wydaje na flex polecenie ./configure i dowiaduje sie, że aby zainstalować flex'a potrzebuję GNU M4 1.4.
Znalazłem na google, ściągnąłem i tym razem nie trzeba było innych rzeczy aby zainstalować te GNU.

Skoro miałem GNU M4 no to zabrałem się za flex'a. Udało się. No to czas na LibPCAP. ./configure i znów ten sam błąd co wcześniej, tzn. że niby nadal nie mam flexa. :pt36: Odnalazłem ponownie flexa w google tym razem w wersji 2.5.4. Wynik polecenia ./configure na tej wersji flexa :shock: :

Kod: Zaznacz cały

darek@darek-linux:~/flex-2.5.4$ ./configure
creating cache ./config.cache
checking whether ln -s works... yes
checking for bison... no
checking for byacc... no
checking for gcc... gcc
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c
checking whether make sets $MAKE... yes
checking for working const... yes
checking how to run the C preprocessor... gcc -E
checking whether cross-compiling... no
checking for ANSI C header files... yes
checking for size_t... yes
checking for ANSI C header files... (cached) yes
checking for string.h... yes
checking for malloc.h... yes
checking for sys/types.h... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
darek@darek-linux:~/flex-2.5.4$ make
cp ./initscan.c scan.c
touch .bootstrap
gcc -c -I. -I. -g -O ccl.c
gcc -c -I. -I. -g -O dfa.c
gcc -c -I. -I. -g -O ecs.c
gcc -c -I. -I. -g -O gen.c
gcc -c -I. -I. -g -O main.c
gcc -c -I. -I. -g -O misc.c
gcc -c -I. -I. -g -O nfa.c
yacc -d ./parse.y
make: yacc: Command not found
make: *** [parse.c] Error 127
Nie jestem sam w stanie rozwiązać tego problemu. A może w ogóle nie jest mi potrzebny ten cały LibPCACP, bo przecież wynik polecenia ./configure na kismecie był pozytywny jedynie dostałem ostrzeżenie o LibPCAP. :)
jj ptak
Piegowaty Guziec
Piegowaty Guziec
Posty: 16
Rejestracja: 12 kwie 2007, 11:54
Płeć: Mężczyzna
Wersja Ubuntu: 7.10

Post autor: jj ptak »

no brakuje yacc mozna chyba z repo zainstalowac.
dareeek
Piegowaty Guziec
Piegowaty Guziec
Posty: 6
Rejestracja: 01 sie 2007, 18:03
Płeć: Mężczyzna
Wersja Ubuntu: 7.04
Środowisko graficzne: Blackbox
Kontakt:

Post autor: dareeek »

jj ptak pisze:no brakuje yacc mozna chyba z repo zainstalowac.
Znalazłem yacc, zainstalowałem, okazało się, że jeszcze jakiś bison potrzebny, też zainstalowałem. No i próba polecenia ./configure na LibPCAP wreszcie się powiodła :D
Tylko, że wcześniej nie czekając na Twoją odpowiedź od razu skompilowałem kismeta. To teraz musze od nowa zainstalować kismeta, czy on automatycznie pobierze informacje o tym, że LibPCAP jest już wkompilowany?

~Edit~
Skompilowałem od nowa, trochę musiałem pokombinować bo nie mogłem ustawić prawidłowego źródła (instalowałem przecież madwifi a nie madwifi-ng, a wg. dokumentacji kismeta moje ustawienia są takie jak dla -ng) i w końcu udało mi się odpalić kismet'a :mrgreen:

Mogę napisać HOWTO jeśli trzeba, żeby inni newbe się nie męczyli tak jak ja :P

[ Dodano: 2 Sierpień 07, 20:39 ]
HOWTO install Kismet
1) C compiler
wydajemy w terminalu komendę

Kod: Zaznacz cały

apt-get install libc6-dev g++ gcc
2) ncurses
ściągamy z tej lokalizacji paczkę tar.gz
https://launchpad.net/ubuntu/+source/nc ... 6-1ubuntu1
3) GNU M4 1.4
ściągamy z tej lokalizacji paczkę tar.gz
http://linux.softpedia.com/progDownload ... -6462.html
4) wydajemy w terminalu komendę

Kod: Zaznacz cały

apt-get install byacc
5) wydajemy w terminalu komendę

Kod: Zaznacz cały

apt-get install bison
6) Flex
ściągamy z tej lokalizacji paczke tar.gz w wersji 2.5.4a
http://flex.sourceforge.net/
7) LibPCAP
ściągamy z tej lokalizacji paczkę tar.gz w wersji 0.9.7
http://tcpdump.org
8.) jeśli karta jest na chipsecie atheros to ściągamy madwifi (jeśli na innym to wg. dokumentacji kismet)
http://sourceforge.net/projects/madwifi/
9) Kismet
teraz już możemy bez problemów zainstalować Kismet'a :mrgreen:
http://www.kismetwireless.net/
10) Czytamy dokumentację i konfigurujemy :D
http://www.kismetwireless.net/documentation.shtml
jj ptak
Piegowaty Guziec
Piegowaty Guziec
Posty: 16
Rejestracja: 12 kwie 2007, 11:54
Płeć: Mężczyzna
Wersja Ubuntu: 7.10

Post autor: jj ptak »

ncurses nie trzeba z paczki. jest w repro. podobnie jak libpcap. podobnie jak bison/flex. podobie jak kismet (chociaz tutaj jeszcze moge zrozumiec ze ktos chce ze zrodel).
dareeek
Piegowaty Guziec
Piegowaty Guziec
Posty: 6
Rejestracja: 01 sie 2007, 18:03
Płeć: Mężczyzna
Wersja Ubuntu: 7.04
Środowisko graficzne: Blackbox
Kontakt:

Post autor: dareeek »

jj ptak pisze:ncurses nie trzeba z paczki. jest w repro. podobnie jak libpcap. podobnie jak bison/flex. podobie jak kismet (chociaz tutaj jeszcze moge zrozumiec ze ktos chce ze zrodel).
ncurses - ncurses-base, o to?!
LibPCAP - czyli co, musiałbym Package libpcap0.8 i libpcap0.8-dev zainstalować?
Flex - znalazłem
Kismet - znalazłem
jj ptak
Piegowaty Guziec
Piegowaty Guziec
Posty: 16
Rejestracja: 12 kwie 2007, 11:54
Płeć: Mężczyzna
Wersja Ubuntu: 7.10

Post autor: jj ptak »

mysle ze dev niekoniecznie chyba ze jednak chcesz tego kismeta kompilowac wtedy tak (dev to pliki naglowkowe oglednie mowiac). jak wybierzesz ksimeta to on sam zadba o zaleznosci. generalnie warto najpierw dac szanse repo i dopiero jak nie chula to kompilowac.
dareeek
Piegowaty Guziec
Piegowaty Guziec
Posty: 6
Rejestracja: 01 sie 2007, 18:03
Płeć: Mężczyzna
Wersja Ubuntu: 7.04
Środowisko graficzne: Blackbox
Kontakt:

Post autor: dareeek »

jj ptak pisze:mysle ze dev niekoniecznie chyba ze jednak chcesz tego kismeta kompilowac wtedy tak (dev to pliki naglowkowe oglednie mowiac). jak wybierzesz ksimeta to on sam zadba o zaleznosci. generalnie warto najpierw dac szanse repo i dopiero jak nie chula to kompilowac.
Dzięki za radę. Ja sprawdzam nazwy na tej stronie http://packages.ubuntu.com/ i potem daje polecenie do instalacji z repo. Może da się jakoś z poziomu systemu sprawdzać nazwy poszczególnych aplikacji?
jj ptak
Piegowaty Guziec
Piegowaty Guziec
Posty: 16
Rejestracja: 12 kwie 2007, 11:54
Płeć: Mężczyzna
Wersja Ubuntu: 7.10

Post autor: jj ptak »

Zajrzyj do poradnika: synaptic albo apt-cache search, bo offtopic sie robi.
oZz
Piegowaty Guziec
Piegowaty Guziec
Posty: 20
Rejestracja: 06 wrz 2007, 21:50
Płeć: Mężczyzna
Wersja Ubuntu: 8.10
Środowisko graficzne: GNOME
Kontakt:

Post autor: oZz »

Witam pozwole sobie odświeżyć temat:) mam problem z instalacją programu o którym jest temat tzn. Kismet oto przebieg mojej instalacji:
Ze strony programu ściągnąłem Kismet-2007-01-R1b
Wszedlem w terminalu do folderu i wpisałem

Kod: Zaznacz cały

./configure
a oto wyniki:

Kod: Zaznacz cały

root@ozz-desktop:/home/ozz/Desktop/kismet-2007-01-R1b# ./configurechecking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... gcc -E
checking for platform-specific compiler flags... none needed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking for unistd.h... (cached) yes
checking for sys/types.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for an ANSI C-conforming const... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for ANSI C header files... (cached) yes
checking return type of signal handlers... void
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for gettimeofday... yes
checking for memset... yes
checking for select... yes
checking for socket... yes
checking for strcasecmp... yes
checking for strftime... yes
checking for strstr... yes
checking for system-level getopt_long()... yes
checking for stdint.h... (cached) yes
checking for accept() addrlen type... socklen_t
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking for main in -luClibc++... no
checking for main in -lstdc++... yes
checking for group 'root'... yes
checking for group 'man'... checking for initscr in -lncurses... yes
checking for new_panel in -lpanel... yes
checking for assume_default_colors in -lncurses... yes
checking for linux/netlink.h... yes
checking for linux/wireless.h... yes
checking that linux/wireless.h is what we expect... yes
checking that wireless extentions support SIOCIWFIRSTPRIV... yes
checking for pcap_open_live in -lpcap... yes
checking pcap.h usability... yes
checking pcap.h presence... yes
checking for pcap.h... yes
checking for pcap_setnonblock in -lpcap... yes
checking for pcap_get_selectable_fd in -lpcap... yes
configure: WARNING: Using local radiotap support on a non-bsd system
checking for setuid ... yes
checking for XML_GetCurrentLineNumber in -lexpat... yes
checking gmp.h usability... no
checking gmp.h presence... no
checking for gmp.h... no
configure: WARNING: *** Missing GMP math library.  gpsmap will not be built. ***
checking for Magick-config... no
configure: WARNING: *** Missing Magick-config (or it is not in the path).  gpsmap will not be built. ***
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_create in -lpthread... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING:  Makefile.in seems to ignore the --datarootdir setting
config.status: creating scripts/kismet
config.status: creating extra/buzzme/Makefile
config.status: WARNING:  extra/buzzme/Makefile.in seems to ignore the --datarootdir setting
config.status: creating extra/Makefile
config.status: WARNING:  extra/Makefile.in seems to ignore the --datarootdir setting
config.status: creating conf/kismet.conf
config.status: creating conf/kismet_ui.conf
config.status: creating config.h

Configuration complete: 
         Compiling for: linux-gnu (i686)
           C++ Library: stdc++
   Installing as group: root
    Man pages owned by: man
       Installing into: /usr/local
        Setuid capable: yes
      Terminal Control: ncurses
      Curses interface: yes
      Panels interface: yes
 Linux Netlink capture: yes
       Linux wireless : yes
 Linux wireless v.22+ : yes
          pcap capture: yes
       airpcap control: n/a (only Cygwin/Win32)
        WSP100 capture: no
          Viha capture: n/a (only Darwin)
      Radiotap headers: yes
 Using local dump code: yes
   Imagemagick support: no
         Expat Library: yes
           GMP Library: no
       PThread Support: yes
      libz compression: no

Configuration complete.  Run 'make dep' to generate dependencies
and 'make' followed by 'make install' to compile and install.
Po tym wpisuję

Kod: Zaznacz cały

make dep
a oto wynik:

Kod: Zaznacz cały

make[1]: Wejście do katalogu `/home/ozz/Desktop/kismet-2007-01-R1b'
make[2]: Wejście do katalogu `/home/ozz/Desktop/kismet-2007-01-R1b'
make[2]: `.depend' jest aktualne.
make[2]: Opuszczenie katalogu `/home/ozz/Desktop/kismet-2007-01-R1b'
make[1]: Opuszczenie katalogu `/home/ozz/Desktop/kismet-2007-01-R1b'
następnie

Kod: Zaznacz cały

make
i wynik:

Kod: Zaznacz cały

g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c util.cc -o util.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c cygwin_utils.cc -o cygwin_utils.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c ringbuf.cc -o ringbuf.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c configfile.cc -o configfile.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c speech.cc -o speech.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c ifcontrol.cc -o ifcontrol.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c iwcontrol.cc -o iwcontrol.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c madwifing_control.cc -o madwifing_control.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c packet.cc -o packet.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c pcapsource.cc -o pcapsource.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c prism2source.cc -o prism2source.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c wtapfilesource.cc -o wtapfilesource.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c wsp100source.cc -o wsp100source.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c dronesource.cc -o dronesource.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c vihasource.cc -o vihasource.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c airpcapsource.cc -o airpcapsource.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c packetsourcetracker.cc -o packetsourcetracker.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c kis_packsources.cc -o kis_packsources.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c wtapdump.cc -o wtapdump.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c wtaplocaldump.cc -o wtaplocaldump.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c gpsdump.cc -o gpsdump.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c airsnortdump.cc -o airsnortdump.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c fifodump.cc -o fifodump.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c gpsd.cc -o gpsd.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c manuf.cc -o manuf.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c packetracker.cc -o packetracker.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c timetracker.cc -o timetracker.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c alertracker.cc -o alertracker.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c finitestate.cc -o finitestate.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c getopt.cc -o getopt.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c tcpserver.cc -o tcpserver.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c server_protocols.cc -o server_protocols.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c server_globals.cc -o server_globals.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c kismet_server.cc -o kismet_server.o 
g++  -o kismet_server util.o cygwin_utils.o ringbuf.o configfile.o speech.o ifcontrol.o iwcontrol.o madwifing_control.o packet.o pcapsource.o prism2source.o wtapfilesource.o wsp100source.o dronesource.o vihasource.o airpcapsource.o packetsourcetracker.o kis_packsources.o wtapdump.o wtaplocaldump.o gpsdump.o airsnortdump.o fifodump.o gpsd.o manuf.o packetracker.o timetracker.o alertracker.o finitestate.o getopt.o tcpserver.o server_protocols.o server_globals.o kismet_server.o  -lstdc++ -lm -lpcap
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c tcpstreamer.cc -o tcpstreamer.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c kismet_drone.cc -o kismet_drone.o 
g++  -o kismet_drone util.o cygwin_utils.o ringbuf.o configfile.o getopt.o ifcontrol.o iwcontrol.o madwifing_control.o packet.o tcpstreamer.o prism2source.o pcapsource.o wtapfilesource.o wsp100source.o airpcapsource.o dronesource.o vihasource.o packetsourcetracker.o kis_packsources.o timetracker.o gpsd.o server_globals.o kismet_drone.o -lstdc++ -lm -lpcap
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c tcpclient.cc -o tcpclient.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c frontend.cc -o frontend.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c cursesfront.cc -o cursesfront.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c panelfront.cc -o panelfront.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c panelfront_display.cc -o panelfront_display.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c panelfront_input.cc -o panelfront_input.o 
g++  -O2 -Wall -DVERSION_MAJOR=\"2007\" -DVERSION_MINOR=\"01\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c kismet_client.cc -o kismet_client.o 
g++  -o kismet_client util.o configfile.o speech.o manuf.o tcpclient.o frontend.o cursesfront.o panelfront.o panelfront_display.o panelfront_input.o gpsd.o getopt.o kismet_client.o  -lstdc++ -lm -lpanel -lncurses
następnie

Kod: Zaznacz cały

make install
i wynik komendy:

Kod: Zaznacz cały

make -e commoninstall
make[1]: Wejście do katalogu `/home/ozz/Desktop/kismet-2007-01-R1b'
mkdir -p /usr/local/etc
mkdir -p /usr/local/bin
install -o "root" -g "root" -m 755 scripts/kismet /usr/local/bin/kismet
install -o "root" -g "root" -s -m 755 kismet_client /usr/local/bin/kismet_client
# install -o "root" -g "root" -s -m 755  /usr/local/bin/
mkdir -p /usr/local/share/man/man1
mkdir: `/usr/local/share/man/man1' istnieje, ale nie jest katalogiem
make[1]: *** [commoninstall] Błąd 1
make[1]: Opuszczenie katalogu `/home/ozz/Desktop/kismet-2007-01-R1b'
make: *** [install] Błąd 2
nie mam pojęcia co jest nie tak... wydaje mi się że wszystkie wymagane bibliteki mam, dodam że jestem początkujący ale wydaje mi się że szybko się ucze:) pozdrawiam i czekam na pomoc:)
Registered Linux User #456131
rdms
Piegowaty Guziec
Piegowaty Guziec
Posty: 1
Rejestracja: 01 paź 2008, 22:27
Płeć: Mężczyzna
Wersja Ubuntu: 8.04
Środowisko graficzne: GNOME

Odp: [SOLVED] Kismet - komplikacje przy instalacji LibPCAP

Post autor: rdms »

Witam wszystkich :razz:
Mam taki problem... instalowalem kismeta tak jak tu jest opisane i na koniec wyskakuje mi cos takiego:
Kismet has been installed SUID ROOT. This WILL ALLOW NORMAL USERS TO BREAK
YOUR WIRELESS NETWORK CONNECTION. IF YOU HAVE ANY UNTRUSTED USERS ON YOUR
SYSTEM DO NOT INSTALL KISMET AS SUID ROOT.
root@rdms-desktop:/home/rdms/Pulpit/kismet# kismet
Launching kismet_server: /usr/local/bin/kismet_server
FATAL: Could not find user 'your_user_here' for dropping priviledges. Make sure you have a valid user set for 'suiduser' in your config file. See the 'Installation & Security' and 'Configuration' sections of the README file for more information.
Done.
root@rdms-desktop:/home/rdms/Pulpit/kismet#
pomoze ktos ??
marung
Piegowaty Guziec
Piegowaty Guziec
Posty: 2
Rejestracja: 24 kwie 2009, 11:06
Płeć: Mężczyzna
Wersja Ubuntu: 9.10
Środowisko graficzne: GNOME
Architektura: x86
Kontakt:

Odp: [SOLVED] Kismet - komplikacje przy instalacji LibPCAP

Post autor: marung »

i ja coś od siebie dodam :)
Mam zainstalowanego kismeta i jak go odpalam to coś takiego mi wyswietla:

"
root@maluszek:~# kismet
Launching kismet_server: //usr/bin/kismet_server
Suid priv-dropping disabled. This may not be secure.
No specific sources given to be enabled, all will be enabled.
Non-RFMon VAPs will be destroyed on multi-vap interfaces (ie, madwifi-ng)
Enabling channel hopping.
Enabling channel splitting.
NOTICE: Disabling channel hopping, no enabled sources are able to change channel.
Source 0 (Kismet): Enabling monitor mode for madwifi_g source interface wlan0 channel 6...
ERROR: Unable to create VAP: Operation not supported
ERROR: Unable to create monitor-mode VAP
WARNING: wlan0 appears to not accept the Madwifi-NG controls. Will attempt to configure it as a standard Madwifi-old interface. If you are using madwifi-ng, be sure to set the source interface to the wifiX control interface, NOT athX
FATAL: Failed to retrieve list of private ioctls 95:Operation not supported
Done.

"
i nie mam pojecia co z tym zrobic :( kto pomoże??
kiriss
Piegowaty Guziec
Piegowaty Guziec
Posty: 3
Rejestracja: 21 maja 2009, 20:45
Płeć: Mężczyzna
Wersja Ubuntu: 10.10
Środowisko graficzne: GNOME
Architektura: x86_64

Odp: [SOLVED] Kismet - komplikacje przy instalacji LibPCAP

Post autor: kiriss »

A ja mam taki błąd przy libpcap:

Polecenie make

Kod: Zaznacz cały

krzysiek@krzysiek-MS-7260:~/Pobrane/libpcap-1.1.1$ make
bison -y -p pcap_ -d grammar.y
/usr/local/share/bison/yacc.c:158: /usr/local/bin/m4: Warning: Excess arguments to built-in `_m4_popdef' ignored
/usr/local/share/bison/yacc.c:1071: /usr/local/bin/m4: Warning: Excess arguments to built-in `_m4_popdef' ignored
/usr/local/share/bison/yacc.c:1740: /usr/local/bin/m4: Warning: Excess arguments to built-in `_m4_popdef' ignored
/usr/local/share/bison/yacc.c:1741: error: m4_divert_pop(0): diversion mismatch: 
/usr/local/share/bison/yacc.c:155: m4_divert_push: 0
stdin:1: m4_divert_push: KILL
/usr/local/share/bison/yacc.c:1741: the top level
bison: subsidiary program `/usr/local/bin/m4' failed (exit status 1)
make: *** [grammar.c] Błąd 1
krzysiek@krzysiek-MS-7260:~/Pobrane/libpcap-1.1.1$ 
a ./configure wygląda tak

Kod: Zaznacz cały

krzysiek@krzysiek-MS-7260:~/Pobrane/libpcap-1.1.1$ ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking gcc version... 4
checking for inline... inline
checking for __attribute__... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/bitypes.h usability... yes
checking sys/bitypes.h presence... yes
checking for sys/bitypes.h... yes
checking for int8_t... yes
checking for u_int8_t... yes
checking for int16_t... yes
checking for u_int16_t... yes
checking for int32_t... yes
checking for u_int32_t... yes
checking for int64_t... yes
checking for u_int64_t... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGEFILE_SOURCE value needed for large files... no
checking sys/ioccom.h usability... no
checking sys/ioccom.h presence... no
checking for sys/ioccom.h... no
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking for net/pfvar.h... no
checking for netinet/if_ether.h... yes
checking for ANSI ioctl definitions... yes
checking for strerror... yes
checking for strlcpy... no
checking for vsnprintf... yes
checking for snprintf... yes
checking for library containing gethostbyname... none required
checking for library containing socket... none required
checking for library containing putmsg... none required
checking for ether_hostton... yes
checking whether ether_hostton is declared... no
checking netinet/ether.h usability... yes
checking netinet/ether.h presence... yes
checking for netinet/ether.h... yes
checking whether ether_hostton is declared... yes
checking if --disable-protochain option is specified... enabled
checking packet capture type... linux
checking Linux kernel version... 2
checking for linux/wireless.h... yes
checking for nl_handle_alloc in -lnl... no
checking if if_packet.h has tpacket_stats defined... yes
checking if tpacket_auxdata struct has tp_vlan_tci member... no
checking for getifaddrs... yes
checking ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking for socklen_t... yes
checking for getaddrinfo... yes
checking whether to build optimizer debugging code... no
checking whether to build parser debugging code... no
checking whether we have DAG API headers... no (/usr/local/include)
checking whether we have the DAG API... no
checking whether we have Septel API... no
checking whether we have Myricom Sniffer API... no (/opt/snf)
checking for flex... flex
checking for flex 2.4 or higher... yes
checking for bison... bison
checking for ranlib... ranlib
checking if sockaddr struct has the sa_len member... no
checking if sockaddr_storage struct exists... yes
checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... no
checking if unaligned accesses fail... no
checking for USB sniffing support... yes
configure: Device for USB sniffing is /dev/usbmon
checking linux/usbdevice_fs.h usability... yes
checking linux/usbdevice_fs.h presence... yes
checking for linux/usbdevice_fs.h... yes
checking if usbdevfs_ctrltransfer struct has bRequestType member... yes
checking bluetooth/bluetooth.h usability... no
checking bluetooth/bluetooth.h presence... no
checking for bluetooth/bluetooth.h... no
configure: Bluetooth sniffing is not supported; install bluez-lib devel to enable it
checking for linux/can.h... yes
configure: CAN sniffing is supported
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
config.status: creating pcap-filter.manmisc
config.status: creating pcap-linktype.manmisc
config.status: creating pcap-savefile.manfile
config.status: creating pcap.3pcap
config.status: creating pcap_compile.3pcap
config.status: creating pcap_datalink.3pcap
config.status: creating pcap_dump_open.3pcap
config.status: creating pcap_list_datalinks.3pcap
config.status: creating pcap_open_dead.3pcap
config.status: creating pcap_open_offline.3pcap
config.status: creating config.h
config.status: config.h is unchanged
krzysiek@krzysiek-MS-7260:~/Pobrane/libpcap-1.1.1$ 
Wcześniej brakowało flex, bison, yacc, byacc, ale teraz to już nie wiem co mu nie pasuje...
ODPOWIEDZ

Wróć do „Sieci, serwery, Internet”

Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 25 gości