Установка aircrack-ng на CentOS 7
Название нашей wifi карточки — wlp3s0.
Установим необходимые зависимости
yum install git-svn libpcap-devel sqlite-devel gcc gcc-c++ libnl-devel openssl-devel usbutils pciutils rfkill
Получение исходного кода и сборка.
svn co http://svn.aircrack-ng.org/trunk/ aircrack-ng cd aircrack-ng/ make install clean
Запуск виртуального интерфейса на wifi карточке
Название карточки в выводе выше посмотрели.
# airmon-ng start wlp3s0
Старт сбора пакетов
# airodump-ng wlp3s0mon
Останов режима monitor wifi карты
# airmon-ng stop wlp3s0mon
Установите Aircrack-ng на Ubuntu
Aircrack-ng — это целый набор инструментов для аудита безопасности беспроводной сети. Его можно использовать для мониторинга, тестирования, взлома или атаки на протоколы беспроводной безопасности, такие как WEP, WPA, WPA2. Aircrack-ng основан на командной строке и доступен для Windows, Mac OS и других операционных систем на базе Unix. Пакет Aircrack-ng содержит множество инструментов, используемых для различных целей, но здесь мы рассмотрим только некоторые важные инструменты, которые чаще всего используются при тестировании беспроводной безопасности.
Airmon-ng
Airmon-ng используется для управления режимами беспроводной карты и для уничтожения ненужных процессов при использовании aircrack-ng. Чтобы прослушивать беспроводное соединение, вам нужно перевести беспроводную карту из управляемого режима в режим мониторинга, и для этой цели используется airmon-ng.
Airodump-ng
Airodump-ng — это анализатор беспроводных сетей, который может собирать беспроводные данные с одной или нескольких беспроводных точек доступа. Он используется для анализа ближайших точек доступа и захвата рукопожатий.
Aireplay-ng
Aireplay-ng используется для повторных атак и в качестве инжектора пакетов. Это может быть деаутентификация пользователей на их точках доступа для захвата рукопожатий.
Airdecap-ng
Airdecap-ng используется для расшифровки зашифрованных беспроводных пакетов WEP, WPA/WPA2 с известным ключом.
Aircrack-ng
Aircrack-ng используется для атаки беспроводных протоколов WPA/WEP с целью поиска ключа.
Монтаж
Aircrack-ng легко установить в Ubuntu с помощью APT. Просто введите следующую команду, и она установит все инструменты, доступные в пакете Aircrack-ng.
sudo apt-get update
sudo apt-get install -y aircrack-ng

Применение
В этой статье мы кратко рассмотрим, как использовать aircrack-ng для взлома зашифрованной беспроводной сети (в данном примере TR1CKST3R) для поиска пароля.
Прежде всего, выведите список всех доступных беспроводных карт, подключенных к вашему ПК, с помощью команды «iwconfig».

В этом руководстве мы будем использовать беспроводную карту с именем «wlxc83a35cb4546» (в вашем случае это может быть иначе). Теперь убейте все процессы, запущенные на беспроводной карте, с помощью airmon-ng.
ubuntu@ubuntu:~$ sudo airmon-ng check kill
Start Monitor mode on ‘wlxc83a35cb4546’ by typing
ubuntu@ubuntu:~$ sudo airmon-ng start wlxc83a35cb4546

Теперь airmon-ng запустил режим мониторинга на беспроводной карте, он будет отображаться как другое имя «wlan0mon». Запустите «iwconfig» еще раз, чтобы получить список сведений о беспроводной сети.

Затем используйте airodump-ng, чтобы увидеть ближайшие точки беспроводного доступа и их свойства.
ubuntu@ubuntu:~$ sudo airodump-ng wlan0mon

Вы можете сузить поиск, используя фильтры MAC (-bssid) и каналов (-c). Чтобы перехватить рукопожатие (рукопожатие содержит зашифрованный пароль), нам нужно где-то сохранить наши пакеты, используя опцию «–write». Тип,
ubuntu@ubuntu:~$ sudo airodump-ng —bssid 6C:B7: 49 :FC: 62 :E4
-c 11 wlan0mon —write / tmp / handshake.cap
—bssid : Access Point’s MAC Address
-c : Access Point’s channel [ 1 — 13 ]
—write : Stores captured packets at a defined location
Теперь нам нужно деаутентифицировать каждое устройство этой точки доступа с помощью утилиты Aireplay-ng. Писать
ubuntu@ubuntu:~$ sudo aireplay-ng -0 100 -a [ MAC_ADD ] wlan0mon

-a : указать MAC-адрес точек доступа для Aireplay-ng
-0: указать количество пакетов деаутентификации для отправки
Через некоторое время все устройства будут отключены от этой точки доступа, когда они попытаются повторно подключиться, запуск airodump-ng зафиксирует рукопожатие. Он появится в верхней части запущенного airodump-ng.

Рукопожатие хранится в каталоге ‘/tmp/’ и содержит зашифрованный пароль, который может быть взломан в автономном режиме с помощью словаря. Чтобы взломать пароль, мы будем использовать Aircrack-ng. Тип
ubuntu@ubuntu:~$ sudo aircrack-ng / tmp / handshake.cap-01.cap -w
/ usr / share / wordlists / rockyou.txt
-w : Specify the dictionary location
Aircrack-ng просмотрит список паролей и, если найдет, отобразит пароль, используемый в качестве ключа.

В этом случае aircrack-ng обнаружил, что используется пароль «123456789».
Теперь остановите режим монитора на беспроводной карте и перезапустите сетевой менеджер.
ubuntu@ubuntu:~$ sudo airmon-ng stop wlan0mon
ubuntu@ubuntu:~$ sudo service network-manager restart
Заключение
Aircrack-ng можно использовать для аудита безопасности беспроводной сети или для взлома забытых паролей. Для этой цели доступны некоторые другие подобные инструменты, такие как Kismet, но aircrack-ng более известен своей хорошей поддержкой, универсальностью и широким набором инструментов. Он имеет простой в использовании интерфейс командной строки, который можно легко автоматизировать с помощью любого языка сценариев, такого как Python.
Все права защищены. © Linux-Console.net • 2019-2024
Как правильно установить Airodump-ng?
в общем мне пришлось переустановить airodump-ng после чего он перестал запускаться из консоли выдаёт типа такое airodump-ng wlan0
airodump-ng: error while loading shared libraries: libaircrack-osdep-1.6.0.so: cannot open shared object file: No such file or directory
и теперь он накодится в корневой папке, куда и как перенести его что бы всё запускалось из консоли находясь в любой папке? или как правильно переустановить последнюю версию?
f22
Codeby Academy
Gold Team
05.05.2019 1 775 222 BIT 629
в общем мне пришлось переустановить airodump-ng после чего он перестал запускаться из консоли выдаёт типа такое airodump-ng wlan0
airodump-ng: error while loading shared libraries: libaircrack-osdep-1.6.0.so: cannot open shared object file: No such file or directory
и теперь он накодится в корневой папке, куда и как перенести его что бы всё запускалось из консоли находясь в любой папке? или как правильно переустановить последнюю версию?
Он входит в этот пакет.
apt-get install aircrack-ng
wlan0mode
Green Team
12.01.2020 59 73 BIT 0
Он входит в этот пакет.
apt-get install aircrack-ng
я установил его вот только выдаёт ошибку из ПП
f22
Codeby Academy
Gold Team
05.05.2019 1 775 222 BIT 629
я установил его вот только выдаёт ошибку из ПП
Установи нужные пакеты
apt-get install -y git autoconf automake libpcre3-dev libnl-3-dev libsqlite3-dev libssl-dev ethtool build-essential g++ libnl-genl-3-dev libgcrypt20-dev libtool python3-distutils
Или пробуй полностью переустановить
apt-get -y purge aircrack-ng && apt-get -y install aircrack-ng
Можешь попробовать установить прямо с github’a
git clone https://github.com/aircrack-ng/aircrack-ng.git
cd aircrack-ng/
autoreconf -i
./configure —with-experimental —with-ext-scripts
make
sudo make install
Мы в соцсетях:
Обучение наступательной кибербезопасности в игровой форме. Начать игру!
Поделиться:
XenPorta 2 PRO © Jason Axelrod of 8WAYRUN
На данном сайте используются cookie-файлы, чтобы персонализировать контент и сохранить Ваш вход в систему, если Вы зарегистрируетесь.
Продолжая использовать этот сайт, Вы соглашаетесь на использование наших cookie-файлов.
Installing Aircrack-ng from Source
LibNetlink 1 (libnl-dev) or 3 (libnl-3-dev and libnl-genl-3-dev) development packages. It can be disabled by passing –disable-libnl to configure.
Kernel headers and gcc as well as make have to be installed on your system (build-essential on Debian based distributions)
make and Standard C++ Library development package (Debian: libstdc++-dev)
Windows (Cygwin)
w32api is required
if using clang, libiconv and libiconv-devel
make and Standard C++ Library development package
MacOS
Install the following via Homebrew (brew):
cmocka (optional)
FreeBSD, OpenBSD, NetBSD, Solaris
Install the following via pkg:
gcc9 (or better)
Optional stuff
If you want SSID filtering with regular expression in airodump-ng (-essid-regex) pcre development package is required.
If you want to use airolib-ng and ‘-r’ option in aircrack-ng, SQLite development package >= 3.3.17 (3.6.X version or better is recommended)
If you want to use Airpcap, the ‘developer’ directory from the CD is required. It can be downloaded here.
For best performance on FreeBSD (50-70% more), install gcc5 via: pkg install gcc5 Then compile with: gmake CC=gcc5 CXX=g++5
hwloc: strongly recommended, especially on high core count systems where it may give a serious performance boost
Compiling and installing
On OS X, *BSD and Solaris, use ‘gmake’ instead of ‘make’.
In order to compile with clang instead of gcc, add ‘CC=clang CXX=clang++’ to the configure command.
Current version
wget https://download.aircrack-ng.org/aircrack-ng-1.7.tar.gz tar -zxvf aircrack-ng-1.7.tar.gz cd aircrack-ng-1.7 autoreconf -i ./configure --with-experimental make make install ldconfig
Compiling with AirPcap support (cygwin only)
Copy ‘developer’ directory from the AirPcap CD at the same level as ‘Aircrack-ng’ directory
Append ‘- -with-airpcap=../developer’ parameter to configure:
Compiling on *BSD
Commands are exactly the same as Linux but instead of make, use gmake (with CC=gcc5 CXX=g++5 or any more recent gcc version installed).
Compiling on MacOS
Commands are exactly the same as Linux
Latest Git (development) Sources
Note: Compilation parameters can also be used with the sources from our git repository.
git clone https://github.com/aircrack-ng/aircrack-ng cd aircrack-ng autoreconf -i ./configure --with-experimental make make install ldconfig
./configure flags
When configuring, the following flags can be used and combined to adjust the suite to your choosing:
with-airpcap=DIR: needed for supporting airpcap devices on windows (cygwin or msys2 only) Replace DIR above with the absolute location to the root of the extracted source code from the Airpcap CD or downloaded SDK available online. Required on Windows to build besside-ng, besside-ng-crawler, easside-ng, tkiptun-ng and wesside-ng when building experimental tools. The developer pack (Compatible with version 4.1.1 and 4.1.3) can be downloaded at https://support.riverbed.com/content/support/software/steelcentral-npm/airpcap.html
with-experimental: needed to compile tkiptun-ng, easside-ng, buddy-ng, buddy-ng-crawler, airventriloquist and wesside-ng. libpcap development package is also required to compile most of the tools. If not present, not all experimental tools will be built. On Cygwin, libpcap is not present and the Airpcap SDK replaces it. See –with-airpcap option above. On debian based distro, install libpcap-dev
with-ext-scripts: needed to build airoscript-ng, versuck-ng, airgraph-ng and airdrop-ng. Note: Each script has its own dependencies. Note: It’s only required in install phase.
with-gcrypt: Use libgcrypt crypto library instead of the default OpenSSL. And also use internal fast sha1 implementation (borrowed from GIT) Dependency (Debian): libgcrypt20-dev
with-duma: Compile with DUMA support. DUMA is a library to detect buffer overruns and under-runs. Dependencies (debian): duma
with-xcode: Set this flag to true to compile on OS X with Xcode 7+.
disable-libnl: Set-up the project to be compiled without libnl (1 or 3). Linux option only.
without-opt: Do not enable stack protector (on GCC 4.9 and above).
enable-shared: Make OSdep a shared library.
disable-shared: When combined with enable-static, it will statically compile Aircrack-ng.
with-avx512: On x86, add support for AVX512 instructions in aircrack-ng. Only use it when the current CPU supports AVX512.
with-static-simd=: Compile a single optimization in aircrack-ng binary. Useful when compiling statically and/or for space-constrained devices. Valid SIMD options: x86-sse2, x86-avx, x86-avx2, x86-avx512, ppc-altivec, ppc-power8, arm-neon, arm-asimd. Must be used with –enable-static –disable-shared. When using those 2 options, the default is to compile the generic optimization in the binary. –with-static-simd merely allows to choose another one.
enable-maintainer-mode: It is important to enable this flag when developing with Aircrack-ng. This flag enables additional compile warnings and safety features.
Troubleshooting Tips
error while loading shared libraries: libaircrack-ng.so.0
Run ldconfig as root or with “sudo” to solve the issue.
«command not found» error message
After you do “make install” then try to use any of the Aircrack-ng suite commands, you get the error message “command not found” or similar. Your system will look for the Aircrack-ng commands in the directories defined by the PATH command.
Normally, the Aircrack-ng suite programs and man pages are placed in:
/usr/local/bin /usr/local/sbin /usr/local/man
On your system, to determine which directories have the Aircrack-ng programs enter the following. If using “locate” be sure to first run “updatedb”.
locate aircrack-ng locate airmon-ng
find / -name aircrack-ng find / -name airmon-ng
Once you know the directories (exclude the source directories) then determine which directories are in your PATH. To see which directories are included in PATH on your particular system enter:
echo $PATH
It should show something like:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
At this point compare the actual locations with the directories in your PATH. If the directories are missing from your PATH then you have a few options:
Add the directories to your PATH. See the one or more of the following web sites for details of how to do this:
https://www.cyberciti.biz/faq/howto-print-path-variable/ http://www.troubleshooters.com/linux/prepostpath.htm
Change to the particular directory with “cd” and then run the commands from within the directory. Don’t forget to add “./” in front of each command.
Specify the full path for each command. So if Aircrack-ng is located in the “/usr/local/bin” directory then run the command as “/usr/local/bin/aircrack-ng”.
Installing pre-compiled binaries
Linux/BSD/OSX
With the exception of Linux penetration testing distributions, packages are usually out of date (MacOS is the exception). In this case, uninstalling the package and installing from sources is the recommended way to go.
On MacOS, install it is via Macports or brew. Simply do “brew install aircrack-ng” or “sudo ports install aircrack-ng”
Windows
The Windows version of the Aircrack-ng suite does not have an install program. You must manually install (unzipping archive) the software.
Here are the steps to follow for Windows:
Download the latest version of the Aircrack-ng suite for Windows to your computer. The link for the zip file can be found on the Wiki home page.
Unzip the contents of the Aircrack-ng zip file into “C:\”. This will create a directory called “aircrack-ng-1.6-win”. This directory name will vary based on the exact version that you downloaded. This main directory contains three subdirectories — “bin”, “src” and “test”.
Prior to using the software, make sure to install the drivers for your particular wireless card. See this link for the instructions. We currently only support Airpcap; other adapters may be supported but require development of your own DLL so the different tools can interact with it.
To now use the Aircrack-ng suite, start Windows Explorer and double click on Aircrack-ng GUI .exe inside “bin” subdirectory. The GUI requires .NET version 4.6.1 to run.
Alternatively, open a command prompt (Start menu → Execute → cmd.exe) and change to the “C:\aircrack-ng-1.6-win\bin” directory and execute the individual commands.
Important notes:
Airmon-ng is a Linux/FreeBSD tool only.
Remember that Windows only supports a limited subset of the commands.
Some troubleshooting tips specific to XP and Vista can be found on this page.
install_aircrack.txt · Last modified: 2023/03/03 16:47 by mister_x
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International