THC-Hydra błąd podczas instalacji

Instalacja i konfiguracja oprogramowania sieciowego.
garf
Piegowaty Guziec
Piegowaty Guziec
Posty: 15
Rejestracja: 13 maja 2007, 17:51
Płeć: Mężczyzna
Wersja Ubuntu: 22.04
Środowisko graficzne: GNOME
Architektura: x86_64

THC-Hydra błąd podczas instalacji

Post autor: garf »

Witam.
Pobrałem sobie najnowszą paczeke hydry:

Kod: Zaznacz cały

http://freeworld.thc.org/releases/hydra-5.4-src.tar.gz
Udało mi się ją skonfigurować:

Kod: Zaznacz cały

marek@marek-laptop:~/Pulpit/hydra/hydra-gtk$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... missing
checking for working autoconf... missing
checking for working automake-1.4... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles... no
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 ANSI C... none needed
checking for strerror in -lcposix... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for pkg-config... /usr/bin/pkg-config
checking for gtk+-2.0 >= 2.0.0... yes
checking PACKAGE_CFLAGS... -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  
checking PACKAGE_LIBS... -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lgio-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0  
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands

Wygląda że wszysko ok to teraz przechodze do instalacji (Hydra-GTK):

Kod: Zaznacz cały

marek@marek-laptop:~/Pulpit/hydra/hydra-gtk$ sudo make install
Making install in src
make[1]: Wejście do katalogu `/home/marek/Pulpit/hydra/hydra-gtk/src'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" 	-DPACKAGE_LOCALE_DIR=\""/usr/local//locale"\" 	-D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include      -g -O2 -c callbacks.c
callbacks.c: In function ?popen_re_unbuffered?:
callbacks.c:532: warning: format not a string literal and no format arguments
callbacks.c: In function ?on_btnSave_clicked?:
callbacks.c:668: warning: ignoring return value of ?write?, declared with attribute warn_unused_result
In file included from /usr/include/fcntl.h:217,
                 from callbacks.c:27:
In function ?open?,
    inlined from ?on_btnSave_clicked? at callbacks.c:666:
/usr/include/bits/fcntl2.h:51: error: call to ?__open_missing_mode? declared with attribute error: open with O_CREAT in second argument needs 3 arguments
In file included from /usr/include/stdio.h:910,
                 from /usr/include/pango-1.0/pango/pango-utils.h:25,
                 from /usr/include/pango-1.0/pango/pango.h:46,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:37,
                 from /usr/include/gtk-2.0/gdk/gdkscreen.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:32,
                 from callbacks.c:11:
In function ?snprintf?,
    inlined from ?hydra_get_options? at callbacks.c:247:
/usr/include/bits/stdio2.h:65: warning: call to __builtin___snprintf_chk will always overflow destination buffer
make[1]: *** [callbacks.o] Błąd 1
make[1]: Opuszczenie katalogu `/home/marek/Pulpit/hydra/hydra-gtk/src'
make: *** [install-recursive] Błąd 1
No i na końcu błąd. Szukałem w google ale nic nie potrafiłem znleść.
Czy ktoś zna rozwiązanie tego problemu ?

EDIT:
Próbowałem również zainstalować normalną hydre


./configure

Kod: Zaznacz cały

marek@marek-laptop:~/Pulpit/hydra$ ./configure

Starting hydra auto configuration ...

Checking for openssl (libssl/ssl.h) ...
                                    ... found
Checking for Postgres (libpq) ...
                              ... found
Checking for SVN (ibsvn_client-1 libapr-0.so libaprutil-0.so) ...
                              ... found
Checking for SAP/R3 (librfc/saprfc.h) ...
                                      ... NOT found, module sapr3 disabled
Get it from http://www.sap.com/solutions/netweaver/linux/eval/index.asp
Checking for libssh (libssh/libssh.h) ...
                                      ... found
NOTE: ensure that you have libssh v0.11 installed!! Get it from http://0xbadc0de.be !

Hydra will be installed into .../bin of: /usr/local
  (change this by running ./configure --prefix=path)

Writing Makefile.in ...

NOTES NOTES NOTES NOTES NOTES NOTES NOTES NOTES NOTES NOTES NOTES NOTES
=======================================================================
ARM/PalmPilot users: please run ./configure-arm or ./configure-palm respectivly
make

Kod: Zaznacz cały

marek@marek-laptop:~/Pulpit/hydra$ sudo make
cd hydra-gtk && ./make_xhydra.sh
Trying to compile xhydra now (hydra gtk gui) - dont worry if this fails, this is really optional ...
Error: could not compile. Analyse this:
callbacks.c: In function ?popen_re_unbuffered?:
callbacks.c:532: warning: format not a string literal and no format arguments
callbacks.c: In function ?on_btnSave_clicked?:
callbacks.c:668: warning: ignoring return value of ?write?, declared with attribute warn_unused_result
In file included from /usr/include/fcntl.h:217,
                 from callbacks.c:27:
In function ?open?,
    inlined from ?on_btnSave_clicked? at callbacks.c:666:
/usr/include/bits/fcntl2.h:51: error: call to ?__open_missing_mode? declared with attribute error: open with O_CREAT in second argument needs 3 arguments
In file included from /usr/include/stdio.h:910,
                 from /usr/include/pango-1.0/pango/pango-utils.h:25,
                 from /usr/include/pango-1.0/pango/pango.h:46,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:37,
                 from /usr/include/gtk-2.0/gdk/gdkscreen.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:32,
                 from callbacks.c:11:
In function ?snprintf?,
    inlined from ?hydra_get_options? at callbacks.c:247:
/usr/include/bits/stdio2.h:65: warning: call to __builtin___snprintf_chk will always overflow destination buffer
make[3]: *** [callbacks.o] Błąd 1
make[2]: *** [all-recursive] Błąd 1
make[1]: *** [all-recursive-am] Błąd 2

Do not worry, as I said, xhydra is really optional. ./hydra is ready to go!

Kod: Zaznacz cały

marek@marek-laptop:~/Pulpit/hydra$ sudo make install
test -e hydra.exe && touch Makefile || strip hydra pw-inspector
make: [strip] Błąd 1 (zignorowany)
test -e hydra.exe && strip hydra.exe pw-inspector.exe || touch hydra
test -e xhydra && strip xhydra || touch Makefile
test -e hydra.exe && touch Makefile || cp hydra pw-inspector /usr/local/bin && cd /usr/local/bin && chmod 755 hydra pw-inspector
test -e hydra.exe && cp hydra.exe pw-inspector.exe /usr/local/bin && cd /usr/local/bin && chmod 755 hydra.exe pw-inspector.exe || touch Makefile
test -e xhydra && cp xhydra /usr/local/bin && cd /usr/local/bin && chmod 755 xhydra
make: [install] Błąd 1 (zignorowany)
./hydra

Kod: Zaznacz cały

marek@marek-laptop:~/Pulpit/hydra$ sudo ./hydra
sudo: ./hydra: command not found

Po przeszukaniu licznej ilości stron www znalazłem:

Kod: Zaznacz cały

if you get the following error building XHydra:

/usr/include/bits/fcntl2.h:51: error: call to "__open_missing_mode" declared with attribute error: open with O_CREAT in second argument needs 3 arguments

You will need to change the following line in hydra-gtk/src/callbacks.c:
fd = open(filename, O_CREAT | O_TRUNC | O_WRONLY);
into:
fd = open(filename, O_CREAT | O_TRUNC | O_WRONLY, 0666);
i mój błąd teraz wygląda tak:

make

Kod: Zaznacz cały

marek@marek-laptop:~/Pulpit/hydra$ sudo make

Now type make install
ale gdy wpisuje make instal to samo co wyżej :(nie działa
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 100 gości