Changeset 1481
- Timestamp:
- 12/07/07 07:50:40 (7 months ago)
- Files:
-
- trunk/mwfetcher/CHANGELOG (modified) (1 diff)
- trunk/mwfetcher/install (modified) (2 diffs)
- trunk/mwfetcher/src/mwfetcher (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/mwfetcher/CHANGELOG
r735 r1481 1 v0.1.2 2 * Fixed a bug while processing NTFS file system. !IMPORTANT! After upgrading to 3 this version, please use "-i" option a generate a new clean list. 4 1 5 v0.1.1 2 6 * Added auto detection for file system type, which will override "-t vfat" option. trunk/mwfetcher/install
r735 r1481 1 1 #!/bin/bash 2 3 echo "Installing MwFetcher v0.1.2 ..." 2 4 3 5 install_path=${1:-"/usr/sbin/"} … … 30 32 /bin/cp ./src/mwfetcher "$install_path" 31 33 chmod 755 "$install_path/mwfetcher" 34 35 echo "Regenerate clean file list if you just upgraded to version 0.1.2!" trunk/mwfetcher/src/mwfetcher
r735 r1481 6 6 # Copyright (C) 2006 Artemis: Chinese Honeynet Project 7 7 # 8 # Version 0.1. 18 # Version 0.1.2 9 9 # 10 10 # This program is free software; you can redistribute it and/or modify … … 60 60 #Do not modify 61 61 fetch_dir=tools/Samples 62 version="0.1. 1"62 version="0.1.2" 63 63 64 64 # mount_vmdisk … … 178 178 cp "$good_file" "$home_dir/$bad_file" 179 179 fi 180 diff "$home_dir/$bad_file" "$good_file" | grep "^<" | sed '{s/< //}' > "$home_dir/diff.tmp"180 diff -B -H "$home_dir/$bad_file" "$good_file" | grep "^<" | sed '{s/< //}' > "$home_dir/diff.tmp" 181 181 rm -f "$home_dir/$bad_file" 182 182 … … 233 233 elif [ -n "$(echo ${sample_path##*/} | grep ^fsck)" ]; then 234 234 return 1 235 elif [ $(ls -l "$sample_path" | awk '{print $5}') == 57856 ]; then236 return 1237 235 elif [ -n "$(file "$sample_path" | grep executable | grep MS)" ]; then 238 236 return 0 … … 310 308 cat "${fslist_name}.tmp" | while read line 311 309 do 312 md5sum "$line" 2>/dev/null | sed s/$mount_dir_hdr// >> "$fslist_name"310 md5sum "$line" 2>/dev/null | sed s/$mount_dir_hdr// | sort >> "$fslist_name" 313 311 done 314 312 rm "${fslist_name}.tmp" -f 315 313 else 316 314 echo "Normal" > "$fslist_name" 317 find "$mount_dir" -type f | sed s/$mount_dir_hdr// >> "$fslist_name"315 find "$mount_dir" -type f | sed s/$mount_dir_hdr// | sort >> "$fslist_name" 318 316 fi 319 317
