RUB-NDS / PRET

Printer Exploitation Toolkit - The tool that made dumpster diving obsolete.
http://hacking-printers.net
GNU General Public License v2.0
3.88k stars 607 forks source link

PCL 'Info Fonts' misses fonts installed to hard disk #89

Open HughHood opened 8 months ago

HughHood commented 8 months ago

In order for PCL fonts installed to the printer's hard disk to be listed by the 'Info Fonts' and 'Info Extended' commands, the location type must be changed to 'All Locations', as hard disk fonts are not given their own location designation, unlike internal fonts, downloaded (to memory, not disk) fonts, cartridge fonts, and simm/dimm/ROM fonts.

Accordingly, to see hard disk fonts included in a returned font listing, make the following change to the 'pcl.py' file:

  locations = {
  # '1': '(Selected)',
    '2': '(All Locations)',
  # '3': '(Internal)',
  # '4': '(Downloaded)',
  # '5': '(Cartridge)',
  # '7': '(ROM/SIMMs)'
  }

This uncomments line '2' and comments out lines '3', '4', '5' and '7'.

A suggested better way to handle this would be to have two additional commands, they being 'Info Fonts All' and 'Info Extended All' which would specify all locations. The existing commands could be left 'as is'.