Using encrypted Passwords and Serial numbers with the MPR

Moderator: MVogt

Post Reply
User avatar
Theo_Gottwald
Posts: 367
Joined: 03. Oct 2009, 08:57
Location: Herrenstr.11 * 76706 Dettenheim
Contact:

Using encrypted Passwords and Serial numbers with the MPR

Post by Theo_Gottwald » 04. May 2018, 10:40

If you do not want to have passwords or serial numbers in plain text in your scripts, then you can encrypt them before scripting, and decrypt them during scripting.

The passwords we are talking about are texts / serial numbers, etc. that are used during installation [/ b]. Since these are used during installation, they must be available at this time.

The following script shows how to encrypt and decrypt a password. And then entered in Notepad.

As a result, there can not be 100% certainty here.
Since the password must be decrypted in the script, this is not a perfect, secure affair.

But it offers the possibility to have the passwords hidden in the script for the user.

It is also important that the MPR (unlike other systems) can often install software even if the user is logged out .

If this is not possible, the MPR offers many more options, from simply making the text box invisible (localization with "|a") to using SHC\ (Show Cover) or "Private Desktops" or you can turn off the monitor via the command (see below).

Hint: The above Informations do not apply to passwords for the '#RAU: (RunAsUser), which allows the MPR packages to start "as user".
In this case, the passwords are kept encrypted inside the EXE itself and are threfore not accessible in a documented way. The admin does not have to do anything else.

Code: Select all

' +++ pwd.rem +++
' Zweck: 
' erstellt am: 12.12.2009
' von: thue
'========================
GSB\Input
EXS\notepad
STW\notepad\*
SPC\edit\*
CFC\$$txt
'SBT\2|$$txt#
TTB\!$$txt>$$txt
SBT\5|The encrypted Password:$crlf$ $$txt#
ENC\d|$$txt
SBT\5|Here its decrypted again:$crlf$$$txt#
RST\$$txt|0,-1
CAS\3
CLW\1
IWF\1
   STW\#32770\editor
   SPC\button\nein||no
   MEL\
EWF\
@
:input
GIP\Please enter the Password:
VAR\$$pwd=$v1$
IVV\$$pwd=
   END\
EVV\
ENC\e|$$pwd
TTB\$$pwd>$$pwd
CTC\$$pwd
RET\
@
If you do not want the user to be able to see what is on the screen, and you can not install without a logged in user, then you have multiple options. One Option is to turn off the monitor for a short time . And turn it back on. This is what the MPS\ (Monitor Power State). command can be used for.

Code: Select all

MPS\2
EXS\notepad
STW\notepad\*
SPC\edit\*
RST\Anton|0,-1
MPS\-1
@

Post Reply

Return to “Package Robot”

Who is online

Users browsing this forum: No registered users and 1 guest