public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Simone Caronni <negativo17@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/hydra] epel10: Clean up SPEC file, fix build on Fedora 40+
Date: Fri, 06 Nov 2026 15:26:02 GMT [thread overview]
Message-ID: <179397876265.1.15014933287876589706.rpms-hydra-1cf98a48de94@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/hydra
Branch : epel10
Commit : 1cf98a48de94c51d1d8ff14009867bcd1140ca0e
Author : Simone Caronni <negativo17@gmail.com>
Date : 2024-02-09T09:37:03+01:00
Stats : +45/-670 in 12 file(s)
URL : https://src.fedoraproject.org/rpms/hydra/c/1cf98a48de94c51d1d8ff14009867bcd1140ca0e?branch=epel10
Log:
Clean up SPEC file, fix build on Fedora 40+
---
diff --git a/hydra-c99.patch b/hydra-c99.patch
deleted file mode 100644
index de78cc4..0000000
--- a/hydra-c99.patch
+++ /dev/null
@@ -1,75 +0,0 @@
-Improve C99 compatibility by declaring called functions explicitly:
-
-strrchr is declared in <strings.h>, not <string.h>.
-
-_GNU_SOURCE needs to be defined before any glibc headers are included,
-otherwise it is not effective.
-
-Also patch some old autoconf-internal issues in the hydra-gtk
-configure script.
-
-Submitted upstream: <https://github.com/vanhauser-thc/thc-hydra/pull/817>
-
-diff --git a/configure b/configure
-index d9c8b020798c6b1c..425f80a8abdfbd00 100755
---- a/configure
-+++ b/configure
-@@ -1356,7 +1356,7 @@ echo "Checking for Android specialities ..."
- TMPC=comptest$$
- STRRCHR=" not"
- echo '#include <stdio.h>' > $TMPC.c
--echo '#include <strings.h>' >> $TMPC.c
-+echo '#include <string.h>' >> $TMPC.c
- echo "int main() { char *x = strrchr(\"test\", 'e'); if (x == NULL) return 0; else return 1; }" >> $TMPC.c
- $CC -o $TMPC $TMPC.c > /dev/null 2>&1
- test -x $TMPC && STRRCHR=""
-diff --git a/hydra-gtk/configure b/hydra-gtk/configure
-index 653ba7df294ebb82..6cd3de715ba40056 100755
---- a/hydra-gtk/configure
-+++ b/hydra-gtk/configure
-@@ -2391,7 +2391,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- for ac_declaration in \
-- '' \
-+ '#include <stdlib.h>' \
- 'extern "C" void std::exit (int) throw (); using std::exit;' \
- 'extern "C" void std::exit (int); using std::exit;' \
- 'extern "C" void exit (int) throw ();' \
-@@ -3192,7 +3192,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- for ac_declaration in \
-- '' \
-+ '#include <stdlib.h>' \
- 'extern "C" void std::exit (int) throw (); using std::exit;' \
- 'extern "C" void std::exit (int); using std::exit;' \
- 'extern "C" void exit (int) throw ();' \
-@@ -3797,8 +3797,8 @@ main ()
- for (i = 0; i < 256; i++)
- if (XOR (islower (i), ISLOWER (i))
- || toupper (i) != TOUPPER (i))
-- exit(2);
-- exit (0);
-+ return 2;
-+ return 0;
- }
- _ACEOF
- rm -f conftest$ac_exeext
-diff --git a/hydra-rtsp.c b/hydra-rtsp.c
-index 3b6e84b292761d23..3b4bdca021111f47 100644
---- a/hydra-rtsp.c
-+++ b/hydra-rtsp.c
-@@ -6,10 +6,11 @@
- //
- //
-
-+#define _GNU_SOURCE
-+
- #include "hydra-mod.h"
- #include "sasl.h"
- #include <stdio.h>
--#define _GNU_SOURCE
- #include <string.h>
-
- extern char *HYDRA_EXIT;
diff --git a/hydra.spec b/hydra.spec
index fbbc91a..09b8457 100644
--- a/hydra.spec
+++ b/hydra.spec
@@ -1,56 +1,47 @@
Summary: Very fast network log-on cracker
Name: hydra
Version: 9.5
-Release: 5%{?dist}
+Release: 6%{?dist}
License: AGPLv3 with exceptions
-# Old URL https://www.thc.org/thc-hydra/
URL: https://github.com/vanhauser-thc/thc-hydra
-Source0: https://github.com/vanhauser-thc/thc-hydra/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
-Source1: xhydra.desktop
-# Upstream provides non-transparent jpeg
-Source2: xhydra.png
+
+Source0: https://github.com/vanhauser-thc/thc-hydra/archive/v%{version}/%{name}-%{version}.tar.gz
# Sent upstream via email 20120518
Patch0: hydra-use-system-libpq-fe.patch
Patch1: hydra-fix-dpl4hydra-dir.patch
+BuildRequires: afpfs-ng-devel
BuildRequires: apr-devel
BuildRequires: desktop-file-utils
-
-%ifnarch s390x
BuildRequires: firebird-devel
-BuildRequires: libfbclient2-devel
-%endif
-
+BuildRequires: freerdp2-devel
BuildRequires: gcc
BuildRequires: gtk2-devel
BuildRequires: gtk2-devel
+BuildRequires: libbson-devel
+BuildRequires: libfbclient2-devel
+BuildRequires: libgcrypt-devel
BuildRequires: libidn-devel
+BuildRequires: libmemcached-devel
+BuildRequires: libpq-devel
+BuildRequires: libsmbclient-devel
BuildRequires: libssh-devel
+BuildRequires: libwinpr2-devel
BuildRequires: make
BuildRequires: mariadb-connector-c-devel
+BuildRequires: memcached-devel
+BuildRequires: mongo-c-driver-devel
+BuildRequires: ncurses-devel
BuildRequires: openssl-devel
BuildRequires: pcre2-devel
BuildRequires: pkgconfig
-BuildRequires: libpq-devel
BuildRequires: subversion-devel
-BuildRequires: memcached-devel
-BuildRequires: libmemcached-devel
-BuildRequires: mongodb-devel
-BuildRequires: mongo-c-driver-devel
-BuildRequires: libbson-devel
-BuildRequires: freerdp-devel
-BuildRequires: libwinpr-devel
-BuildRequires: afpfs-ng-devel
-BuildRequires: libgcrypt-devel
-BuildRequires: ncurses-devel
-BuildRequires: libsmbclient-devel
-
%description
-Hydra is a parallelized log-in cracker which supports numerous protocols to
+Hydra is a parallelized log-in cracker which supports numerous protocols to
attack. New modules are easy to add, beside that, it is flexible and very fast.
-This tool gives researchers and security consultants the possibility to show
+This tool gives researchers and security consultants the possibility to show
how easy it would be to gain unauthorized access from remote to a system.
%package frontend
@@ -62,45 +53,53 @@ This package includes xhydra, a GTK+ front end for hydra.
%prep
%autosetup -p 1 -n thc-hydra-%{version}
-
%build
%configure --nostrip
-# Already in 9.1-dev
-export CFLAGS="$CFLAGS -fcommon"
-make %{?_smp_mflags}
+%make_build
%install
-
-make install DESTDIR="%{buildroot}" PREFIX="" BINDIR="%{_bindir}" MANDIR="%{_mandir}/man1" DATADIR="%{_datadir}/%{name}" \
- PIXDIR="%{_datadir}/pixmaps" APPDIR="%{_datadir}/applications"
-
-mkdir -p %{buildroot}%{_datadir}/{applications,pixmaps}
-install -m 644 -p %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/
-desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE1};
+%make_install \
+ PREFIX="" \
+ BINDIR="%{_bindir}" \
+ MANDIR="%{_mandir}/man1" \
+ DATADIR="%{_datadir}/%{name}" \
+ PIXDIR="%{_datadir}/pixmaps" \
+ APPDIR="%{_datadir}/applications"
# Fix dpl4hydra.sh (w/o buildroot prefix)
sed -i 's|^INSTALLDIR=.*|INSTALLDIR=/usr|' %{buildroot}/%{_bindir}/dpl4hydra.sh
+%check
+desktop-file-validate %{buildroot}/%{_datadir}/applications/xhydra.desktop
%files
%doc CHANGES README
%license LICENSE
+%{_bindir}/dpl4hydra.sh
%{_bindir}/hydra
-%{_bindir}/pw-inspector
%{_bindir}/hydra-wizard.sh
-%{_bindir}/dpl4hydra.sh
-%{_mandir}/man1/hydra*
-%{_mandir}/man1/pw-inspector*
-%{_datadir}/%{name}/dpl4hydra*.csv
-%dir %{_datadir}/%{name}
+%{_bindir}/pw-inspector
+%{_datadir}/%{name}
+%{_mandir}/man1/hydra.1*
+%{_mandir}/man1/pw-inspector.1*
%files frontend
%{_bindir}/xhydra
-%{_mandir}/man1/xhydra*
-%{_datadir}/pixmaps/*
-%{_datadir}/applications/*
+%{_datadir}/pixmaps/xhydra.png
+%{_datadir}/applications/xhydra.desktop
+%{_mandir}/man1/xhydra.1*
%changelog
+* Fri Feb 09 2024 Simone Caronni <negativo17@gmail.com> - 9.5-6
+- Clean up SPEC file.
+- Adjust build requirements:
+ * Use FreeRDP 2, FreeRDP 3 does not build.
+ * Remove exceptions for s390x.
+ * Drop MongoDB build requirement, it does no longer exist.
+- Use upstream desktop and icon file, they are the same.
+- Clean up repository of unused files.
+- Trim changelog.
+
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 9.5-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
@@ -161,179 +160,3 @@ sed -i 's|^INSTALLDIR=.*|INSTALLDIR=/usr|' %{buildroot}/%{_bindir}/dpl4hydra.sh
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 9.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
-
-* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.0-5
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
-
-* Fri May 22 2020 Simone Caronni <negativo17@gmail.com> - 9.0-4
-- Rebuild for updated FreeRDP.
-
-* Tue Mar 03 2020 Michal Ambroz <rebus _at seznam.cz> 9.0-3
-- add buildrequires for memcached, mongodb, freerdp, afpfs, gcrypt, ncurses
-- fix firebird includes
-- honor the %%license tag
-- build with fcommon to fix issue with "multiple definition of"
-
-* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.0-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
-
-* Mon Oct 07 2019 Othman Madjoudj <athmane@fedoraproject.org> - 9.0-1
-- Update to 9.0 (rhbz #1711202)
-
-* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.9.1-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
-
-* Fri Mar 08 2019 Michal Ambroz <rebus _at seznam.cz> 8.9.1-1
-- Update to 8.9.1
-
-* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.6-9
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
-
-* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 8.6-8
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
-
-* Sat May 12 2018 Athmane Madjoudj <athmane@fedoraproject.org> - 8.6-7
-- rebuilt
-
-* Sun Feb 18 2018 Athmane Madjoudj <athmane@fedoraproject.org> - 8.6-6
-- Add make and gcc as BRs
-
-* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 8.6-5
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
-
-* Wed Sep 20 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 8.6-4
-- Fix BuildReqs
-
-* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 8.6-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
-
-* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 8.6-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
-
-* Sat Jul 22 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 8.6-1
-- Update to 8.6 (rhbz #1473874)
-- Fix source URL
-
-* Wed May 03 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 8.5-1
-- Update to 8.5
-
-* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 8.4-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
-
-* Sat Jan 28 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 8.4-1
-- Update to 8.4
-- Fix Source0
-
-* Fri Aug 12 2016 Athmane Madjoudj <athmane@fedoraproject.org> - 8.3-1
-- Update to 8.3
-- FIx URL since upstream now uses git tags
-
-* Fri Jun 17 2016 Michal Ambroz <rebus _at seznam.cz> 8.2-1
-- Update to 8.2
-
-* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 8.1-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
-
-* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.1-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
-
-* Sun Dec 21 2014 Athmane Madjoudj <athmane@fedoraproject.org> 8.1-1
-- Update to 8.1
-
-* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.0-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
-
-* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.0-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
-
-* Sun May 25 2014 Athmane Madjoudj <athmane@fedoraproject.org> 8.0-1
-- Update to 8.0
-
-* Mon Dec 30 2013 Athmane Madjoudj <athmane@fedoraproject.org> 7.6-1
-- Update to 7.6
-- Include hydra-wizard script (new in 7.6)
-- Fix icon filename
-- Add a png icon since upstream only provides non-transparent jpeg
-
-* Mon Nov 18 2013 Athmane Madjoudj <athmane@fedoraproject.org> 7.5-2
-- Use new source file from upstream (contains minor license file fixes)
-
-* Sun Aug 04 2013 Athmane Madjoudj <athmane@fedoraproject.org> 7.5-1
-- Update to 7.5
-- Update license tag.
-
-* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.4.2-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
-
-* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.4.2-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
-
-* Tue Jan 08 2013 Athmane Madjoudj <athmane@fedoraproject.org> 7.4.2-1
-- Update to 7.4.2
-
-* Sun Dec 23 2012 Athmane Madjoudj <athmane@fedoraproject.org> 7.4-1
-- Update to 7.4
-- Remove s390x patch (upstreamed)
-
-* Sat Dec 22 2012 Dan Horák <dan[at]danny.cz> 7.3-13
-- s390x is 64-bit arch
-
-* Mon Sep 10 2012 Athmane Madjoudj <athmane@fedoraproject.org> 7.3-12
-- Remove dep on ncpfs-devel since it's a dead upstream.
-
-* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.3-11
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
-
-* Mon May 28 2012 Athmane Madjoudj <athmane@fedoraproject.org> 7.3-10
-- Fix binaries striping issue (#825860)
-
-* Tue May 22 2012 Athmane Madjoudj <athmane@fedoraproject.org> 7.3-9
-- Update to 7.3
-- Drop some patches since they're included in 7.3
-- Add two patches to fix makefile and dpl4hydra
-
-* Fri May 18 2012 Athmane Madjoudj <athmane@fedoraproject.org> 7.2-8
-- Add LICENSE.OPENSSL
-- Add /usr/share/hydra
-- Add a patch to use system provided libpq-fe headers (provided by
- postgresql-devel)
-
-* Tue Apr 17 2012 Athmane Madjoudj <athmane@fedoraproject.org> 7.2-7
-- Add DESTDIR support
-- Include dpl4hydra
-
-* Mon Apr 16 2012 Athmane Madjoudj <athmane@fedoraproject.org> 7.2-6
-- Reverse a patch because it breaks brute-forcing NTLM-enabled services
- (upstream confirmed that it's not necessary)
-
-* Tue Mar 13 2012 Athmane Madjoudj <athmane@fedoraproject.org> 7.2-5
-- Add patch to support mysql
-- Add patch to fix warnings
-
-* Thu Mar 08 2012 Athmane Madjoudj <athmane@fedoraproject.org> 7.2-4
-- Preserve timestamps on install
-- Remove extra arg in desktop file install
-
-* Sat Feb 11 2012 Athmane Madjoudj <athmane@fedoraproject.org> 7.2-3
-- Add support for CFLAGS
-
-* Sat Feb 11 2012 Athmane Madjoudj <athmane@fedoraproject.org> 7.2-2
-- Clean-up the descriptions
-- Add Firebird support
-
-* Sat Feb 11 2012 Athmane Madjoudj <athmane@fedoraproject.org> 7.2-1
-- Update to 7.2
-
-* Tue Dec 27 2011 Athmane Madjoudj <athmane@fedoraproject.org> 7.1-3
-- Remove rm -rf buildroot
-
-* Thu Dec 22 2011 Athmane Madjoudj <athmane@fedoraproject.org> 7.1-2
-- Update license to GPLv3 with OpenSSL exception
-
-* Thu Dec 22 2011 Athmane Madjoudj <athmane@fedoraproject.org> 7.1-1
-- Update to recent version
-- Clean-up the spec file
-- Add desktop file for the frontend
-
-* Sun Jul 04 2010 Marcus Haebler <haebler@gmail.com> - 0:5.7-0
-- Initial RPM build
diff --git a/hydra_func_tests/README b/hydra_func_tests/README
deleted file mode 100644
index 1978195..0000000
--- a/hydra_func_tests/README
+++ /dev/null
@@ -1 +0,0 @@
-Hydra functional tests, I use them to check that hydra is working correctly before pushing the packages.
diff --git a/hydra_func_tests/formauthserver.py b/hydra_func_tests/formauthserver.py
deleted file mode 100644
index c6f16df..0000000
--- a/hydra_func_tests/formauthserver.py
+++ /dev/null
@@ -1,23 +0,0 @@
-from bottle import *
-
-@get('/login')
-def login():
- return '''
- <form action="/login" method="post">
- Username: <input name="username" type="text" />
- Password: <input name="password" type="password" />
- <input value="Login" type="submit" />
- </form>
- '''
-
-@post('/login')
-def do_login():
- username = request.forms.get('username')
- password = request.forms.get('password')
- if username == 'admin' and password == 'password':
- return "Login correct."
- else:
- return "Login failed."
-
-if __name__ == '__main__':
- run(host='localhost', port=8081, debug=True)
diff --git a/hydra_func_tests/logins_passwords.txt b/hydra_func_tests/logins_passwords.txt
deleted file mode 100644
index d0df5a8..0000000
--- a/hydra_func_tests/logins_passwords.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-123456
-password
-root
-test
-admin
-user
diff --git a/hydra_func_tests/run_tests.sh b/hydra_func_tests/run_tests.sh
deleted file mode 100755
index 4ff879f..0000000
--- a/hydra_func_tests/run_tests.sh
+++ /dev/null
@@ -1,63 +0,0 @@
-# Author: Athmane Madjoudj <athmane@fedoraproject.org>
-# TODO: port to beakerlib
-
-LOG_FILE="`mktemp /tmp/hydra_func_tests_log.XXXXXXXXXX`"
-
-function tests_setup()
-{
- sudo dnf -y install python2-twisted python2-bottle
-}
-
-function check_status()
-{
- # $1: Status code
- # $2: Message to display
- if [ "$1" -ne 0 ]; then
- echo -e "\e[31m[FAIL]\e[0m $2"
- else
- echo -e "\e[32m[SUCCESS]\e[0m $2"
- fi
-}
-
-function test_hydra_ssh_brute()
-{
- python2 sshsimpleserver.py &
- my_ssh_srv_pid=$!
- sleep 2
- hydra -V -v -L logins_passwords.txt -P logins_passwords.txt ssh://localhost:5022/ | grep 'successfully'
- hydra_exit_status=$?
- kill $my_ssh_srv_pid
- sleep 2
- check_status $hydra_exit_status "Hydra can bruteforce ssh login test" >> $LOG_FILE
-}
-
-function test_hydra_http_form_auth_brute()
-{
- python2 formauthserver.py &
- my_http_srv_pid=$!
- sleep 2
- hydra -V -v -L logins_passwords.txt -P logins_passwords.txt -s 8081 localhost http-post-form "/login:login&username=^USER^&password=^PASS^:failed" | grep 'successfully'
- hydra_exit_status=$?
- kill $my_http_srv_pid
- sleep 2
- check_status $hydra_exit_status "Hydra can bruteforce http form login test" >> $LOG_FILE
-}
-
-function print_results()
-{
- echo -e "\n\n==[ RESULTS ]==============================================\n"
- cat $LOG_FILE
-}
-
-#############
-# __main__
-#############
-
-tests_setup
-
-## Begin tests
-test_hydra_ssh_brute
-test_hydra_http_form_auth_brute
-## End tests
-
-print_results
diff --git a/hydra_func_tests/ssh-keys/client_rsa b/hydra_func_tests/ssh-keys/client_rsa
deleted file mode 100644
index b42aaf7..0000000
--- a/hydra_func_tests/ssh-keys/client_rsa
+++ /dev/null
@@ -1,15 +0,0 @@
------BEGIN RSA PRIVATE KEY-----
-MIICWwIBAAKBgQDSogD7Fv7yUs6jbd++kJHPZOTAfrNWNTXwOFNQS848GCp+LUz6
-1FxRyrX6ftaky1Nhg5mbuZgpPLg53vBVL6LwjkbcBJNzaxk4xdnqhrugDPIR6FX/
-iLZ2/cxqPJFi7YVnwi6+dIn9297prRLo9TUnBNOAi+lyR5Bh297MMtc1+wIDAQAB
-AoGAEUc4zWAVictBKCbbM8aoL1sXaLL8AxZaVlpIe028nTFeSvtsVScWa581TlcZ
-RGtpa5ZgA2Y2FSvl8NlY3aQKuYrZOM/K69vgXQ6jCa8hRBKBlfd/mSEMqat5OXOJ
-ev4rPOgcqxLTSYZHiFn086nYlfNkAZGK0Kg1EfICGOqmEAECQQDmzJeqByKvc/nD
-rz0Qa6z/1Nmrz7yg3XWZQu55hHpUZvSFTIFiaMqfjpPEab5IU6vddtYnUEn+DURm
-r7KrAsBpAkEA6aG2NcyFvhxwlHKpjKXkZTnEwZfBWduK6Ph8rZPV8roc+6p3wvg7
-KTdCB0PyWgMDue96IPYBST1MW9k/BNS2wwJAP0ms8Qfh4ADKZXmBIiaUmtaQFcfy
-Lp5rp+otoI7OSKSuunq/I/AeV+Bt7rccYZLoFuOGV+NxVsPmlM3rDW/EuQJAbIo7
-a60T6WmvB9hpWrVrcXewKDyHkGaFl4xx5/ZJrFW4x1bAAu1uFszcOSHhAt5pqcVP
-GOcRW+RFiFpag7ULHwJAee3oqOeu4GvkWQgs+kIiCQBjxLPKJHKO37xZGkAjZbfc
-Jd3Dr+cGheF/nih0tQ5nLgbD36N9AtDaRipQrr3aGA==
------END RSA PRIVATE KEY-----
\ No newline at end of file
diff --git a/hydra_func_tests/ssh-keys/client_rsa.pub b/hydra_func_tests/ssh-keys/client_rsa.pub
deleted file mode 100755
index d2a8069..0000000
--- a/hydra_func_tests/ssh-keys/client_rsa.pub
+++ /dev/null
@@ -1 +0,0 @@
-ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDSogD7Fv7yUs6jbd++kJHPZOTAfrNWNTXwOFNQS848GCp+LUz61FxRyrX6ftaky1Nhg5mbuZgpPLg53vBVL6LwjkbcBJNzaxk4xdnqhrugDPIR6FX/iLZ2/cxqPJFi7YVnwi6+dIn9297prRLo9TUnBNOAi+lyR5Bh297MMtc1+w== athmane@devel2.localdomain
\ No newline at end of file
diff --git a/hydra_func_tests/ssh-keys/ssh_host_rsa_key b/hydra_func_tests/ssh-keys/ssh_host_rsa_key
deleted file mode 100644
index 0ff4373..0000000
--- a/hydra_func_tests/ssh-keys/ssh_host_rsa_key
+++ /dev/null
@@ -1,15 +0,0 @@
------BEGIN RSA PRIVATE KEY-----
-MIICXQIBAAKBgQC4XEtvnUXFJTBKdQUD0MOkvrhx5767+RwpDcaEyItz5i1XTKGn
-60M/QxFnrAn31ElvXACgiIwjc/Wubwfw2Xp8nGyh1lEQzQPk0mbJDRlxfEzFnpEu
-icABDsZQYzNo/1dYW8EYR/jmLg+9l1ttZsvrhqmU/jrUgJNdx8mNbls3rwIDAQAB
-AoGBAIx+UUJ6kMvfPkDPkoXI1v86FGdBWtn2yd4DUHCqP5OQKqdnj53erH2OR7pA
-ocwKK/hAHX448MqnuOc4V83UfgEjF5hMRDWBd0PZgyc9Sj1HVbEcleynO5rBAyI5
-iSKLznmfQGKqfKDdY+Qne2qHtJYUGx674PWvOBDs/1wsaoRxAkEA0x8sYqXVHdVC
-XLsNoF1yYbx/StPOhuzCuLN6TBZj6wn1HJ0WCCCvrdERlIxfWphYCNDXaPowIQax
-FmACba5MxwJBAN+M092OUxXf3okiNk83oQF2ZFz2AQ8hiSO+VeZW0DTfLgqyt8Lj
-8GO7IoYQODuUPDsWLgNl8KEmvcbxyXpBxdkCQHSWD22+hC0AWrBYv5KiaArfDDBn
-PPK3hmR3AH9KEg12pzwQ51y/qCRFgv7UccfWvy7HHV2kY7WpO1vO0yh8i3sCQCul
-14gezeIrf8vOvkPhXLJoZ1gvQC2wIpK0CxmaQbTRDrBQDMkksD8IvsjmSdR4MPpo
-bjuDn+QXKF67vtb8GKECQQCb4yRDoxnFjWOm8bBfxj3D0laWHDexpKr7SPKSvKM+
-Q7ryETiSJ8bdyiU/G6ACRBmAE6EnHL4zeKrr9AiIp/T2
------END RSA PRIVATE KEY-----
\ No newline at end of file
diff --git a/hydra_func_tests/ssh-keys/ssh_host_rsa_key.pub b/hydra_func_tests/ssh-keys/ssh_host_rsa_key.pub
deleted file mode 100755
index ffe12f8..0000000
--- a/hydra_func_tests/ssh-keys/ssh_host_rsa_key.pub
+++ /dev/null
@@ -1 +0,0 @@
-ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQC4XEtvnUXFJTBKdQUD0MOkvrhx5767+RwpDcaEyItz5i1XTKGn60M/QxFnrAn31ElvXACgiIwjc/Wubwfw2Xp8nGyh1lEQzQPk0mbJDRlxfEzFnpEuicABDsZQYzNo/1dYW8EYR/jmLg+9l1ttZsvrhqmU/jrUgJNdx8mNbls3rw== athmane@devel2.localdomain
\ No newline at end of file
diff --git a/hydra_func_tests/sshsimpleserver.py b/hydra_func_tests/sshsimpleserver.py
deleted file mode 100644
index 31f6109..0000000
--- a/hydra_func_tests/sshsimpleserver.py
+++ /dev/null
@@ -1,238 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) Twisted Matrix Laboratories.
-# See LICENSE for details.
-
-from twisted.cred import portal
-from twisted.cred.checkers import InMemoryUsernamePasswordDatabaseDontUse
-from twisted.conch import avatar
-from twisted.conch.checkers import SSHPublicKeyChecker, InMemorySSHKeyDB
-from twisted.conch.ssh import factory, userauth, connection, keys, session
-from twisted.conch.ssh.transport import SSHServerTransport
-from twisted.internet import reactor, protocol
-from twisted.python import log
-from twisted.python import components
-from zope.interface import implementer
-import sys
-log.startLogging(sys.stderr)
-
-"""
-Example of running a custom protocol as a shell session over an SSH channel.
-
-Warning! This implementation is here to help you understand how Conch SSH
-server works. You should not use this code in production.
-
-Re-using a private key is dangerous, generate one.
-
-For this example you can use:
-
-$ ckeygen -t rsa -f ssh-keys/ssh_host_rsa_key
-$ ckeygen -t rsa -f ssh-keys/client_rsa
-
-Re-using DH primes and having such a short primes list is dangerous, generate
-your own primes.
-
-In this example the implemented SSH server identifies itself using an RSA host
-key and authenticates clients using username "user" and password "password" or
-using a SSH RSA key.
-
-# Clean the previous server key as we should now have a new one
-$ ssh-keygen -f ~/.ssh/known_hosts -R [localhost]:5022
-# Connect with password
-$ ssh -p 5022 -i ssh-keys/client_rsa user@localhost
-# Connect with the SSH client key.
-$ ssh -p 5022 -i ssh-keys/client_rsa user@localhost
-"""
-
-# Path to RSA SSH keys used by the server.
-SERVER_RSA_PRIVATE = 'ssh-keys/ssh_host_rsa_key'
-SERVER_RSA_PUBLIC = 'ssh-keys/ssh_host_rsa_key.pub'
-
-# Path to RSA SSH keys accepted by the server.
-CLIENT_RSA_PUBLIC = 'ssh-keys/client_rsa.pub'
-
-
-# Pre-computed big prime numbers used in Diffie-Hellman Group Exchange as
-# described in RFC4419.
-# This is a short list with a single prime member and only for keys of size
-# 1024 and 2048.
-# You would need a list for each SSH key size that you plan to support in your
-# server implementation.
-# You can use OpenSSH ssh-keygen to generate these numbers.
-# See the MODULI GENERATION section from the ssh-keygen man pages.
-# See moduli man pages to find out more about the format used by the file
-# generated using ssh-keygen.
-# For Conch SSH server we only need the last 3 values:
-# * size
-# * generator
-# * modulus
-#
-# The format required by the Conch SSH server is:
-#
-# {
-# size1: [(generator1, modulus1), (generator1, modulus2)],
-# size2: [(generator4, modulus3), (generator1, modulus4)],
-# }
-#
-# twisted.conch.openssh_compat.primes.parseModuliFile provides a parser for
-# reading OpenSSH moduli file.
-#
-# Warning! Don't use these numbers in production.
-# Generate your own data.
-# Avoid 1024 bit primes https://weakdh.org
-#
-PRIMES = {
- 2048: [(2, 24265446577633846575813468889658944748236936003103970778683933705240497295505367703330163384138799145013634794444597785054574812547990300691956176233759905976222978197624337271745471021764463536913188381724789737057413943758936963945487690939921001501857793275011598975080236860899147312097967655185795176036941141834185923290769258512343298744828216530595090471970401506268976911907264143910697166165795972459622410274890288999065530463691697692913935201628660686422182978481412651196163930383232742547281180277809475129220288755541335335798837173315854931040199943445285443708240639743407396610839820418936574217939)],
- 4096: [(2, 889633836007296066695655481732069270550615298858522362356462966213994239650370532015908457586090329628589149803446849742862797136176274424808060302038380613106889959709419621954145635974564549892775660764058259799708313210328185716628794220535928019146593583870799700485371067763221569331286080322409646297706526831155237865417316423347898948704639476720848300063714856669054591377356454148165856508207919637875509861384449885655015865507939009502778968273879766962650318328175030623861285062331536562421699321671967257712201155508206384317725827233614202768771922547552398179887571989441353862786163421248709273143039795776049771538894478454203924099450796009937772259125621285287516787494652132525370682385152735699722849980820612370907638783461523042813880757771177423192559299945620284730833939896871200164312605489165789501830061187517738930123242873304901483476323853308396428713114053429620808491032573674192385488925866607192870249619437027459456991431298313382204980988971292641217854130156830941801474940667736066881036980286520892090232096545650051755799297658390763820738295370567143697617670291263734710392873823956589171067167839738896249891955689437111486748587887718882564384870583135509339695096218451174112035938859)],
- }
-
-
-
-class ExampleAvatar(avatar.ConchUser):
- """
- The avatar is used to configure SSH services/sessions/subsystems for
- an account.
-
- This account will use L{session.SSHSession} to handle a channel of
- type I{session}.
- """
- def __init__(self, username):
- avatar.ConchUser.__init__(self)
- self.username = username
- self.channelLookup.update({'session':session.SSHSession})
-
-
-
-@implementer(portal.IRealm)
-class ExampleRealm(object):
- """
- When using Twisted Cred, the pluggable authentication framework, the
- C{requestAvatar} method should return a L{avatar.ConchUser} instance
- as required by the Conch SSH server.
- """
- def requestAvatar(self, avatarId, mind, *interfaces):
- """
- See: L{portal.IRealm.requestAvatar}
- """
- return interfaces[0], ExampleAvatar(avatarId), lambda: None
-
-
-
-class EchoProtocol(protocol.Protocol):
- """
- This is our protocol that we will run over the shell session.
- """
-
- def dataReceived(self, data):
- """
- Called when client send data over the shell session.
-
- Just echo the received data and and if Ctrl+C is received, close the
- session.
- """
- if data == '\r':
- data = '\r\n'
- elif data == '\x03': #^C
- self.transport.loseConnection()
- return
- self.transport.write(data)
-
-
-
-class ExampleSession(object):
- """
- This selects what to do for each type of session which is requested by the
- client via the SSH channel of type I{session}.
- """
-
- def __init__(self, avatar):
- """
- In this example the avatar argument is not used for session selection,
- but for example you can use it to limit I{shell} or I{exec} access
- only to specific accounts.
- """
-
-
- def getPty(self, term, windowSize, attrs):
- """
- We don't support pseudo-terminal sessions.
- """
-
-
- def execCommand(self, proto, cmd):
- """
- We don't support command execution sessions.
- """
- raise Exception("not executing commands")
-
- def openShell(self, transport):
- """
- Use our protocol as shell session.
- """
- protocol = EchoProtocol()
- # Connect the new protocol to the transport and the transport
- # to the new protocol so they can communicate in both directions.
- protocol.makeConnection(transport)
- transport.makeConnection(session.wrapProtocol(protocol))
-
- def eofReceived(self):
- pass
-
- def closed(self):
- pass
-
-
-
-components.registerAdapter(ExampleSession, ExampleAvatar, session.ISession)
-
-
-
-class ExampleFactory(factory.SSHFactory):
- """
- This is the entry point of our SSH server implementation.
-
- The SSH transport layer is implemented by L{SSHTransport} and is the
- protocol of this factory.
-
- Here we configure the server's identity (host keys) and handlers for the
- SSH services:
- * L{connection.SSHConnection} handles requests for the channel multiplexing
- service.
- * L{userauth.SSHUserAuthServer} handlers requests for the user
- authentication service.
- """
- protocol = SSHServerTransport
- # Server's host keys.
- # To simplify the example this server is defined only with a host key of
- # type RSA.
- publicKeys = {
- 'ssh-rsa': keys.Key.fromFile(SERVER_RSA_PUBLIC)
- }
- privateKeys = {
- 'ssh-rsa': keys.Key.fromFile(SERVER_RSA_PRIVATE)
- }
- # Service handlers.
- services = {
- 'ssh-userauth': userauth.SSHUserAuthServer,
- 'ssh-connection': connection.SSHConnection
- }
-
- def getPrimes(self):
- """
- See: L{factory.SSHFactory}
- """
- return PRIMES
-
-
-portal = portal.Portal(ExampleRealm())
-passwdDB = InMemoryUsernamePasswordDatabaseDontUse()
-passwdDB.addUser('user', 'password')
-sshDB = SSHPublicKeyChecker(InMemorySSHKeyDB(
- {'user': [keys.Key.fromFile(CLIENT_RSA_PUBLIC)]}))
-portal.registerChecker(passwdDB)
-portal.registerChecker(sshDB)
-ExampleFactory.portal = portal
-
-if __name__ == '__main__':
- reactor.listenTCP(5022, ExampleFactory())
- reactor.run()
diff --git a/xhydra.desktop b/xhydra.desktop
deleted file mode 100644
index 69debb5..0000000
--- a/xhydra.desktop
+++ /dev/null
@@ -1,10 +0,0 @@
-[Desktop Entry]
-Name=XHydra
-GenericName=Hydra very fast network log-on cracker
-Comment=GUI frontend for Hydra network log-on cracker
-Version=1.0
-Exec=xhydra
-Icon=xhydra
-Terminal=false
-Type=Application
-Categories=System;Security;GTK;
reply other threads:[~2026-11-06 15:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179397876265.1.15014933287876589706.rpms-hydra-1cf98a48de94@fedoraproject.org \
--to=negativo17@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox