As you know when downloading a lot of 0-day you can have hundreds of directories.
It is difficult to check them each to see if there are files missing or corrupt.
A script solution can do this automatically and log any missing / corrupt files.
This is very useful for both uploader and downloader.
Anyhow, if there is interest let me know - otherwise no problem [s:1]
Here is a summary:-
Example:-
0-Day titles in directories
[Only registered and activated users can see links. ]
Run checkzips
[Only registered and activated users can see links. ]
Processing 0-Day titles
[Only registered and activated users can see links. ]
Log output summary - statistics section
[Only registered and activated users can see links. ]
Log output for Incomplete/Incorrect titles
[Only registered and activated users can see links. ]
Directory of a complete 0-Day title
[Only registered and activated users can see links. ]
Directory of an incomplete 0-Day title - showing flags
[Only registered and activated users can see links. ]
Feature - move INCOMPLETE-INCORRECT-UNCHECKED titles to an 'incompletes dir'
Example:-
An INCORRECT title is detected
[Only registered and activated users can see links. ]
Log output showing offending title
[Only registered and activated users can see links. ]
Dir holding INCORRECT title
[Only registered and activated users can see links. ]
Feature - copy SPECIAL CASE titles like 'J2ME' or "[^ A-Z]EBOOK[^ A-Z]", etc
Useful to 'grow' a collection over time of specific titles like 'J2ME'; held in separate directory.
Uses Regular Expression syntax based on FINDSTR utility to select titles
Example:-
A SPECIAL CASE title is detected
[Only registered and activated users can see links. ]
REGEXP list for SPECIAL CASES
[Only registered and activated users can see links. ]
Log output
[Only registered and activated users can see links. ]
Feature - check titles to all have ZIP's, flag those not having ZIP's; eg:- null directories or titles with a RAR set.
Example:-
NOZIP Title detected
[Only registered and activated users can see links. ]
Log output showing a NULL title
[Only registered and activated users can see links. ]
Feature - do a simple OS check and warn if not correct OS script may not work properly.
Example:-
OS Check flags non MS Windows XP Home/Pro OS installed
[Only registered and activated users can see links. ]
Feature - COMPCHK Filemask checking routine for completeness checking
Example:-
Fileset is checked for completeness using a compare against a filemask
[Only registered and activated users can see links. ]
Feature - COMPULT Brute force routine for completeness checking
Example:-
Fileset is checked for completeness using a brute force extract and archive(s) test
[Only registered and activated users can see links. ]
Feature - COMPTAG 0-byte TAG file showing no. of actual ZIP's and total size
Example:-
Fileset has a 0-byte TAG file showing no. of ZIPs and size for the title
[Only registered and activated users can see links. ]
Feature - COMPCHK detects '<file>(1).zip' etc error condition for a 'complete' title
Example:-
Fileset has an incorrect file(1).zip etc for a complete title
[Only registered and activated users can see links. ]
Log showing offending fileset
[Only registered and activated users can see links. ]
Feature - DELINCO Corrupt ZIPs are deleted and title optionally moved to INCDIR
Example:-
Fileset has 1 or more corrupt ZIPs which are deleted
[Only registered and activated users can see links. ]
################################################
# Script - read README 1ST.TXT and checkzips bat README 1ST.TXT 1st
# [Only registered and activated users can see links. ]
#
# Search & Replace utility for REGEXP's
# [Only registered and activated users can see links. ]
#
# WinRar for archive duties
# [Only registered and activated users can see links. ]
################################################
Version History
30-08-08 - CZ - COMPCHK check for 0-byte zip condition and flag
13-08-08 - PA - handles rl-team files and appending header etc
13-08-08 - CZ - SPECOPY copies PDA titles etc to locations in SPELOC1, SPELOC2
09-08-08 - CZ - .r[0-9][0-9] cases handled 0DAY section
...
... <snip>
...
29-04-07 - 1st release of ZIP checking script.
## On your PC running MS Windows XP SP2 - TESTED TO WORK OK ##
Basically, you install the 2 utility programs (if you don't already have them registered):-
Winrar v3.62--> to latest
Search and Replace v5.1--> v5.5
Then you extract the WUTemp.rar archive to d:\ (can be any directory you want).
Then READ the 'checkzips bat README 1ST.TXT' file.
Then enjoy testing your ZIPs for completeness/corruption/etc [s:1]
Last edited by jOTTA67h; 9th January 2011 at 04:24.