PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : THC Hydra 5.4 Installationsproblem



r00tling
05.09.08, 12:48
Hallo,

ich möchte auf meinen opensuse 10.2 den THC Hydra ohne(!) GTK installieren. leider gibts da ein seltsamens problem:
Wenn ich das ganze compilere und installieren möchte, funktioniert das reine Hydra programm nicht (es ist nur eine leere Datei namens 'hydra' vorhanden). Das beigefügte Programm 'pw-inspector' funktioniert nach dem make install einwandfrei.


./configure --disable-xhydra
make
makeinstall

Hier könnt ihr die ganze Ausgabe von der Konsole sehen:


Passwort:
linux-6r82:/home/server/hydra-5.4-src # ./configure --disable-xhydra

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) ...
... NOT found, module ssh2 disabled
Get it from http://0xbadc0de.be/ - use v0.11!

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

now type "make"
linux-6r82:/home/server/hydra-5.4-src # make
gcc -I. -Wall -O2 -o pw-inspector pw-inspector.c
gcc -I. -Wall -O2 -c hydra-vnc.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-pcnfs.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-rexec.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-nntp.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-socks5.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-telnet.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-cisco.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-http.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-ftp.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-imap.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-pop3.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-smb.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-icq.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-cisco-enable.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-ldap.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-mysql.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-http-proxy.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-smbnt.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-mssql.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-snmp.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-cvs.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-smtpauth.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-sapr3.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-ssh2.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-teamspeak.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-postgres.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-rsh.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-rlogin.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-oracle-listener.c -DLIBOPENSSL -DLIBPOSTGRES
hydra-oracle-listener.c:10:2: warning: #warning "The Oracle Listener module does not work yet"
gcc -I. -Wall -O2 -c hydra-svn.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-pcanywhere.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-sip.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-vmauthd.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-http-proxy-auth-ntlm.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-imap-ntlm.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-pop3-ntlm.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-smtpauth-ntlm.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-http-form.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c crc32.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c d3des.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c md4.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-mod.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c ntlm.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -lm -o hydra hydra-vnc.o hydra-pcnfs.o hydra-rexec.o hydra-nntp.o hydra-socks5.o hydra-telnet.o hydra-cisco.o hydra-http.o hydra-ftp.o hydra-imap.o hydra-pop3.o hydra-smb.o hydra-icq.o hydra-cisco-enable.o hydra-ldap.o hydra-mysql.o hydra-http-proxy.o hydra-smbnt.o hydra-mssql.o hydra-snmp.o hydra-cvs.o hydra-smtpauth.o hydra-sapr3.o hydra-ssh2.o hydra-teamspeak.o hydra-postgres.o hydra-rsh.o hydra-rlogin.o hydra-oracle-listener.o hydra-svn.o hydra-pcanywhere.o hydra-sip.o hydra-vmauthd.o hydra-http-proxy-auth-ntlm.o hydra-imap-ntlm.o hydra-pop3-ntlm.o hydra-smtpauth-ntlm.o hydra-http-form.o crc32.o d3des.o md4.o hydra-mod.o ntlm.o hydra.o -lm -lssl -lpq -lcrypto -L/usr/lib -L/usr/local/lib -L/lib -L/usr/lib || echo -e "\nIF YOU RECEIVED THE ERROR MESSAGE \"cannot find -lpq\" DO THE FOLLOWING:\n make clean; ./configure\n vi Makefile <- and remove the \"-lpq\" and \"-DLIBPOSTGRES\" statements\n make\n"
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld: cannot find -lpq
collect2: ld returned 1 exit status

IF YOU RECEIVED THE ERROR MESSAGE "cannot find -lpq" DO THE FOLLOWING:
make clean; ./configure
vi Makefile <- and remove the "-lpq" and "-DLIBPOSTGRES" statements
make


If men could get pregnant, abortion would be a sacrament


Now type make install
linux-6r82:/home/server/hydra-5.4-src # make install
gcc -I. -Wall -O2 -lm -o hydra hydra-vnc.o hydra-pcnfs.o hydra-rexec.o hydra-nntp.o hydra-socks5.o hydra-telnet.o hydra-cisco.o hydra-http.o hydra-ftp.o hydra-imap.o hydra-pop3.o hydra-smb.o hydra-icq.o hydra-cisco-enable.o hydra-ldap.o hydra-mysql.o hydra-http-proxy.o hydra-smbnt.o hydra-mssql.o hydra-snmp.o hydra-cvs.o hydra-smtpauth.o hydra-sapr3.o hydra-ssh2.o hydra-teamspeak.o hydra-postgres.o hydra-rsh.o hydra-rlogin.o hydra-oracle-listener.o hydra-svn.o hydra-pcanywhere.o hydra-sip.o hydra-vmauthd.o hydra-http-proxy-auth-ntlm.o hydra-imap-ntlm.o hydra-pop3-ntlm.o hydra-smtpauth-ntlm.o hydra-http-form.o crc32.o d3des.o md4.o hydra-mod.o ntlm.o hydra.o -lm -lssl -lpq -lcrypto -L/usr/lib -L/usr/local/lib -L/lib -L/usr/lib || echo -e "\nIF YOU RECEIVED THE ERROR MESSAGE \"cannot find -lpq\" DO THE FOLLOWING:\n make clean; ./configure\n vi Makefile <- and remove the \"-lpq\" and \"-DLIBPOSTGRES\" statements\n make\n"
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld: cannot find -lpq
collect2: ld returned 1 exit status

IF YOU RECEIVED THE ERROR MESSAGE "cannot find -lpq" DO THE FOLLOWING:
make clean; ./configure
vi Makefile <- and remove the "-lpq" and "-DLIBPOSTGRES" statements
make


If men could get pregnant, abortion would be a sacrament

test -e hydra.exe && touch Makefile || strip hydra pw-inspector
strip: 'hydra': No such file
make: [strip] Fehler 1 (ignoriert)
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] Fehler 1 (ignoriert)
linux-6r82:/home/server/hydra-5.4-src #


Wenn ich dann 'hydra' in die konsole eingebe (das programm sollte dann normalerweise starten) passiert nichts, was ja auch klar ist weil in /usr/local/bin nur eine ausführe datei names 'pw_inspector' und eine leere Datei names 'hydra' vorhanden ist:


server@linux-6r82:~> hydra
server@linux-6r82:~>


Hat jemand eine Idee, wie ich das Problem lösen kann? Wär echt super :-)

Dankeschön schonmal im vorraus :-)


Grüße r00tling

Aqualung
05.09.08, 13:58
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld: cannot find -lpq

Fehlerbehebung mit Installation des Pakets "libpq-dev" (Wo es das für 10.2 gibt, keine Ahnung)

r00tling
05.09.08, 19:52
Hallo Aqualung,

VIELEN DANK für deinen Hinweis!! Ich hab mir die Konsolenausgabe nochmal genau angeschaut und folgendes entdeckt:


IF YOU RECEIVED THE ERROR MESSAGE "cannot find -lpq" DO THE FOLLOWING:
make clean; ./configure
vi Makefile <- and remove the "-lpq" and "-DLIBPOSTGRES" statements
make


Dies habe ich dann gemacht, und es funktioniert einwandfrei :-)

Viele Grüße und nochmal danke für deine Hilfe

r00tling

Kitaroot
04.12.08, 21:33
hallo ihrs,

ich hab mich ebenfalls mal im installieren von hydra auf ubuntu versucht und erstmal alle meldungen der module auf found bekommen. leider läufts immernoch nicht ... :(

aber der grund meiner frage ist dieser hier, wer kennt sich mit header dateien aus, hier: "saprfc.h" und kann was mit diesem dateiinhalt anfangen, der ist etwas unsortiert aber müsste doch irgentwie in eine ordentliche form zu bekommen sein das diese headerdatei ordentlich funktioniert. kann es sein das der anfang und das ende nicht stimmt ?

schonmal danke fürs antworten und sorry wenn ich total daneben liege :ugly:

grüße

SAP RFC Library Header File - saprfc.h

NAME
saprfc.h - SAP RFC Library Header File

Data Types

ABAP/4 Data Types

#define TYPC 0
#define TYPDATE 1
#define TYPP 2
#define TYPTIME 3
#define TYPX 4
#define TYPTABH 5
#define TYPNUM 6
#define TYPFLOAT 7
#define TYPINT 8
#define TYPINT2 9
#define TYPINT1 10
#define TYPB 11
#define TYP1 12
#define TYP2 13
/* internal hint :
* ABAP/4 data types must also be defined in abtypes.h
*/

RFC scalar data types

typedef unsigned char RFC_CHAR; /* characters, TYPC */
typedef RFC_CHAR RFC_NUM; /* digits, TYPNUM */
typedef unsigned char RFC_BYTE; /* raw data, TYPX */
typedef unsigned char RFC_BCD; /* packed numbers, */
/* TYPP */
typedef unsigned char RFC_INT1; /* 1 byte integer, */
/* TYPINT1 */
typedef short RFC_INT2; /* 2 byte integer, */
/* TYPINT2 */
typedef double RFC_FLOAT; /* floating point, */
/* TYPFLOAT*/
typedef RFC_CHAR RFC_DATE[8]; /* date, TYPDATE */
/* (YYYYMMDD)*/
typedef RFC_CHAR RFC_TIME[6]; /* time, TYPTIME */
/* (HHMMSS) */

/* for internal use only */
#define NEWITAB_SHARE 0
#define NEWITAB_POP 1
#define NEWITAB_KEEP 2
#define NEWITAB_BYVALUE 3
#define NEWITAB_COPY 4

/* RFC function name */
#define RFC_FUNCTIONNAME_LN 31
typedef char RFC_FUNCTIONNAME[RFC_FUNCTIONNAME_LN];
typedef RFC_RC ( * RFC_ONCALL ) ( RFC_HANDLE handle );

handle for RFC connection

typedef unsigned RFC_HANDLE;
/* Null-Value : handle not set */
#define RFC_HANDLE_NULL 0

typedef void * ITAB_H;

Structure Typedefs

typedef struct
{
void ( * errorhandler ) (char * error_id );
RFC_ALLOCATE allocate;
}
RFC_ENV;

typedef struct
{
char key[33];
char status[128];
char message[256];
char intstat[128];
}
RFC_ERROR_INFO;


typedef enum
{
RFC_MODE_R3ONLY, /* Only for R/3 systems, any kind
* of user
*/
RFC_MODE_CPIC /* can be used for R/2, but
* CPIC-Users only
*/
}
RFC_MODE;


/* internal use */
#define RFC_OPEN_USE_RFC 'R'
#define RFC_OPEN_USE_CPIC ' '

/* Options for an SNA connection (via SAP gateway)
* connection data must be specified at the SAP gateway,
* 'destination' is used as key into the 'sideinfo' file there.
*/
typedef struct
{
char * gateway_host; /* Gateway-Hostname */
char * gateway_service; /* Gateway-Service */
}
RFC_CONNOPT_CPIC;

Options for a connection to another system

typedef struct
{
char * hostname; /* Hostname of target system */
int sysnr; /* System number (0-99) */
char * gateway_host; /* Gateway-Hostname
* (if NULL => hostname)*/
char * gateway_service; /* Gateway-Service
* (if NULL => "sapgw<sysnr>" ) */
}
RFC_CONNOPT_R3ONLY;

typedef struct
{
char * destination; /* Name of destination */
/* connection data */
RFC_MODE mode; /* connection mode (see above) */

void * connopt; /* If connopt = NULL, the 'sideinfo'
* file is used to determine the
* the connection parameters.
* (see CPIC documentation)
*
* Without 'sideinfo' file
* 'connopt' must point to a structure
* of type RFC_CONNOPT_R3ONLY
* or RFC_CONNOPT_CPIC depending
* on the value of 'mode'.
*/
/* sign on data */
char * client; /* client */
char * user; /* user id */
char * password; /* password */
char * language; /* language */
/* options */
int trace; /* trace (written to 'dev_rfc') */
}
RFC_OPTIONS;

RFC return codes

typedef enum
{
RFC_OK, /* O.K. */
RFC_FAILURE, /* Error occured */
RFC_EXCEPTION, /* Exception raised */
RFC_SYS_EXCEPTION, /* System exception raised,
/* connection closed */
RFC_CALL, /* Call received */
RFC_INTERNAL_COM, /* Internal communication, repeat */
RFC_CLOSED, /* Connection closed by the */
/* other side */
RFC_RETRY /* No data yet (RfcListen only) */
}
RFC_RC;

RFC parameters

typedef struct
{
void * name; /* Name of the field (in the interface
* definition of the function) */
unsigned nlen; /* Length of the name
* (should be strlen(name)) */
unsigned type; /* Datatype of the field */
unsigned leng; /* Length of the field in Bytes */
void * addr; /* Address of the field to be
* exported or imported */
}
RFC_PARAMETER;


typedef enum
{
RFC_ITMODE_BYREFERENCE, /* Table is passed by
* reference (should be the default
* behaviour) */
RFC_ITMODE_BYVALUE, /* Table is passed by value,
* changes are not transported back */
RFC_ITMODE_KEEPALIVE /* Table is passed by reference,
* but is kept alive after returning
* (i.e. after RfcSendData) */
}
RFC_ITMODE;

typedef struct
{
void * name; /* Name of the table (in the
* interface definition of the function)*/
unsigned nlen; /* Length of the name
* (should be strlen(name))*/
unsigned type; /* Datatype of the lines
* of the table */
unsigned leng; /* length of a row in bytes */
ITAB_H ithandle; /* Table handle (type ITAB_H),
* i.e. the address of the control
* structure of the internal table.
*
* Input field at RfcCall, output field
* at RfcGetData ! */
RFC_ITMODE itmode; /* mode, how this table has to
* be received :
* call by reference <-> call by value.
* (only for RfcGetData, has no effect
* in RfcCall). */
int newitab; /* Table was created by RfcGetData,
* if the value is not 0 after RfcGetData.
* Internal use only. Must not be modifed
* between RfcGetData and RfcSendData ! */
}
RFC_TABLE;

Function Prototypes

void RfcInit( void );
typedef void * (* RFC_ALLOCATE)( void * old_ptr,
unsigned long size);
void RfcEnvironment( RFC_ENV * new_env );
int RfcLastError( RFC_ERROR_INFO * error_info );
RFC_HANDLE RfcOpen( RFC_OPTIONS * options );
RFC_HANDLE RfcAccept(char ** argv );
void RfcClose( RFC_HANDLE handle );
void RfcAbort( RFC_HANDLE handle, char * text );
RFC_RC RfcCall( RFC_HANDLE handle,
char * function,
RFC_PARAMETER * parameters,
RFC_TABLE * tables );
RFC_RC RfcReceive( RFC_HANDLE handle,
RFC_PARAMETER * parameters,
RFC_TABLE * tables,
char ** exception );
RFC_RC RfcCallReceive( RFC_HANDLE handle,
char * function,
RFC_PARAMETER * exporting,
RFC_PARAMETER * importing,
RFC_TABLE * tables,
char ** exception );
RFC_RC RfcGetName ( RFC_HANDLE handle,
RFC_FUNCTIONNAME functionname );
RFC_RC RfcGetData ( RFC_HANDLE handle,
RFC_PARAMETER * parameters,
RFC_TABLE * tables );
RFC_RC RfcSendData( RFC_HANDLE handle,
RFC_PARAMETER * parameters,
RFC_TABLE * tables );
RFC_RC RfcRaise ( RFC_HANDLE handle,
char * exceptionn );
RFC_RC RfcListen ( RFC_HANDLE handle );
int RfcConnArgv( char ** argv,
RFC_OPTIONS * rfc_opt,
RFC_CONNOPT_CPIC * connopt_cpic,
RFC_CONNOPT_R3ONLY * connopt_r3only );
RFC_RC RfcSendSystemInfo( RFC_HANDLE handle );
RFC_RC RfcSendPing ( RFC_HANDLE handle );
RFC_RC RfcSendDocu ( RFC_HANDLE handle );
RFC_RC RfcInstallFunction(RFC_FUNCTIONNAME functionname,
RFC_ONCALL f_ptr,
char * docu );
RFC_RC RfcDispatch( RFC_HANDLE );

Files
saprfc.h

Notes
tbd