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

Untitled

By: a guest on Jun 13th, 2012  |  syntax: None  |  size: 0.51 KB  |  hits: 16  |  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. DIR="$1"
  3.  
  4. # failsafe - fall back to current directory
  5. DIR="/tmp/malicious_caps/"
  6.  
  7. rm -r /tmp/malware/*
  8.  
  9. cd /tmp/malware/
  10.  
  11. for filename in $(find $DIR -type f -printf "%f\n" );
  12. do
  13.   mkdir /tmp/malware/$filename/;
  14.   cd /tmp/malware/$filename/;
  15.   tcpflow -r $DIR/$filename;
  16.   cd ..;
  17.   ffinder /tmp/malware/$filename/ /tmp/malware/$filename/ > /tmp/malware/$filename/results.txt;
  18. done
  19.  
  20. #  tcpflow -r "${fileArray[$i]}"
  21. #  cd ..
  22. #  sudo ffinder /tmp/malware/$i/ /tmp/malware/$i/ > /tmp/malware/$i/results.txt