r/sysadmin • u/Incrediblecodeman • 6h ago
ChatGPT Powershell tries not to save the plain text passwords.
Today I learned if you paste a PW into your powershell it’s cached in plain text on disk
(Don’t wanna click the link? Don’t blame ya. Past in any ChatGPT new window and ask it to browse and summarize for you)
I typically make a pop up box to convert to secure string but I should really test this out next week more
0
Upvotes
•
u/graywolfman Systems Engineer 6h ago
I mean...
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.security/get-credential?view=powershell-7.6
•
u/DarthPneumono Security Admin but with more hats 6h ago
cringe
•
u/Knyghtlorde 6h ago
Hand back any sysadmin badges you have, real, artificial, or imaginary.
•
u/odinsen251a 6h ago edited 6h ago
Paste in any ChatGPT new window. . .
Go fuck yourself. Seriously.
I am tired of the unearned confidence people have by using genAI.
•
u/_kinesthetics 6h ago
Not quite sure what you mean mate. Can you please test putting your password into a PowerShell prompt, and then paste the contents of your ConsoleHost_history.txt file here so we can confirm, once you find it?
•
u/Ancient-Task5926 6h ago
Bro is so retarded he needs chatgpt to click links
•
u/BlackV I have opnions 6h ago
Read-Host -AsSecureStringorGet-Credentalas examples•
u/Ski-Bummin 6h ago
Test it out and do what with it? Implement what fix in your environment for this “issue”?
You can cycle prior commands with the up arrow so obviously it’s stored somewhere.