
Workflow de piratage WiFi avec l'API WiFi Pineapple Mark VII
Auteur:: TW-D
Version:: 1.3.7
Copyright:: Copyright (c) 2024 TW-D
Licence:: Distribué sous les mêmes termes que Ruby
Documentation:: https://hak5.github.io/mk7-docs/docs/rest/rest/
Prérequis:: Ruby >= 2.7.0p0 et WiFi Pineapple Mark VII >= 2.1.0-stable
Installation (Distributions Linux basées sur Debian)::
sudo apt-get install build-essential curl g++ ruby ruby-dev
sudo gem install net-ssh rest-client tty-progressbar
Bibliothèque permettant l'automatisation d'opérations d'attaque actives ou passives.
Note : Les "Issues" et "Pull Requests" sont les bienvenues.
Dans le répertoire "./payloads/", vous trouverez :
| COMMANDE ET CONTRÔLE | Auteur | Utilisation |
|---|---|---|
| Hak5 Key Croc - Récupération en temps réel des frappes clavier depuis un clavier | TW-D | (edit) ruby ./hak5_key-croc.rb |
| Maltronics WiFi Deauther - Envoyer des trames beacon en continu | TW-D | (edit) ruby ./maltronics_wifi-deauther.rb |
| DÉFENSE | Auteur | Utilisation |
|---|---|---|
| Hak5 Pineapple Spotter | TW-D avec des remerciements particuliers à @DrSKiZZ, @cribb-it, @barry99705 et @dark_pyrro | (edit) ruby ./hak5-pineapple_spotter.rb |
| DoS | Auteur | Utilisation |
|---|---|---|
| Désauthentification des clients disponibles sur les points d'accès | TW-D | (edit) ruby ./deauthentication-clients.rb |
| EXPLOITATION | Auteur | Utilisation |
|---|---|---|
| Point d'accès Evil WPA | TW-D | (edit) ruby ./evil-wpa_access-point.rb |
| Faux points d'accès | TW-D | (edit) ruby ./fake_access-points.rb |
| Handshakes en masse | TW-D | (edit) ruby ./mass-handshakes.rb |
| Points d'accès rogues | TW-D | (edit) ruby ./rogue_access-points.rb |
| Points d'accès jumeaux | TW-D | (edit) ruby ./twin_access-points.rb |
| GÉNÉRAL | Auteur | Utilisation |
|---|---|---|
| Statut du système, utilisation du disque, ... | TW-D | (edit) ruby ./dashboard-stats.rb |
| Interfaces réseau | TW-D | (edit) ruby ./networking-interfaces.rb |
| Journaux système | TW-D | (edit) ruby ./system-logs.rb |
| RECONNAISSANCE | Auteur | Utilisation |
|---|---|---|
| Points d'accès et clients sur 2,4 GHz et 5 GHz (avec un adaptateur supporté) | TW-D | (edit) ruby ./access-points_clients_5ghz.rb |
| Points d'accès et clients | TW-D | (edit) ruby ./access-points_clients.rb |
| Adresses MAC des points d'accès | TW-D | (edit) ruby ./access-points_mac-addresses.rb |
| Paramètres étiquetés des points d'accès | TW-D | (edit) ruby ./access-points_tagged-parameters.rb |
| Points d'accès et cartographie réseau sans fil avec WiGLE | TW-D | (edit) ruby ./access-points_wigle.rb |
| Adresses MAC des clients | TW-D | (edit) ruby ./clients_mac-addresses.rb |
| Points d'accès OUVERTS | TW-D | (edit) ruby ./open_access-points.rb |
| Points d'accès WEP | TW-D | (edit) ruby ./wep_access-points.rb |
| Points d'accès WPA | TW-D | (edit) ruby ./wpa_access-points.rb |
| Points d'accès WPA2 | TW-D | (edit) ruby ./wpa2_access-points.rb |
| Points d'accès WPA3 | TW-D | (edit) ruby ./wpa3_access-points.rb |
| WARDRIVING | Auteur | Utilisation |
|---|---|---|
| Reconnaissance continue sur 2,4 GHz et 5 GHz (avec un adaptateur supporté) | TW-D | (edit) ruby ./continuous-recon_5ghz.rb [CTRL+c] |
| Reconnaissance continue pour la capture de handshakes | TW-D | (edit) ruby ./continuous-recon_handshakes.rb [CTRL+c] |
| Reconnaissance continue | TW-D | (edit) ruby ./continuous-recon.rb [CTRL+c] |
#
# Title: <TITLE>
#
# Description: <DESCRIPTION>
#
#
# Author: <AUTHOR>
# Version: <VERSION>
# Category: <CATEGORY>
#
# STATUS
# ======================
# <SHORT-DESCRIPTION> ... SETUP
# <SHORT-DESCRIPTION> ... ATTACK
# <SHORT-DESCRIPTION> ... SPECIAL
# <SHORT-DESCRIPTION> ... FINISH
# <SHORT-DESCRIPTION> ... CLEANUP
# <SHORT-DESCRIPTION> ... OFF
#
require_relative('<PATH-TO>/classes/PineappleMK7.rb')
system_authentication = PineappleMK7::System::Authentication.new
system_authentication.host = "<PINEAPPLE-IP-ADDRESS>"
system_authentication.port = 1471
system_authentication.mac = "<PINEAPPLE-MAC-ADDRESS>"
system_authentication.password = "<ROOT-ACCOUNT-PASSWORD>"
if (system_authentication.login)
led = PineappleMK7::System::LED.new
# SETUP
#
led.setup
#
# [...]
#
# ATTACK
#
led.attack
#
# [...]
#
# SPECIAL
#
led.special
#
# [...]
#
# FINISH
#
led.finish
#
# [...]
#
# CLEANUP
#
led.cleanup
#
# [...]
#
# OFF
#
led.off
end
Note : N'hésitez pas à vous inspirer du répertoire des payloads.
system_authentication = PineappleMK7::System::Authentication.new
system_authentication.host = (string) "<PINEAPPLE-IP-ADDRESS>"
system_authentication.port = (integer) 1471
system_authentication.mac = (string) "<PINEAPPLE-MAC-ADDRESS>"
system_authentication.password = (string) "<ROOT-ACCOUNT-PASSWORD>"
system_authentication.login()
led = PineappleMK7::System::LED.new
led.setup()
led.failed()
led.attack()
led.special()
led.cleanup()
led.finish()
led.off()
dashboard_notifications = PineappleMK7::Modules::Dashboard::Notifications.new
dashboard_notifications.clear()
dashboard_stats = PineappleMK7::Modules::Dashboard::Stats.new
dashboard_stats.output()
logging_system = PineappleMK7::Modules::Logging::System.new
logging_system.output()
pineap_clients = PineappleMK7::Modules::PineAP::Clients.new
pineap_clients.connected_clients()
pineap_clients.previous_clients()
pineap_clients.kick( (string) mac )
pineap_clients.clear_previous()
evil_wpa = PineappleMK7::Modules::PineAP::EvilWPA.new
evil_wpa.ssid = (string default:'PineAP_WPA')
evil_wpa.bssid = (string default:'00:13:37:BE:EF:00')
evil_wpa.auth = (string default:'psk2+ccmp')
evil_wpa.password = (string default:'pineapplesareyummy')
evil_wpa.hidden = (boolean default:false)
evil_wpa.enabled = (boolean default:false)
evil_wpa.capture_handshakes = (boolean default:false)
evil_wpa.save()
pineap_filtering = PineappleMK7::Modules::PineAP::Filtering.new
pineap_filtering.client_filter( (string) 'allow' | 'deny' )
pineap_filtering.add_client( (string) mac )
pineap_filtering.clear_clients()
pineap_filtering.ssid_filter( (string) 'allow' | 'deny' )
pineap_impersonation = PineappleMK7::Modules::PineAP::Impersonation.new
pineap_impersonation.output()
pineap_impersonation.add_ssid( (string) ssid )
pineap_impersonation.clear_pool()
open_ap = PineappleMK7::Modules::PineAP::OpenAP.new
open_ap.output()
pineap_settings = PineappleMK7::Modules::PineAP::Settings.new