find binary within binary
This project received 31 bids from talented freelancers with an average bid price of £98 GBP.Get free quotes for a project like this
Project Budget£20 - £250 GBP
I require code written in any of the languages specified in the skillsets of this project. The code will find all occurrences of a series of bytes that occur in one file for their existence in a selection of other files.
the code will;
- Analyze the bytes of file A (lets call this the source)
- Analyze the bytes of files B,C,D,E and F . there may only be one file, or there could be an unlimited number based upon filesystem directory contents (lets call this the target).
- Starting in 4096byte chunks, check for any occurrence of a string of bytes from file A that exist in file B (starting 'chunk' size should be configurable)
- Divide chunk size by 0.5 and repeat
- Repeat until chunk size is 128 bytes (end chunk size should be configurable)
For example, lets say (in a very, very simple ascii representation of bytes) file A is
and file B is
then we would expect the code to return a match as 'sdfjfds' exists in both files. When this match is returned, the code will give the start byte, end byte and the byte length of the match as well as indicating the files (source and target) that the match was found in. The code will find all occurrences, so will not exit after finding the first match. it must find all matches and permutations possible from max chunk size to min chunk size.
id prefer this code in perl or java, but PHP or C are just as acceptable if you have good feedback.
Browse Related Skills
Other things people do on Freelancer
Looking to make some money?
- Set your budget and the timeframe
- Outline your proposal
- Get paid for your work
Hire Freelancers who also bid on this project
Looking for work?
Work on projects like this and make money from home!Sign Up Now
- The New York Times
- Wall Street Journal
- Times Online