Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 15th, 2012  |  syntax: None  |  size: 0.62 KB  |  hits: 10  |  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. echo "This script requires tshark"
  3. echo
  4. echo "Checking for tshark"
  5. type -P tshark &>/dev/null || { echo "I require tshark but it's not installed.  Aborting." >&2; exit 1; }
  6. echo "tshark found"
  7. echo
  8. echo "Moving on...."
  9. echo
  10. echo "Please the path to the capture (ex. /home/john/NETGEAR.cap)"
  11. read cap_path
  12. echo
  13. echo "Please enter the ESSID (ex. NETGEAR)"
  14. read essid
  15. echo
  16. echo "Stripping file...."
  17. tshark -r $cap_path -R 'eapol || wlan_mgt.tag.interpretation eq "$essid"' -w stripped.cap
  18. echo
  19. echo "Your stripped file should be located in the current directory and named stripped.cap."