????????????Fuzz testing ???????????????????????????????????????У?Elliotte Rusty Harold ???????????????????ó????????????????????????????????У????XML ????洢????????????????????????????????????????????????????????????????????????????????????????????????? ?? ?????????????????????????????????

?????????????????????????????? Microsoft Word ????????????????????λ???????????ó??????????????????????汣??????????У?????????????????崵????Word ????????????????????????????????????????????????????????????????????????????????????????????Word ??????Ω?????????????????????????????

???????????????????????????????????????????????У?????????????????? fuzz??????????????????????????????????????????????????????????????????????????????2??????????????????????????????????????????????????????????????С??????????????????????????????????????????????????κ???????????????????????????

????????????????????????????????????????е???? bug????????????????????е???????????????????????????????????????????????????????

??????????????????

???????????????????????????????

????1???????????????е???????????

????2????????????滻????????Щ?????

????3???ó?????????

????4??????????????

??????????????????????????????????磬?????????????????????????滻???е??????????????????????? ASCII ??????????????????????????з????????????????????????ó??????????????????

??????????????г??????????????????Ч????????????????????????????????????£?????????????????????????ó????????????????????????????????????????????????????????У???δ???巢???????????????????? bug?????????????????????????????????????????????????????????????????????????????洢????????????????????????????????????????

??????????? C ????ó???

?????????????????????????????? C ??д???????????? ?? ??????????????????????????????????????????????????????????????????????????????????????????????????????????????
 
??????????????????????Щ??????????????Щ?????????????????磬?嵥 1 ????????????Java™?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????δ????????????????????????????

?????嵥 1. ??????????滻??????????

import java.io.*;
import java.security.SecureRandom;
import java.util.Random;
public class Fuzzer {
     private Random random = new SecureRandom();
     private int count = 1;
     public File fuzz(File in?? int start?? int length) throws IOException
{
         byte[] data = new byte[(int) in.length()];
         DataInputStream din = new DataInputStream(new FileInputStream(in));
         din.readFully(data);
         fuzz(data?? start?? length);
         String name = "fuzz_" + count + "_" + in.getName();
         File fout = new File(name);
         FileOutputStream  out = new FileOutputStream(fout);
         out.write(data);
         out.close();
         din.close();
         count++;
         return fout;
     }
     // Modifies byte array in place
     public void fuzz(byte[] in?? int start?? int length) {
         byte[] fuzz = new byte[length];
         random.nextBytes(fuzz);
         System.arraycopy(fuzz?? 0?? in?? start?? fuzz.length);
     }
            }

???????????????????????????ó?????????????????? AppleScript ?? Perl ?????????????д???????????????? GUI ????????????????????ó?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????м?????κι????