- HackWare.ru
- Этичный хакинг и тестирование на проникновение, информационная безопасность
- Как установить Pyrit в Kali Linux 2
- Почему Pyrit?
- Устанавливаем Pyrit в Kali Linux 2
- Подготовка к установке
- Установка Pyrit
- Тестируем cpyrit
- Вывод
- Связанные статьи:
- Рекомендуется Вам:
- 9 комментариев to Как установить Pyrit в Kali Linux 2
- Soft Как установить Pyrit в Kali Linux
- How to solve Kali Linux apt-get install: E: Unable to locate package checkinstall
- 1. Edit the apt sources.list file with some editor
- 2. Append old repositories information
- 3. Check if your can install the package
- [Solved] E: Unable to locate package in Kali Linux
- Pyrit no longer working Kali Linux Rolling #589
- Comments
- fonestar commented Aug 10, 2019
- pavonis9 commented Aug 17, 2019
- a5h-u commented Apr 21, 2020
- Robotto commented Apr 27, 2020
- dmonium commented Apr 28, 2020
- RootSrc commented May 1, 2020
- araldolucente commented May 3, 2020
- RootSrc commented May 4, 2020 •
- RootSrc commented May 4, 2020 •
- RootSrc commented May 5, 2020
- RootSrc commented May 5, 2020
- Spessmen14 commented Oct 15, 2020
- myatswe commented Dec 4, 2020
HackWare.ru
Этичный хакинг и тестирование на проникновение, информационная безопасность
Как установить Pyrit в Kali Linux 2
Эта статья является частью цикла, в который входят следующие заметки:
Почему Pyrit?
Pyrit позволяет создавать массивные базы данных, предварительно просчитывать часть фазы аутентификации IEEE 802.11 WPA/WPA2-PSK с компромиссными тратами времени и места. Использование вычислительной мощи многопроцессорных систем и других платформ, в том числе ATI-Stream, Nvidia CUDA, OpenCL и VIA Padlock, — это, на данный момент, наиболее мощный вектор атаки на наиболее используемые протоколы безопасности.
Устанавливаем Pyrit в Kali Linux 2
Подготовка к установке
Удаление уже существующей установки pyrit
Если вы используете не свежую установку Kali (что не рекомендуется), возможно вам нужно выполнить следующую команду:
Установка Pyrit
Установка плагина CAL++
Редактирование setup.py
Отредактируйте файл setup.py измените/замените следующие строки:
Сохраните и закройте, затем наберите следующую команду
Будет несколько предупреждений, но, надеемся, не будет ошибок и всё установится.
Тестируем cpyrit
Список доступных ядер
Вывод
В первом бенчмарке работает только процессор — i7, с турбобустами и и со всеми своими ядрами. Во втором бенчмарке подключается видеокарта — результат превышает первый в более чем 8 раз! Фактически, всю производительность в подобного рода вычислениях определяет графический процессор.
Графические процессоры являются менее универсальными, чем центральные вычислительные процессоры, поскольку обеспечивают вычисления с меньшей точностью. Но при переборе хешей (а также ряде других операций) эта точность и не нужна! При этом в видеокартах намного больше ядер. Именно за счёт этого и получается такой прирост в скорости.
Кстати, для перебора хешей больше подходят карты AMD , поскольку при переборе хешей они показывают большую скорость, чем даже у достаточно дорогие (потовые) карты NVidia .
Связанные статьи:
- Проверка / восстановление / очистка репозиториев (источников приложений) Kali Linux Rolling (51.4%)
- Как установить драйвер AMD Catalyst 15.7 (ATI fglrx) на Kali Linux 2 (51.4%)
- Как установить oclHashcat в Kali Linux 2 (51.4%)
- Как установить AMD APP SDK в Kali Linux 2 (51.4%)
- Как установить CAL++ в Kali Linux 2 (51.4%)
- Азы работы в командной строке Linux (часть 7) (RANDOM — 50%)
Рекомендуется Вам:
9 комментариев to Как установить Pyrit в Kali Linux 2
Извините, такая установка Pyrit нормальная?
/pyrit_svn/pyrit# ./setup.py build install
running build
running build_py
running build_ext
building ‘cpyrit._cpyrit_cpu’ extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -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.4.1-dev (svn r308)» -maes -mpclmul
cpyrit/_cpyrit_cpu.c:35:26: fatal error: openssl/hmac.h: Нет такого файла или каталога
#include
^
compilation terminated.
Failed to build; Compiling without AES-NI
building ‘cpyrit._cpyrit_cpu’ extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -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.4.1-dev (svn r308)»
cpyrit/_cpyrit_cpu.c:35:26: fatal error: openssl/hmac.h: Нет такого файла или каталога
#include
^
compilation terminated.
error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
Нет, это ошибка. В приведённом выводе главной является строчка fatal error: openssl/hmac.h: Нет такого файла или каталога. У вас не хватает файла hmac.h. Этот файл содержится во множестве пакетов:
Но у вас его не хватает именно в директории openssl. А это пакет libssl-dev (можно найти в списке выше). Установить его можно так:
У вас какой-то особенный дистрибутив? Лайт или кастомный?
apt-get install libssl-dev
помогла. Кали кастомный размером 3Gb.
цифры достигают 57000 паролей в секунду и спустя 20 сек процесс виснет (((. Видеокарта AMD Radeon 6870
google здох, pyrit больше не скачивается
Есть ещё где скачать:
Но толку от него нет, если не получается установить драйвер. Лично меня уже достали проблемы с AMD драйвером. На Debian давно всё плохо, а теперь так и на Arch Linux. Сплошной гемор и никакого веселья.
я не стал заморачиваться, 4.0.0-kali1-amd64 вполне для моей цели еще поработает, radeon-crimson-15.12-15.302 для 7880 карты работает
Здравствуйте. Можете объяснить как его скомпилировать и установить, используя исходные файлы? В ссылках есть инструкция, но у меня не получается.
cd pyrit_svn /trunk/
. /setup .py build install
Установка плагина CAL++
Редактирование setup.py
Отредактируйте файл setup.py измените/замените следующие строки:
Сохраните и закройте, затем наберите следующую команду
./setup.py build install
Будет несколько предупреждений, но, надеемся, не будет ошибок и всё установится.
при установки САL++ происходит вот такой вывод
Источник
Soft Как установить Pyrit в Kali Linux
Если модуль не установлен, то переходите к инструкции «Установка проприетарного драйвера AMD ATI fglrx».
Проверка установки AMD APP SDK
Проверяем, установлен ли AMD APP SDK. Если нет, то устанавливаем его по этой инструкции: «Как установить AMD APP SDK в Kali Linux?».
Проверка установки CAL++
Проверьте, установлена ли CAL++. Если нет, то следуйте этой инструкции по её установки «Как установить CAL++ в Kali Linux».
Почему Pyrit?
Pyrit позволяет создавать массивные базы данных, предварительно просчитывать часть фазы аутентификации IEEE 802.11 WPA/WPA2-PSK с компромиссными тратами времени и места. Использование вычислительной мощи многопроцессорных систем и других платформ, в том числе ATI-Stream, Nvidia CUDA, OpenCL и VIA Padlock, — это, на данный момент, наиболее мощный вектор атаки на наиболее используемые протоколы безопасности.
Устанавливаем Pyrit в Kali
Подготовка к установке
Удаление уже существующей установки pyrit
Если вы используете не свежую установку Kali (что не рекомендуется), возможно вам нужно выполнить следующую команду:
Установка плагина CAL++
Будет несколько предупреждений, но, надеемся, не будет ошибок и всё установится.
Список доступных ядер
В первом бенчмарке работает только процессор — i7, с турбобустами и прочими свистоперделками. Во втором бенчмарке подключается видеокарта — результат превышает первый в более чем 8 раз! Фактически, всю производительность в подобного рода вычислениях определяет графический процессор.
и если можно пожалуйста мануал по компиляции драйверов tp-link tw7200 от awus036 , или носом ткните где поучить почитать )
WebWare Team
Вторник на 05:06 ПП
Тут ошибка была в инструкции: две команды
Были написаны в одну строчку. Поэтому вторая не срабатывала, т.е. установки не было. Поэтому если у кого-то не получилось – просто проделайте всё ещё раз (начните с чистки).
Мы же ставим cpyrit_calpp прямо в этой инструкции. Если что-то не срабатывает, то проверьте, стоит ли у Вас драйвер, AMD APP SDK и CAL++:
Установка проприетарного драйвера AMD ATI fglrx
Как установить AMD APP SDK в Kali Linux?
Как установить CAL++ в Kali Linux?
У меня видеокарта от AMD, и я также проделал все эти шаги. У меня всё получилось: это мои бенчмарки, т.е. я получил прирост производительности примерно в восемь раз.
Что касается драйверов для беспроводных карт: неужели карты не работают «из коробки»? Вторая – так вообще знаменитая Alfa, которую все рекомендуют именно для пентестинга Wi-Fi.
Blackfenix38
Среда на 04:06 ДП
Извините если не сюда пишу , ну суть в том что у меня в городе продают только tp-link 7200-nd Вот он собран на чипе rt3070 , изначально под линукс тплинк сигнал занижен , вот пример ( win 8.1 дальность 2 этажа роутер , дом железо бетон сигнал -65 dbi linux -74 dbi , я пробывал разные мануалы по сборки дров на данный адаптер от альфы и единственный раз у меня получилось скампилирывать на linux mint 17 cinamon , смена страны данному адаптеру не помагает ( выход я понимаю есть ,смена антены ( например харченко ) но к сожелению хоти те смейтесь хотите нет у нас в городе нет в продаже разъемов rsma. Хотя очень странно потомучто провайдеры используют данные разъемы под радио точки nano stations m2. Пробывал антену dlink 12dbi увы сигнал стал получше на 2dbi ) ну всерогно вам спасибо за мануал каторого оченьсильно долго ждал ))) очень хотел проверить на сколько сильна она сила amd r9 280x , может и не потеме есть еще вопрос , )))) бэкап системы как лучше сделать ? Много мануалов , есть. Но не Все рабочие и много споров кто пишет tar кто rsynk. , не Когда бэкап нужен не был пока не научились попытки установки steam на 64 bit. Kali , раньше мануал классный был видео , а потом , таваришь ютюб удалил его )
svnsvnsvn
Понедельник на 03:09 ПП
Я снова застрял по Вашей инструкции, теперь уже на шаге:
Источник
How to solve Kali Linux apt-get install: E: Unable to locate package checkinstall
Read this article in other language
In some of our tutorials, we like to build packages from source as this helps you to get more experience as a developer, knowing the why of the things etc. Unfortunately, some reports mentioned the exception of the failure of the installation of the checkinstall package with the following command:
The error triggered in the terminal (Unable to locate package), says basically that the package cannot be found in the repositories list of apt that you have currently in your Kali Linux. In this short article, we will explain you how to install the checkinstall package adding some missing entries to the sources of apt in Kali Linux.
1. Edit the apt sources.list file with some editor
As part of its operation, Apt uses a file that lists the ‘sources’ from which packages can be obtained. This file is /etc/apt/sources.list and you need to edit it with some either CLI editor o text editor, we will use the nano editor in this case:
We will append some text at the end of this file in the next step.
2. Append old repositories information
Now that you know the file that you need to edit, proceed to append the following entries at the end of the file:
This basically adds the old kali repositories to apt, so we will be able to install the checkinstall tool with the regular command. The first word on each line, deb or deb-src, indicates the type of archive. Deb indicates that the archive contains binary packages (deb), the pre-compiled packages that we normally use. Deb-src indicates source packages, which are the original program sources plus the Debian control file (.dsc) and the diff.gz containing the changes needed for packaging the program.
Save changes to the file and proceed to update the repositories list with:
3. Check if your can install the package
Finally, after saving changes and running sudo apt-get update , proceed with the installation of the checkinstall package with the following command:
Now you should be able to install this package without any issue.
Источник
[Solved] E: Unable to locate package in Kali Linux
Like other Linux distribution Kali Linux also needs a dedicated source to download and install the packages we need. By default, Kali Linux doesn’t come with the necessary source links.
We need to manually put the list of sources from where we want to install our required packages. If there is no sources list or bad sources list on the Linux system it will result in ‘E: unable to locate package‘ error.
This problem may comes due to bad internet connection. If the internet connection is not the problem then it might because for the wrong repository. We will solve this problem by going through the processes explained in this article.
First we need to go to our Kali Linux’s computer File system and navigate to etc/apt folder.
Right-click on the ‘sources.list‘ text file and open it with any text editor.
editing sources.list on mousepad |
Delete if there is anything already wrote on the text file. Then copy and paste following lines there.
deb http://http.kali.org/kali kali-rolling main non-free contrib
Then save and close it.
There is another way to do it more easily. We can use a single command to do all these works. We just need to open a terminal and run the following command:
This command may ask the super user password (SuDo password) of the Kali Linux machine and fix the repository.
Now we need to update the system by using following command:
Now it will start update and after update our problem is fixed.
So this is the most simple way to fix unable to locate package in Kali Linux.
Источник
Pyrit no longer working Kali Linux Rolling #589
Comments
fonestar commented Aug 10, 2019
After «apt-get update && apt-get upgrade» pyrit no longer works in Kali Rolling x64.
# 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.
The text was updated successfully, but these errors were encountered:
pavonis9 commented Aug 17, 2019
Take a look at : #584 (comment)
if it works close the issue.
a5h-u commented Apr 21, 2020
its not working. Help it
Robotto commented Apr 27, 2020
I have the same issue trying a clean install running ubuntu 19.10
dmonium commented Apr 28, 2020
I have the same issue, does anyone know how to solve it?
RootSrc commented May 1, 2020
I got it working with #591
araldolucente commented May 3, 2020
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 May 4, 2020 •
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
RootSrc commented May 4, 2020 •
@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?
RootSrc commented May 5, 2020
So then, I suppose it may be an issue with Fluxion. What are the errors you are running into?
RootSrc commented May 5, 2020
So the issue actually relies on multiple things, depending how you want to fix it.
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.
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.
Spessmen14 commented Oct 15, 2020
So the issue actually relies on multiple things, depending how you want to fix it.
- 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.
- 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 Dec 4, 2020
┌──(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
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 , or unsubscribe .
Источник