Using encrypted Passwords and Serial numbers with the MPR

Moderator: MVogt

Antworten
Benutzeravatar
Theo_Gottwald
Beiträge: 309
Registriert: 03. Okt 2009, 08:57
Wohnort: Herrenstr.11 * 76706 Dettenheim
Kontaktdaten:

Using encrypted Passwords and Serial numbers with the MPR

Beitrag von Theo_Gottwald » 04. Mai 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: Alles auswählen

' +++ 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: Alles auswählen

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

Antworten

Zurück zu „Package Robot“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast