Airba.sh - A POSIX-compliant, Fully Automated WPA PSK Handshake Capture Script Aimed At Penetration Testing  

Posted by Sykes



Airbash is a POSIX-compliant, fully automated WPA PSK handshake capture script aimed at penetration testing. It is compatible with Bash and Android Shell (tested on Kali Linux and Cyanogenmod 10.2) and uses aircrack-ng to scan for clients that are currently connected to access points (AP). Those clients are then deauthenticated in order to capture the handshake when attempting to reconnect to the AP. Verification of a captured handshake is done using aircrack-ng. If one or more handshakes are captured, they are entered into an SQLite3 database, along with the time of capture and current GPS data (if properly configured).
After capture, the database can be tested for vulnerable router models using crackdefault.sh. It will search for entries that match the implemented modules, which currently include algorithms to compute default keys for Speedport 500-700 series, Thomson/SpeedTouch and UPC 7 digits (UPC1234567) routers.

Requirements
WiFi interface in monitor mode aircrack-ng SQLite3 openssl for compilation of modules (optional) wlanhc2hcx from hcxtools
In order to log GPS coordinates of handshakes, configure your coordinate logging software to log to .loc/*.txt (the filename can be chosen as desired). Airbash will always use the output of cat "$path$loc"*.txt 2>/dev/null | awk 'NR==0; END{print}', which equals to reading all .txt files in .loc/ and picking the second line. The reason for this way of implementation is the functionality of GPSLogger, which was used on the development device.

Calculating default keys
After capturing a new handshake, the database can be queried for vulnerable router models. If a module applies, the default keys for this router series are calculated and used as input for aircrack-ng to try and recover the passphrase.

Compiling Modules
The modules for calculating Thomson/SpeedTouch and UPC1234567 (7 random digits) default keys are included in src/
Credits for the code go to the authors Kevin Devine and [peter@haxx.in].
On Linux:
gcc -fomit-frame-pointer -O3 -funroll-all-loops -o modules/st modules/stkeys.c -lcrypto
gcc -O2 -o modules/upckeys modules/upc_keys.c -lcrypto
If on Android, you may need to copy the binaries to /system/xbin/ or to another directory where binary execution is allowed.

Usage
Running install.sh will create the database, prepare the folder structure and create shortlinks to both scripts which can be moved to a directory that is on $PATH to allow execution from any location.
After installation, you may need to manually adjust INTERFACE on line 46 in airba.sh. This will later be determined automatically, but for now the default is set to wlan0, to allow out of the box compatibility with bcmon on Android.
./airba.sh starts the script, automatically scanning and attacking targets that are not found in the database. ./crackdefault.sh attempts to break known default key algorithms.
To view the database contents, run sqlite3 .db.sqlite3 "SELECT * FROM hs" in the main directory.

Update (Linux only ... for now):
Airbash can be updated by executing update.sh. This will clone the master branch into /tmp/ and overwrite the local files.

Output
_n: number of access points found
__c/m: represents client number and maximum number of clients found, respectively
-: access point is blacklisted
x: access point already in database
?: access point out of range (not visible to airodump anymore)

The Database
The database contains a table called hs with seven columns.
id: incrementing counter of table entries
lat and lon: GPS coordinates of the handshake (if available)
bssid: MAC address of the access point
essid: Name identifier
psk: WPA Passphrase, if known
prcsd: Flag that gets set by crackdefault.sh to prevent duplicate calculation of default keys if a custom passphrase was used.
Currently, the SQLite3 database is not password-protected.


Read more
  1. Hack Website Online Tool
  2. Hack Tools For Windows
  3. Pentest Tools Website Vulnerability
  4. Pentest Tools For Mac
  5. Best Pentesting Tools 2018
  6. Hacking Tools Usb
  7. Nsa Hack Tools
  8. Hacking Tools For Windows
  9. Game Hacking
  10. Pentest Tools Find Subdomains
  11. Beginner Hacker Tools
  12. Hack App
  13. Hacking Tools Online
  14. Usb Pentest Tools
  15. Hacker Tools Apk Download
  16. Hack Tools For Pc
  17. How To Hack
  18. Hack Tools For Ubuntu
  19. Hack Tools For Games
  20. Hak5 Tools
  21. Top Pentest Tools
  22. Hacker
  23. Pentest Tools Online
  24. Hacker Tools Hardware
  25. Kik Hack Tools
  26. Hack Tool Apk No Root
  27. Hack Tools 2019
  28. Github Hacking Tools
  29. Pentest Tools For Android
  30. Wifi Hacker Tools For Windows
  31. Computer Hacker
  32. Pentest Tools
  33. Hacking Tools Mac
  34. Pentest Tools Alternative
  35. Hacker Security Tools
  36. Hacking Tools Online
  37. Hacking Tools Free Download
  38. Tools 4 Hack
  39. Pentest Tools Kali Linux
  40. Hack And Tools
  41. Pentest Tools For Mac
  42. Pentest Reporting Tools
  43. Hacker Tool Kit
  44. Hack Tools For Windows
  45. Nsa Hack Tools Download
  46. Free Pentest Tools For Windows
  47. Pentest Tools Find Subdomains
  48. Pentest Automation Tools
  49. Hacker Tools Hardware
  50. Hack Tools 2019
  51. Hacker Search Tools
  52. Hacks And Tools
  53. Hack Tools For Windows
  54. Hacking App
  55. Hacking Tools Name
  56. Pentest Tools For Mac
  57. Blackhat Hacker Tools
  58. Bluetooth Hacking Tools Kali
  59. Black Hat Hacker Tools
  60. Hack Tools 2019
  61. Hacking Tools
  62. Pentest Tools Online
  63. Hacker Tool Kit
  64. Hack Rom Tools
  65. Hacker Tools For Ios
  66. Hacking Tools Mac
  67. Pentest Tools Website Vulnerability
  68. Hacker Search Tools

0 comments

Post a Comment

Hip-Hop Heads

Twitter Updates

Twitter Updates

    follow me on Twitter

    Contributors

    My photo
    Navarre, GUNshine State, FLAWada... Homie, United States
    What up?!?! This is me, Sykes. Not really a lot here. I'm a daddy to two of the greatest little monsters in the world. I'm a full time Animal Control Officer, aspiring record producer, and always HIP-HOP. Check me out.