RUB-NDS / PRET

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

printer.py self.cmdloop() function definition not find #7

Open w0rhost opened 7 years ago

w0rhost commented 7 years ago

In the printer.py file, it quotes the function self.cmdloop(), but i can not find where it defined..please help me!!!

jensvoid commented 7 years ago

cmdloop() is a function of cmd.Cmd (which should be a standard Python library). The printer class inherits from cmd.Cmd:

import cmd
...
class printer(cmd.Cmd, object):
...

Do you get an error message (which needs to be fixed) or are you simple investigating the code?

w0rhost commented 7 years ago

Thank you for your reply! I`m just Learning programming。。