
Untitled
By: a guest on
Jun 13th, 2012 | syntax:
None | size: 0.51 KB | hits: 16 | expires: Never
#!/bin/bash
DIR="$1"
# failsafe - fall back to current directory
DIR="/tmp/malicious_caps/"
rm -r /tmp/malware/*
cd /tmp/malware/
for filename in $(find $DIR -type f -printf "%f\n" );
do
mkdir /tmp/malware/$filename/;
cd /tmp/malware/$filename/;
tcpflow -r $DIR/$filename;
cd ..;
ffinder /tmp/malware/$filename/ /tmp/malware/$filename/ > /tmp/malware/$filename/results.txt;
done
# tcpflow -r "${fileArray[$i]}"
# cd ..
# sudo ffinder /tmp/malware/$i/ /tmp/malware/$i/ > /tmp/malware/$i/results.txt