Merge pull request #34 from TW-D/wireless_recon

Add Wireless Recon
pull/35/head
Marc 2022-01-23 20:23:40 +00:00 committed by GitHub
commit e7d5890b21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 107 additions and 0 deletions

View File

@ -0,0 +1,33 @@
# Wireless Recon
- Title: Wireless Recon
- Author: TW-D
- Version: 1.0
- Target: Any
- Category: Recon
- Attackmode: HID
## Description
Gets useful information about nearby WiFi access points
with the "Key Croc".
## Configuration
From "wireless-recon_payload.txt" change the values of the following variable :
```
######## SETUP ########
LED SETUP
export DUCKY_LANG=us
```
## Trigger
>
> __wireless-recon
>

View File

@ -0,0 +1,74 @@
#!/bin/bash
#
# Title: Wireless Recon
# Description:
# Gets useful information about
# nearby WiFi access points
# with the "Key Croc".
#
# Author: TW-D
# Version: 1.0
# Target: Any
# Category: Recon
# Attackmode: HID
#
# TESTED ON
# ===============
# Ubuntu 20.04.3 LTS with "Logitech Keyboard K120"
#
# STATUS
# ===============
# Magenta solid ................................... SETUP
# Yellow single blink ............................. ATTACK
# White fast blink ................................ CLEANUP
# Green 1000ms VERYFAST blink followed by SOLID ... FINISH
#
######## TRIGGER ########
MATCH __wireless-recon
######## INITIALIZATION ########
readonly IW_SCAN="$(iw wlan0 scan | egrep --extended-regexp 'BSS ([[:xdigit:]]{1,2}:)|signal: |SSID: |\* Manufacturer: |\* Model Number: |\* Serial Number: |\* Device name: ')"
######## SETUP ########
LED SETUP
export DUCKY_LANG=us
######## ATTACK ########
LED ATTACK
QUACK DELAY 1000
QUACK ENTER
QUACK DELAY 500
while IFS= read -r ap; do
info=$(echo "${ap}" | sed -e 's/^[ \t]*//')
QUACK DELAY 300
QUACK STRING "${info}"
QUACK DELAY 300
QUACK ENTER
done <<< "${IW_SCAN}"
QUACK DELAY 1000
######## CLEANUP ########
LED CLEANUP
rm -r /root/loot/*
######## FINISH ########
LED FINISH
sync
######## OFF ########
LED OFF