Attempt to clear the password and encoded password from memory
This commit is contained in:
parent
e412a2ffbf
commit
935adeb140
1 changed files with 2 additions and 0 deletions
|
@ -57,6 +57,8 @@ func Elevate(password string) {
|
||||||
errorcheck.ErrorCheck(err, "\nFailed at typing to STDIN")
|
errorcheck.ErrorCheck(err, "\nFailed at typing to STDIN")
|
||||||
// Clear the password
|
// Clear the password
|
||||||
pw = nil
|
pw = nil
|
||||||
|
password = ""
|
||||||
|
|
||||||
stdin.Close()
|
stdin.Close()
|
||||||
|
|
||||||
// Wait for the sudo prompt (If the correct password was given, it will not stay behind)
|
// Wait for the sudo prompt (If the correct password was given, it will not stay behind)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue