mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-14 02:27:31 -07:00
./configure --fhs support
This commit is contained in:
parent
e693c2fe8f
commit
533fb1772d
4 changed files with 26 additions and 6 deletions
1
CHANGES
1
CHANGES
|
@ -15,6 +15,7 @@ Release 8.2-pre
|
||||||
* Fixed an out of memory bug in http-form
|
* Fixed an out of memory bug in http-form
|
||||||
* Fixed imap PLAIN method
|
* Fixed imap PLAIN method
|
||||||
* Added warning if HYDRA_PROXY_CONNECT environment is detected, that is an outdated setting
|
* Added warning if HYDRA_PROXY_CONNECT environment is detected, that is an outdated setting
|
||||||
|
* Added --fhs switch to configure (for Linux distribution usage)
|
||||||
* ... your patch?
|
* ... your patch?
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# Makefile for Hydra - (c) 2001-2014 by van Hauser / THC <vh@thc.org>
|
# Makefile for Hydra - (c) 2001-2016 by van Hauser / THC <vh@thc.org>
|
||||||
#
|
#
|
||||||
OPTS=-I. -O3
|
OPTS=-I. -O3
|
||||||
# -Wall -g -pedantic
|
# -Wall -g -pedantic
|
||||||
|
|
25
configure
vendored
25
configure
vendored
|
@ -6,6 +6,7 @@
|
||||||
if [ "$1" = "-h" -o "$1" = "--help" ]; then
|
if [ "$1" = "-h" -o "$1" = "--help" ]; then
|
||||||
echo Options:
|
echo Options:
|
||||||
echo " --prefix=path path to install hydra and its datafiles to"
|
echo " --prefix=path path to install hydra and its datafiles to"
|
||||||
|
echo " --fhs install according to the File System Hierarchy Standard"
|
||||||
echo " --with-oracle=prefix prefix for oracle include dir"
|
echo " --with-oracle=prefix prefix for oracle include dir"
|
||||||
echo " --with-oracle-lib=prefix prefix for oracle lib dir"
|
echo " --with-oracle-lib=prefix prefix for oracle lib dir"
|
||||||
echo " --with-ssl=prefix prefix for SSL headers"
|
echo " --with-ssl=prefix prefix for SSL headers"
|
||||||
|
@ -17,6 +18,7 @@ if [ "$1" = "-h" -o "$1" = "--help" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
FHS=""
|
||||||
SIXFOUR=""
|
SIXFOUR=""
|
||||||
DEBUG=""
|
DEBUG=""
|
||||||
PREFIX=""
|
PREFIX=""
|
||||||
|
@ -72,6 +74,12 @@ if [ '!' "X" = "X$*" ]; then
|
||||||
NOSTRIP="yes"
|
NOSTRIP="yes"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
if [ "X" = "X$FHS" ]; then
|
||||||
|
FHS_TMP=`echo "$1"|sed 's/.*--fhs//'`
|
||||||
|
if [ -z "$FHS_TMP" ]; then
|
||||||
|
FHS="yes"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
if [ "X" = "X$DEBUG" ]; then
|
if [ "X" = "X$DEBUG" ]; then
|
||||||
DEBUG_TMP=`echo "$1"|sed 's/.*--debug//'`
|
DEBUG_TMP=`echo "$1"|sed 's/.*--debug//'`
|
||||||
if [ -z "$DEBUG_TMP" ]; then
|
if [ -z "$DEBUG_TMP" ]; then
|
||||||
|
@ -1191,9 +1199,16 @@ else
|
||||||
XHYDRA_SUPPORT="xhydra"
|
XHYDRA_SUPPORT="xhydra"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Hydra will be installed into .../bin of: $PREFIX"
|
if [ "X" != "X$FHS" ]; then
|
||||||
echo " (change this by running ./configure --prefix=path)"
|
PREFIX=/usr
|
||||||
echo
|
echo "Hydra will be installed into .../bin of: $PREFIX"
|
||||||
|
echo " (according to the File System Hierarchy Standard)"
|
||||||
|
echo
|
||||||
|
else
|
||||||
|
echo "Hydra will be installed into .../bin of: $PREFIX"
|
||||||
|
echo " (change this by running ./configure --prefix=path)"
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "X" != "X$DEBUG" ]; then
|
if [ "X" != "X$DEBUG" ]; then
|
||||||
echo DEBUG: XDEFINES=$XDEFINES $MATH
|
echo DEBUG: XDEFINES=$XDEFINES $MATH
|
||||||
|
@ -1206,6 +1221,10 @@ if [ "X" != "X$DEBUG" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Writing Makefile.in ..."
|
echo "Writing Makefile.in ..."
|
||||||
|
if [ "X" != "X$FHS" ]; then
|
||||||
|
echo "MANDIR = /share/man/man1" >> Makefile.in
|
||||||
|
echo "DATADIR = /share/hydra" >> Makefile.in
|
||||||
|
fi
|
||||||
echo "XDEFINES=$XDEFINES $MATH" >> Makefile.in
|
echo "XDEFINES=$XDEFINES $MATH" >> Makefile.in
|
||||||
echo "XLIBS=$XLIBS" >> Makefile.in
|
echo "XLIBS=$XLIBS" >> Makefile.in
|
||||||
echo "XLIBPATHS=$XLIBPATHS" >> Makefile.in
|
echo "XLIBPATHS=$XLIBPATHS" >> Makefile.in
|
||||||
|
|
4
hydra.c
4
hydra.c
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* hydra (c) 2001-2014 by van Hauser / THC <vh@thc.org>
|
* hydra (c) 2001-2016 by van Hauser / THC <vh@thc.org>
|
||||||
* http://www.thc.org
|
* http://www.thc.org
|
||||||
*
|
*
|
||||||
* Parallized network login hacker.
|
* Parallized network login hacker.
|
||||||
|
@ -2173,7 +2173,7 @@ int main(int argc, char *argv[]) {
|
||||||
struct sockaddr_in6 *ipv6 = NULL;
|
struct sockaddr_in6 *ipv6 = NULL;
|
||||||
struct sockaddr_in *ipv4 = NULL;
|
struct sockaddr_in *ipv4 = NULL;
|
||||||
|
|
||||||
printf("%s %s (c) 2014 by %s - Please do not use in military or secret service organizations, or for illegal purposes.\n\n", PROGRAM, VERSION, AUTHOR);
|
printf("%s %s (c) 2016 by %s - Please do not use in military or secret service organizations, or for illegal purposes.\n\n", PROGRAM, VERSION, AUTHOR);
|
||||||
#ifndef LIBPOSTGRES
|
#ifndef LIBPOSTGRES
|
||||||
SERVICES = hydra_string_replace(SERVICES, "postgres ", "");
|
SERVICES = hydra_string_replace(SERVICES, "postgres ", "");
|
||||||
strcat(unsupported, "postgres ");
|
strcat(unsupported, "postgres ");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue