From Mature Bushbaby, 3 Months ago, written in Bash.
This paste is a reply to Untitled from Soft Pudu - view diff
  1. root@420e9867f12f:/usr/lib/file# cat /etc/magic
  2. # Magic local data for file(1) command.
  3. # Insert here your local magic data. Format is described in magic(5).
  4.  
  5. root@420e9867f12f:/usr/lib/file# rm -rf /usr/share/misc/magic*
  6. root@420e9867f12f:/usr/lib/file# rm -rf /usr/share/mime/application
  7. root@420e9867f12f:/usr/lib/file# file -i /tmp/invoice.xls
  8. /etc/magic, 1: Warning: using regular magic file `/usr/share/misc/magic'
  9. /var/www/forms/forms/common/tests/images/invoice.xls: application/msword
captcha