MCPcopy Create free account
hub / github.com/RUB-NDS/PRET / do_lock

Method do_lock

postscript.py:399–406  ·  view source on GitHub ↗

Set startjob and system parameters password.

(self, arg)

Source from the content-addressed store, hash-verified

397
398 # ------------------------[ lock <passwd> ]---------------------------
399 def do_lock(self, arg):
400 "Set startjob and system parameters password."
401 if not arg:
402 arg = eval(input("Enter password: "))
403 self.cmd('<< /Password () '
404 '/SystemParamsPassword (' + arg + ') ' # harmless settings
405 '/StartJobPassword (' + arg + ') ' # alter initial vm!
406 '>> setsystemparams', False)
407
408 # ------------------------[ unlock <passwd>|"bypass" ]----------------
409 def do_unlock(self, arg):

Callers

nothing calls this directly

Calls 1

cmdMethod · 0.95

Tested by

no test coverage detected