Fix signal handler signature

This commit is contained in:
Bryan Horna 2026-02-07 01:15:14 -05:00
parent dec25a54ab
commit b0b31f2e0d
3 changed files with 48 additions and 4 deletions

View file

@ -1,7 +1,7 @@
pkgbase = asleap
pkgdesc = Actively recover LEAP/PPTP passwords.
pkgver = 2.2
pkgrel = 7
pkgrel = 8
url = https://www.willhackforsushi.com/?page_id=41
arch = x86_64
arch = i686
@ -16,9 +16,11 @@ pkgbase = asleap
source = https://www.willhackforsushi.com/code/asleap/2.2/asleap-2.2.tgz
source = libxcrypt.patch
source = fixtimeout.patch
source = fixsignal.patch
md5sums = a1d06729fb2addcc5b09bfc14f9b3173
md5sums = cb9cf76a3e7bee1e546ce9a982b0f912
md5sums = e0041a0a74428051cd7d19e0a7c5c5d8
md5sums = 667aaa95b76327cae3203944f2eb6771
source_x86_64 = libxcrypt1.deb::http://archive.debian.org/debian/pool/main/libx/libxcrypt/libxcrypt1_2.4-4_amd64.deb
source_x86_64 = libxcrypt-dev.deb::http://archive.debian.org/debian/pool/main/libx/libxcrypt/libxcrypt-dev_2.4-4_amd64.deb
md5sums_x86_64 = SKIP

View file

@ -3,7 +3,7 @@
pkgname=asleap
pkgver=2.2
pkgrel=7
pkgrel=8
pkgdesc="Actively recover LEAP/PPTP passwords."
arch=("x86_64" "i686" "armv6h" "armv7h" "aarch64")
url="https://www.willhackforsushi.com/?page_id=41"
@ -11,12 +11,14 @@ license=("GPL")
depends=("libpcap" "openssl")
source=("https://www.willhackforsushi.com/code/$pkgname/$pkgver/$pkgname-$pkgver.tgz"
"libxcrypt.patch"
"fixtimeout.patch")
"fixtimeout.patch"
"fixsignal.patch")
noextract=("libxcrypt1.deb"
"libxcrypt-dev.deb")
md5sums=("a1d06729fb2addcc5b09bfc14f9b3173"
"cb9cf76a3e7bee1e546ce9a982b0f912"
"e0041a0a74428051cd7d19e0a7c5c5d8")
"e0041a0a74428051cd7d19e0a7c5c5d8"
"667aaa95b76327cae3203944f2eb6771")
# Dynamically generate sources and skip sums
_arch=("amd64" "i386" "armel" "armhf" "arm64")
@ -44,6 +46,7 @@ prepare() {
cd "$pkgname-$pkgver"
patch -Nup1 -i "$srcdir/libxcrypt.patch"
patch -Nup1 -i "$srcdir/fixtimeout.patch"
patch -Nup1 -i "$srcdir/fixsignal.patch"
}
build() {

39
fixsignal.patch Normal file
View file

@ -0,0 +1,39 @@
diff -Naur asleap-2.2/asleap.c asleap-2.2-new/asleap.c
--- asleap-2.2/asleap.c 2026-02-07 01:04:02.462366593 -0500
+++ asleap-2.2-new/asleap.c 2026-02-07 01:05:07.327626277 -0500
@@ -72,7 +72,7 @@
/* prototypes */
void usage(char *message);
-void cleanup();
+void cleanup(int signal);
void print_leapexch(struct asleap_data *asleap_ptr);
void print_hashlast2(struct asleap_data *asleap_ptr);
void print_leappw(struct asleap_data *asleap_ptr);
@@ -252,7 +252,7 @@
}
-void cleanup()
+void cleanup(int signal)
{
if (p != NULL) {
@@ -805,7 +805,7 @@
} else if (n == 1) {
if (asleap_ptr->verbose)
printf("Reached EOF on pcapfile.\n");
- cleanup(); /* exits */
+ cleanup(-1); /* exits */
}
if (packet == NULL) {
@@ -1590,7 +1590,7 @@
default:
fprintf(stderr, "Unsupported pcap datalink type: (%d) "
"\n", pcap_datalink(p));
- cleanup(); /* Exits */
+ cleanup(-1); /* Exits */
}
/*