Changes between Version 4 and Version 5 of zzuf/tutorial
- Timestamp:
- 05/18/2008 12:02:25 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
zzuf/tutorial
v4 v5 172 172 This 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. 173 173 174 We may use the'''debug mode''' to learn more about what happens, using the '''`-d` flag''':174 We may run `zzuf` in '''debug mode''' to learn more about what happens, using the '''`-d` flag''': 175 175 176 176 {{{ … … 255 255 {{{ 256 256 % zzuf -vc -s 0:5 file /bin/ls 257 zzuf[s=0,r=0.004]: launched file258 /bin/ls: data 259 zzuf[s=1,r=0.004]: launched file257 zzuf[s=0,r=0.004]: launched `file' 258 /bin/ls: data 259 zzuf[s=1,r=0.004]: launched `file' 260 260 /bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped 261 zzuf[s=2,r=0.004]: launched file261 zzuf[s=2,r=0.004]: launched `file' 262 262 /bin/ls: ELF 64-bit LSB executable, x86-64, (SYSV), statically linked (uses shared libs), stripped 263 zzuf[s=3,r=0.004]: launched file263 zzuf[s=3,r=0.004]: launched `file' 264 264 /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 file265 zzuf[s=4,r=0.004]: launched `file' 266 266 /bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked (uses shared libs), stripped 267 267 % … … 274 274 {{{ 275 275 % zzuf -vc -s 0:5 -r 0.0001:0.01 file /bin/ls 276 zzuf[s=0,r=0.0001:0.01]: launched file276 zzuf[s=0,r=0.0001:0.01]: launched `file' 277 277 /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 file278 zzuf[s=1,r=0.0001:0.01]: launched `file' 279 279 /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 file280 zzuf[s=2,r=0.0001:0.01]: launched `file' 281 281 /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 file282 zzuf[s=3,r=0.0001:0.01]: launched `file' 283 283 /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 file284 zzuf[s=4,r=0.0001:0.01]: launched `file' 285 285 /bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped 286 286 % 287 287 }}} 288 289 To 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 294 output.file: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped 295 % 296 }}}