Commit 5ee9f4e2 authored by Philipp Hense's avatar Philipp Hense
Browse files

Überarbeitung

parent 035a796a
......@@ -25,9 +25,14 @@ Achtung der Pfad muss schon exestieren
Das war es im Grunde schon um das Passwort später dann wieder auszulesen benötigen Sie folgende Befehle.
Entschlüsselung:
$username = "Administrator"
$password = Get-Content Dateipfad_den_Sie_angegeben_haben\passwort.txt | ConvertTo-SecureString
$key = (3,4,2,3,6,2,1,1,2,3,2,4,3,1,4,2)
$password = get-content ("Dateipfad_den_Sie_angegeben_haben\passwort.txt") | convertto-securestring -key $key
$credentials = New-Object System.Management.Automation.PSCredential (“$username”, $password)
......@@ -8,4 +8,5 @@ $File = "$Eingabe"
$File_a = ("$File").TrimStart("System.Windows.Forms.TextBox, Text: ")
$File_neu = $File_a + "\passwort.txt"
$password = Read-Host Bitte Passwort eingeben -AsSecureString
$password | ConvertFrom-SecureString | Out-File $File_neu
$key = (3,4,2,3,6,2,1,1,2,3,2,4,3,1,4,2)
$password | ConvertFrom-SecureString -key $key| Set-Content ("$file_neu")
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment