JPaulMora / Pyrit

The famous WPA precomputed cracker, Migrated from Google.
GNU General Public License v3.0
1.07k stars 273 forks source link

Pyrit no longer working Kali Linux Rolling #589

Open fonestar opened 5 years ago

fonestar commented 5 years ago

After "apt-get update && apt-get upgrade" pyrit no longer works in Kali Rolling x64.

root@calambro:~# pyrit Traceback (most recent call last): File "/usr/bin/pyrit", line 4, in import pyrit_cli File "/usr/local/lib/python2.7/dist-packages/pyrit_cli.py", line 32, in import cpyrit.cpyrit File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 42, in import util File "/usr/local/lib/python2.7/dist-packages/cpyrit/util.py", line 54, in import _cpyrit_cpu ImportError: /usr/local/lib/python2.7/dist-packages/cpyrit/_cpyrit_cpu.so: undefined symbol: aesni_key

Tried uninstalling and reinstalling pyrit using apt-get and running from source. Did not work.

Tried uninstalling and reinstalling Python2.7 and Scapy and then reinstalling Pyrit. Did not work.

pavonis9 commented 5 years ago

Take a look at : https://github.com/JPaulMora/Pyrit/issues/584#issuecomment-522239316 if it works close the issue.

a5h-u commented 4 years ago

its not working. Help it

Robotto commented 4 years ago

I have the same issue trying a clean install running ubuntu 19.10

dmonium commented 4 years ago

I have the same issue, does anyone know how to solve it?

RootSrc commented 4 years ago

I got it working with #591

araldolucente commented 4 years ago

good morning, the I tried to install pyrit via the command: sudo apt-get install pyrit but the system returned me such an error: pyrit has not installation candidate , the problem is that I can not clone it because to me pyriti serves to let go another program and if clono does not detect me. thank you in advance

RootSrc commented 4 years ago

I believe due to Pyrit being "Too Old" [version is still Python2], its been taken off most repos due to that, if im not mistaken. Which program is pyrit trying to remove @araldolucente ?

Try: sudo git clone https://github.com/JPaulMora/Pyrit.git /opt/pyrit Then: sudo cd /opt/pyrit after that, follow the directions there from https://github.com/JPaulMora/Pyrit/wiki and onward.

Also, judging by you saying this: >and if clono does not detect me Assuming, Make sure git is installed by sudo apt-get install git

araldolucente commented 4 years ago

264/5000 yes, but the fact is that if I clone it the "app" that I want to use does not detect it, I have already installed sudo apt install git, as pyrit is the only program that does not let me install if not by cloning it, but the last week, on another computer, he made me do it ..

Il giorno lun 4 mag 2020 alle ore 07:25 RootSrc notifications@github.com ha scritto:

I believe due to Pyrit being "Too Old" [version is still Python2], its been taken off most repos due to that, if im not mistaken. Which program is pyrit trying to remove @araldolucente https://github.com/araldolucente ?

Try: sudo git clone https://github.com/JPaulMora/Pyrit.git /opt/pyrit Then: sudo cd /opt/pyrit after that, follow the directions there from https://github.com/JPaulMora/Pyrit/wiki and onward.

Also, judging by you saying this: > and if clono does not detect me Assuming, Make sure git is installed by sudo apt-get install git

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JPaulMora/Pyrit/issues/589#issuecomment-623263484, or unsubscribe https://github.com/notifications/unsubscribe-auth/APJZIPO6GT6ZHMKDWJFRH7LRPZGTNANCNFSM4IK2Q33A .

--

*IC "Parmigianino"***

*P.le Rondani, 1 - 43125 Parma ***

*tel. 0521 233874 - fax 0521 233046 ***

*www.icparmigianino. http://www.icparmigianino.org/it***

--

Privacy e riservatezza: il presente messaggio, così come i relativi allegati, contengono dati ed informazioni da considerarsi strettamente riservate ed è indirizzato esclusivamente al destinatario sopra indicato, il quale è l'unico autorizzato a trattarlo in osservanza delle norme del Regolamento UE 2016/679 (RGPD) . Preghiamo chiunque ricevesse questo messaggio per errore di evitare di copiarlo, divulgarlo, distribuirlo a terzi e di dare notizia al mittente dell’errato invio, distruggendone poi l'eventuale copia cartacea e la copia in formato elettronico. Grazie.     

Robotto commented 4 years ago

You need to run make and make install

On Mon, 4 May 2020, 10.16 araldolucente, notifications@github.com wrote:

264/5000 yes, but the fact is that if I clone it the "app" that I want to use does not detect it, I have already installed sudo apt install git, as pyrit is the only program that does not let me install if not by cloning it, but the last week, on another computer, he made me do it ..

Il giorno lun 4 mag 2020 alle ore 07:25 RootSrc notifications@github.com ha scritto:

I believe due to Pyrit being "Too Old" [version is still Python2], its been taken off most repos due to that, if im not mistaken. Which program is pyrit trying to remove @araldolucente https://github.com/araldolucente ?

Try: sudo git clone https://github.com/JPaulMora/Pyrit.git /opt/pyrit Then: sudo cd /opt/pyrit after that, follow the directions there from https://github.com/JPaulMora/Pyrit/wiki and onward.

Also, judging by you saying this: > and if clono does not detect me Assuming, Make sure git is installed by sudo apt-get install git

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JPaulMora/Pyrit/issues/589#issuecomment-623263484, or unsubscribe < https://github.com/notifications/unsubscribe-auth/APJZIPO6GT6ZHMKDWJFRH7LRPZGTNANCNFSM4IK2Q33A

.

--

*IC "Parmigianino"***

*P.le Rondani, 1 - 43125 Parma ***

*tel. 0521 233874 - fax 0521 233046 ***

*www.icparmigianino. http://www.icparmigianino.org/it***

--

Privacy e riservatezza: il presente messaggio, così come i relativi allegati, contengono dati ed informazioni da considerarsi strettamente riservate ed è indirizzato esclusivamente al destinatario sopra indicato, il quale è l'unico autorizzato a trattarlo in osservanza delle norme del Regolamento UE 2016/679 (RGPD) . Preghiamo chiunque ricevesse questo messaggio per errore di evitare di copiarlo, divulgarlo, distribuirlo a terzi e di dare notizia al mittente dell’errato invio, distruggendone poi l'eventuale copia cartacea e la copia in formato elettronico. Grazie.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JPaulMora/Pyrit/issues/589#issuecomment-623324518, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAERV6FQJVERUZMBDIDE4DLRPZ2XHANCNFSM4IK2Q33A .

RootSrc commented 4 years ago

@araldolucente Does Pyrit alone work? try pyrit benchmark, or sudo pyrit benchmark

What steps are you using, you may have to post a new issue, depending what the problem is.

By the way, what Distro are you using?

araldolucente commented 4 years ago

the problem is that I would like to use fluxion to test the security of my wifi network and, of course, of those who connect. I managed to install all the requirements for fluxion, but strangely it doesn't make me install it, now have I explained myself better?

Il giorno lun 4 mag 2020 alle ore 11:47 RootSrc notifications@github.com ha scritto:

@araldolucente https://github.com/araldolucente Does Pyrit alone work? try pyrit benchmark

What steps are you using, you may have to post a new issue, depending what the problem is.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JPaulMora/Pyrit/issues/589#issuecomment-623366161, or unsubscribe https://github.com/notifications/unsubscribe-auth/APJZIPPHMEUNKMMGGWRST6TRP2FLDANCNFSM4IK2Q33A .

--

*IC "Parmigianino"***

*P.le Rondani, 1 - 43125 Parma ***

*tel. 0521 233874 - fax 0521 233046 ***

*www.icparmigianino. http://www.icparmigianino.org/it***

--

Privacy e riservatezza: il presente messaggio, così come i relativi allegati, contengono dati ed informazioni da considerarsi strettamente riservate ed è indirizzato esclusivamente al destinatario sopra indicato, il quale è l'unico autorizzato a trattarlo in osservanza delle norme del Regolamento UE 2016/679 (RGPD) . Preghiamo chiunque ricevesse questo messaggio per errore di evitare di copiarlo, divulgarlo, distribuirlo a terzi e di dare notizia al mittente dell’errato invio, distruggendone poi l'eventuale copia cartacea e la copia in formato elettronico. Grazie.     

RootSrc commented 4 years ago

So then, I suppose it may be an issue with Fluxion. What are the errors you are running into?

araldolucente commented 4 years ago

587/5000 in practice fluxion has a function that is if I'm not mistaken for "./fluxion.sh -i" and the "i" indicates install, so once the command is launched, fluxion automatically installs the requirements, but I don't does install because it says that there are no candidates for the installation (something like that, now I don't remember the exact phrase), so what I need is if you could know a command that directly installs pyrit without needing to clone it (because fluxion calls it directly with the command "sudo pyrit" and obviously if you have coined it, it does not detect it

https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Virus-free. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Il giorno mar 5 mag 2020 alle ore 08:35 RootSrc notifications@github.com ha scritto:

So then, I suppose it may be an issue with Fluxion. What are the errors you are running into?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JPaulMora/Pyrit/issues/589#issuecomment-623879891, or unsubscribe https://github.com/notifications/unsubscribe-auth/APJZIPJT6GF2CINRW5XS74LRP6XRRANCNFSM4IK2Q33A .

--

*IC "Parmigianino"***

*P.le Rondani, 1 - 43125 Parma ***

*tel. 0521 233874 - fax 0521 233046 ***

*www.icparmigianino. http://www.icparmigianino.org/it***

--

Privacy e riservatezza: il presente messaggio, così come i relativi allegati, contengono dati ed informazioni da considerarsi strettamente riservate ed è indirizzato esclusivamente al destinatario sopra indicato, il quale è l'unico autorizzato a trattarlo in osservanza delle norme del Regolamento UE 2016/679 (RGPD) . Preghiamo chiunque ricevesse questo messaggio per errore di evitare di copiarlo, divulgarlo, distribuirlo a terzi e di dare notizia al mittente dell’errato invio, distruggendone poi l'eventuale copia cartacea e la copia in formato elettronico. Grazie.     

RootSrc commented 4 years ago

So the issue actually relies on multiple things, depending how you want to fix it.

  1. This is an issue with Kali's packages and the sources list, albeit that Pyrit isn't available anymore through the sources. You might be able to get Pyrit installed through another source that has and supports pyrit, (Perhaps the Kali 2019 sources). This will however potentially bring a "aesni_key not found" error.

  2. Download from here and build Pyrit through source, I had to do a fix with the AES error, which you can find here a solution on here. Pyrit should be available sys wide, Try the following commands

sudo git clone https://github.com/JPaulMora/Pyrit.git /opt/pyrit sudo cd /opt/pyrit sudo python2 -m pip uninstall scapy sudo python2 -m pip install scapy==2.3.2 sudo python2 setup.py clean build install sudo pyrit

See if this works, and if you have any errors, let me know.

araldolucente commented 4 years ago

thank you very much, after I will try to execute it

Il giorno mar 5 mag 2020 alle ore 09:57 RootSrc notifications@github.com ha scritto:

So the issue actually relies on multiple things, depending how you want to fix it.

1.

This is an issue with Kali's packages and the sources list, albeit that Pyrit isn't available anymore through the sources. You might be able to get Pyrit installed through another source that has and supports pyrit, (Perhaps the Kali 2019 sources). This will however potentially bring a "aesni_key not found" error. 2.

Download from here and build Pyrit through source, I had to do a fix with the AES error, which you can find here a solution on here. Pyrit should be available sys wide, Try the following commands

sudo git clone https://github.com/JPaulMora/Pyrit.git /opt/pyrit sudo cd /opt/pyrit sudo python2 -m pip uninstall scapy sudo python2 -m pip install scapy==2.3.2 sudo python2 setup.py clean build install sudo pyrit

See if this works, and if you have any errors, let me know.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JPaulMora/Pyrit/issues/589#issuecomment-623912512, or unsubscribe https://github.com/notifications/unsubscribe-auth/APJZIPPNGSWDJNRWSOB4EJDRP7BGXANCNFSM4IK2Q33A .

--

*IC "Parmigianino"***

*P.le Rondani, 1 - 43125 Parma ***

*tel. 0521 233874 - fax 0521 233046 ***

*www.icparmigianino. http://www.icparmigianino.org/it***

--

Privacy e riservatezza: il presente messaggio, così come i relativi allegati, contengono dati ed informazioni da considerarsi strettamente riservate ed è indirizzato esclusivamente al destinatario sopra indicato, il quale è l'unico autorizzato a trattarlo in osservanza delle norme del Regolamento UE 2016/679 (RGPD) . Preghiamo chiunque ricevesse questo messaggio per errore di evitare di copiarlo, divulgarlo, distribuirlo a terzi e di dare notizia al mittente dell’errato invio, distruggendone poi l'eventuale copia cartacea e la copia in formato elettronico. Grazie.     

Spessmen14 commented 4 years ago

So the issue actually relies on multiple things, depending how you want to fix it.

  1. This is an issue with Kali's packages and the sources list, albeit that Pyrit isn't available anymore through the sources. You might be able to get Pyrit installed through another source that has and supports pyrit, (Perhaps the Kali 2019 sources). This will however potentially bring a "aesni_key not found" error.
  2. Download from here and build Pyrit through source, I had to do a fix with the AES error, which you can find here a solution on here. Pyrit should be available sys wide, Try the following commands

sudo git clone https://github.com/JPaulMora/Pyrit.git /opt/pyrit sudo cd /opt/pyrit sudo python2 -m pip uninstall scapy sudo python2 -m pip install scapy==2.3.2 sudo python2 setup.py clean build install sudo pyrit

See if this works, and if you have any errors, let me know.

kali@kali:/usr$ sudo python3 -m pip install scapy==2.3.2 Collecting scapy==2.3.2 Using cached scapy-2.3.2.tar.gz (1.1 MB) ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1y3mv2kp/scapy/setup.py'"'"'; file='"'"'/tmp/pip-install-1y3mv2kp/scapy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-om3lmmos cwd: /tmp/pip-install-1y3mv2kp/scapy/ Complete output (6 lines): Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-1y3mv2kp/scapy/setup.py", line 35 os.chmod(fname,0755) ^ SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

^^^ what happened for me.

myatswe commented 3 years ago

┌──(root💀kali)-[/opt/pyrit] └─# python setup.py build running build running build_py creating build creating build/lib.linux-x86_64-2.7 copying pyrit_cli.py -> build/lib.linux-x86_64-2.7 creating build/lib.linux-x86_64-2.7/cpyrit copying cpyrit/init.py -> build/lib.linux-x86_64-2.7/cpyrit copying cpyrit/cpyrit.py -> build/lib.linux-x86_64-2.7/cpyrit copying cpyrit/util.py -> build/lib.linux-x86_64-2.7/cpyrit copying cpyrit/pckttools.py -> build/lib.linux-x86_64-2.7/cpyrit copying cpyrit/config.py -> build/lib.linux-x86_64-2.7/cpyrit copying cpyrit/network.py -> build/lib.linux-x86_64-2.7/cpyrit copying cpyrit/storage.py -> build/lib.linux-x86_64-2.7/cpyrit running build_ext building 'cpyrit._cpyrit_cpu' extension creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/cpyrit x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-uC7NI8/python2.7-2.7.18=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c cpyrit/_cpyrit_cpu.c -o build/temp.linux-x86_64-2.7/cpyrit/_cpyrit_cpu.o -Wall -fno-strict-aliasing -DVERSION="0.5.1" -maes -mpclmul cpyrit/_cpyrit_cpu.c:32:10: fatal error: Python.h: No such file or directory 32 | #include | ^~~~~~ compilation terminated. Failed to build; Compiling without AES-NI building 'cpyrit._cpyrit_cpu' extension x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-uC7NI8/python2.7-2.7.18=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c cpyrit/_cpyrit_cpu.c -o build/temp.linux-x86_64-2.7/cpyrit/_cpyrit_cpu.o -Wall -fno-strict-aliasing -DVERSION="0.5.1" cpyrit/_cpyrit_cpu.c:32:10: fatal error: Python.h: No such file or directory 32 | #include

Please help!

Robotto commented 3 years ago

https://stackoverflow.com/a/21530768 :)

On Fri, 4 Dec 2020, 18.10 myatswe, notifications@github.com wrote:

┌──(root💀kali)-[/opt/pyrit] └─# python setup.py build running build running build_py creating build creating build/lib.linux-x86_64-2.7 copying pyrit_cli.py -> build/lib.linux-x86_64-2.7 creating build/lib.linux-x86_64-2.7/cpyrit copying cpyrit/init.py -> build/lib.linux-x86_64-2.7/cpyrit copying cpyrit/cpyrit.py -> build/lib.linux-x86_64-2.7/cpyrit copying cpyrit/util.py -> build/lib.linux-x86_64-2.7/cpyrit copying cpyrit/pckttools.py -> build/lib.linux-x86_64-2.7/cpyrit copying cpyrit/config.py -> build/lib.linux-x86_64-2.7/cpyrit copying cpyrit/network.py -> build/lib.linux-x86_64-2.7/cpyrit copying cpyrit/storage.py -> build/lib.linux-x86_64-2.7/cpyrit running build_ext building 'cpyrit._cpyrit_cpu' extension creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/cpyrit x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-uC7NI8/python2.7-2.7.18=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c cpyrit/_cpyrit_cpu.c -o build/temp.linux-x86_64-2.7/cpyrit/_cpyrit_cpu.o -Wall -fno-strict-aliasing -DVERSION="0.5.1" -maes -mpclmul cpyrit/_cpyrit_cpu.c:32:10: fatal error: Python.h: No such file or directory 32 | #include | ^~~~~~ compilation terminated. Failed to build; Compiling without AES-NI building 'cpyrit._cpyrit_cpu' extension x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-uC7NI8/python2.7-2.7.18=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c cpyrit/_cpyrit_cpu.c -o build/temp.linux-x86_64-2.7/cpyrit/_cpyrit_cpu.o -Wall -fno-strict-aliasing -DVERSION="0.5.1" cpyrit/_cpyrit_cpu.c:32:10: fatal error: Python.h: No such file or directory 32 | #include

Please help!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JPaulMora/Pyrit/issues/589#issuecomment-738896976, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAERV6EZB2YR3FT7ZLZXZQ3STEJYLANCNFSM4IK2Q33A .

SirDex2022 commented 2 years ago

doesnt work on kali linux

Robotto commented 2 years ago

Any error messages?

On Tue, 20 Sep 2022, 10.40 SirDex2022, @.***> wrote:

doesnt work on kali linux

— Reply to this email directly, view it on GitHub https://github.com/JPaulMora/Pyrit/issues/589#issuecomment-1252028907, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAERV6F6U23NFQZMMI2N5M3V7F2ALANCNFSM4IK2Q33A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

riadh402 commented 4 months ago

i install it and not show up on top screen of fluxion why