Changes between Version 4 and Version 5 of zzuf/tutorial


Ignore:
Timestamp:
05/18/2008 12:02:25 PM (16 years ago)
Author:
Sam Hocevar
Comment:

minor updates

Legend:

Unmodified
Added
Removed
Modified
  • zzuf/tutorial

    v4 v5  
    172172This is not the expected behaviour at all. What happens exactly? The problem is that `file` also opens its own configuration files to gather information about file formats, and of course `zzuf` fuzzes these files, since no one told it that they were special.
    173173
    174 We may use the '''debug mode''' to learn more about what happens, using the '''`-d` flag''':
     174We may run `zzuf` in '''debug mode''' to learn more about what happens, using the '''`-d` flag''':
    175175
    176176{{{
     
    255255{{{
    256256% zzuf -vc -s 0:5 file /bin/ls
    257 zzuf[s=0,r=0.004]: launched file
    258 /bin/ls: data
    259 zzuf[s=1,r=0.004]: launched file
     257zzuf[s=0,r=0.004]: launched `file'
     258/bin/ls: data
     259zzuf[s=1,r=0.004]: launched `file'
    260260/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped
    261 zzuf[s=2,r=0.004]: launched file
     261zzuf[s=2,r=0.004]: launched `file'
    262262/bin/ls: ELF 64-bit LSB executable, x86-64, (SYSV), statically linked (uses shared libs), stripped
    263 zzuf[s=3,r=0.004]: launched file
     263zzuf[s=3,r=0.004]: launched `file'
    264264/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.6.8388616, statically linked (uses shared libs), corrupted section header size
    265 zzuf[s=4,r=0.004]: launched file
     265zzuf[s=4,r=0.004]: launched `file'
    266266/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked (uses shared libs), stripped
    267267%
     
    274274{{{
    275275% zzuf -vc -s 0:5 -r 0.0001:0.01 file /bin/ls
    276 zzuf[s=0,r=0.0001:0.01]: launched file
     276zzuf[s=0,r=0.0001:0.01]: launched `file'
    277277/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), stripped
    278 zzuf[s=1,r=0.0001:0.01]: launched file
     278zzuf[s=1,r=0.0001:0.01]: launched `file'
    279279/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked (uses shared libs), stripped
    280 zzuf[s=2,r=0.0001:0.01]: launched file
     280zzuf[s=2,r=0.0001:0.01]: launched `file'
    281281/bin/ls: ERROR: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs)error reading
    282 zzuf[s=3,r=0.0001:0.01]: launched file
     282zzuf[s=3,r=0.0001:0.01]: launched `file'
    283283/bin/ls: ERROR: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linkedCannot allocate memory for note (Cannot allocate memory)
    284 zzuf[s=4,r=0.0001:0.01]: launched file
     284zzuf[s=4,r=0.0001:0.01]: launched `file'
    285285/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped
    286286%
    287287}}}
     288
     289To generate a file that reproduces a given behaviour, the corresponding `-s` flag and the exact same `-r` flag need to be used:
     290
     291{{{
     292% zzuf -s 4 -r 0.0001:0.01 < /bin/ls > output.file
     293% file output.file
     294output.file: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped
     295%
     296}}}