-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to compile #5
Comments
I don't mean to be one of those developers who never maintains a project, but I wrote this a LONG time ago, and have moved on to other projects. I did spend some time this morning updating the code to use libxcrypt as the modern replacement for GLIBC's deprecation if crypt() and setkey(). After getting the latest source, you'll need to install libxcrypt-dev using your Linux package manager. You don't say which version of Linux you are using, but if it's Debian-like that will be |
Thank you so much, I'm on arch by the way. Great work. Have a good one.
…On Sat, Nov 28, 2020, 8:11 PM Joshua Wright ***@***.***> wrote:
I don't mean to be one of *those developers* who never maintains a
project, but I wrote this a LONG time ago, and have moved on to other
projects. I did spend some time this morning updating the code to use
libxcrypt as the modern replacement for GLIBC's deprecation if crypt() and
setkey().
After getting the latest source, you'll need to install libxcrypt-dev
using your Linux package manager. You don't say which version of Linux you
are using, but if it's Debian-like that will be sudo apt update && sudo
apt install libcrypt-dev. Then a normal make should build the source as
desired.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQPFV4V3JA4TK2L7YYUXHBLSSDSIJANCNFSM4UFHTXXA>
.
|
Great job, thanx. |
yeah still the same, this might just be considered as a failing build after all :( |
I'm sorry, not |
I tried to install it too, but libxcrypt-dev is now found 😢 in packages
for install
so 28. 11. 2020 v 18:22 odesílatel Joshua Wright <[email protected]>
napsal:
… I'm sorry, not libcrypt-dev, libxcrypt-dev. It's correct in the
README.md, just incorrect in my prior message.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AP2O2TDSPWQFGHNLVXZFTY3SSEWW5ANCNFSM4UFHTXXA>
.
|
What Linux distro are you using? I'll see if I can get a VM running and take a look. |
Ununtu 20.04
so 28. 11. 2020 v 20:46 odesílatel Joshua Wright <[email protected]>
napsal:
… What Linux distro are you using? I'll see if I can get a VM running and
take a look.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AP2O2TBY25NSMFZJGFMFSLDSSFHRHANCNFSM4UFHTXXA>
.
|
Pretty much I have libxcrypt installed, I did look for libxcrypt-dev but I
was unable to download that package on arch. I guess it as just for debian
after all.
…On Sun, Nov 29, 2020, 3:50 AM Geeo ***@***.***> wrote:
Ununtu 20.04
so 28. 11. 2020 v 20:46 odesílatel Joshua Wright ***@***.***
>
napsal:
> What Linux distro are you using? I'll see if I can get a VM running and
> take a look.
>
> —
> You are receiving this because you commented.
>
>
> Reply to this email directly, view it on GitHub
> <#5 (comment)>,
or
> unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AP2O2TBY25NSMFZJGFMFSLDSSFHRHANCNFSM4UFHTXXA
>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQPFV4SP74EIF6GI7QNGSBTSSFIAZANCNFSM4UFHTXXA>
.
|
It appears that libxcrypt does not do what I think it did, sorry for the runaround. I need to reimplement the crypto functionality using openssl des_fcrypt, but that will require me to read up on that. I'll follow up. Thank you @purpleSkies26 @gordat. |
Thank you very much for your support and interest. I appreciate it.
ne 29. 11. 2020 v 13:06 odesílatel Joshua Wright <[email protected]>
napsal:
… It appears that libxcrypt does not do what I think it did, sorry for the
runaround. I need to reimplement the crypto functionality using openssl
des_fcrypt, but that will require me to read up on that. I'll follow up.
Thank you @purpleSkies26 <https://github.com/purpleSkies26> @gordat
<https://github.com/gordat>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AP2O2TEOU7XW7ZW6HLBOEB3SSI2MBANCNFSM4UFHTXXA>
.
|
Yeah, not a problem. I tried to find a way to replace encrypt with crypt
but I was not able to find a way to replace the setkey function. We'll
watch. Thanks a lot.
…On Sun, Nov 29, 2020, 8:06 PM Joshua Wright ***@***.***> wrote:
It appears that libxcrypt does not do what I think it did, sorry for the
runaround. I need to reimplement the crypto functionality using openssl
des_fcrypt, but that will require me to read up on that. I'll follow up.
Thank you @purpleSkies26 <https://github.com/purpleSkies26> @gordat
<https://github.com/gordat>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQPFV4XYZPR567EN6NCLL53SSI2MBANCNFSM4UFHTXXA>
.
|
still broken. Please specify what version is required instead of "dev". libxcrypt has 2.x and 4.x lines with incompatible APIs. |
|
We'll wait.
…On Sat, Jan 2, 2021, 9:55 AM Anton Bolshakov ***@***.***> wrote:
make -j4 CC=x86_64-pc-linux-gnu-gcc
x86_64-pc-linux-gnu-gcc -D_LINUX -D_OPENSSL_MD4 -g3 -c -o sha1.o sha1.c
x86_64-pc-linux-gnu-gcc -D_LINUX -D_OPENSSL_MD4 -g3 -c -o common.o common.c
x86_64-pc-linux-gnu-gcc -D_LINUX -D_OPENSSL_MD4 -g3 -c -o utils.o utils.c
x86_64-pc-linux-gnu-gcc -D_LINUX -D_OPENSSL_MD4 -g3 -c -o asleap.o asleap.c
utils.c: In function ‘DesEncrypt’:
utils.c:179:5: warning: implicit declaration of function ‘setkey’ [-Wimplicit-function-declaration]
179 | setkey((char *)crypt_key);
| ^~~~~~
utils.c:182:5: warning: implicit declaration of function ‘encrypt’; did you mean ‘crypt’? [-Wimplicit-function-declaration]
182 | encrypt((char *)des_input, 0);
| ^~~~~~~
| crypt
x86_64-pc-linux-gnu-gcc -D_LINUX -D_OPENSSL_MD4 -g3 -c -o genkeys.o genkeys.c
x86_64-pc-linux-gnu-gcc -D_LINUX -D_OPENSSL_MD4 -g3 md4.c genkeys.c -o genkeys common.o utils.o -lpcap -lxcrypt -lcrypto
x86_64-pc-linux-gnu-gcc -D_LINUX -D_OPENSSL_MD4 -g3 asleap.c -o asleap common.o utils.o sha1.o -lpcap -lxcrypt -lcrypto
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lxcrypt
collect2: error: ld returned 1 exit status
make: *** [Makefile:35: genkeys] Error 1
make: *** Waiting for unfinished jobs....
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lxcrypt
collect2: error: ld returned 1 exit status
make: *** [Makefile:32: asleap] Error 1
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQPFV4UI5ACD5XZP5TA4T33SXZ4KVANCNFSM4UFHTXXA>
.
|
The issue is that GLIBC has removed the crypt(3) functionality that Asleap uses to calculate the MS-CHAPv2 challenge/response hash values. I haven't had time to dig into how to do that using the native DES crypto library. As an open-source project, I welcome patches and pull requests to add this functionality! It sounds like the problem most of you are trying to overcome is that Airgeddon requires Asleap as one of the components. Frankly, it's very rare to see LEAP network activity anymore, so I find it hard to justify the time working on addressing this vs. other more currently relevant projects I'm working on. How about customizing Airgeddon to not use Asleap at all? Or, can you write a little shell script such as I'll keep this ticket open since I do feel responsibility to maintain this code, but I don't think this is something that's going to be fixed in the very near future without some community support to help me figure out an alternative to the GLIBC DES Thank you all, -Josh |
I am one of the maintainers of libxcrypt. Please be advised that we provide I don't know what you're using |
upon actually looking at the code, I had a better idea, see the PR. |
Great work, thank you! |
Well To be honest, I'm not bothered anymore because I don't have to deal
with asleap Anymore, I may consider Asleap as one of the few Cool Legacy
Codes and it may rest already. But seems few folks are still cool about
maintaining, I'm happy to take a look on the improvement maybe as well as
functionalities in the future who can make it work with new libraries
available.
…On Mon, Jun 21, 2021, 10:37 PM Anton Bolshakov ***@***.***> wrote:
Great work, thank you!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQPFV4SGDWPFOHYCRIW6E6TTT5FDNANCNFSM4UFHTXXA>
.
|
Easy Peasy solution, no code experience just pure hard search skill, first google asleap bin on google, you'll find that most offinsive oses like kali linux already have natively on their packages so, Hope it helped if your goal was only to get the binary in order to run airgeddon directly on the host machine |
Due to setkey and encrypt being remove, gcc is unable to compile. I tried this night night to fix this and its too blunt for me to recode the thing. Found out theyre using EVP encryption right now however i tried to change encrypt to
crypt
and recompile it with -lcrypt seems wokring but the setkey has not alternative to it. hope you can still fix it.The text was updated successfully, but these errors were encountered: