in reply to Re: Shotgun.pl - Shoots Holes in Files
in thread Shotgun.pl - Shoots Holes in Files

Good catch! Yeah I guess since I left && -T $O{target} off of that plain text check line, you can technically use this to shoot binaries as well. Works great too, completely destroys them!
» cp /usr/bin/ls . » ./ls double_reload.wav ls mag.txt pump.wav reload.wav shotgun.pl sh +ot.wav wall.txt » ./shotgun.pl -reload -type pump -load buck -verbose -target ls Loading shot 0 Loading shot 1 Loading shot 2 Loading shot 3 Loading shot 4 Shotgun reloaded! { "pump" : { "num_rounds" : 5, "load" : "buck" } } POW! POW! POW! POW! POW! » diff ls /usr/bin/ls Binary files ls and /usr/bin/ls differ » ./ls Segmentation fault (core dumped)
Unfortunately, of course the pattern is not exactly visible in the same way as shooting a -T (ASCII or UTF-8) plain text file. But the destructive capabilities are still there!