-
-
Save luca/41d85771e18a0500e03c to your computer and use it in GitHub Desktop.
Revisions
-
consolewitch revised this gist
Jan 14, 2016 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ echo ========================================================================== echo This will disable openSSH roaming for your user echo ========================================================================== echo ssh -v -T -o StrictHostKeyChecking=no [email protected] 2>&1 | grep Roaming if [ $? == '0' ] then cat <<EOM >>~/.ssh/config @@ -14,7 +14,7 @@ host * UseRoaming no EOM fi ssh -v -T -o StrictHostKeyChecking=no [email protected] 2>&1 | grep Roaming if [ $? == '0' ] then osascript -e 'display notification "I was unable to fix your vulnerability - please notify operations"' -
consolewitch created this gist
Jan 14, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ #!/bin/bash echo ========================================================================== echo This will disable openSSH roaming for your user echo ========================================================================== echo ssh -v -T [email protected] 2>&1 | grep Roaming if [ $? == '0' ] then cat <<EOM >>~/.ssh/config # # disable openSSH roaming to protect against CVE-2016-0777 # host * UseRoaming no EOM fi ssh -v -T [email protected] 2>&1 | grep Roaming if [ $? == '0' ] then osascript -e 'display notification "I was unable to fix your vulnerability - please notify operations"' echo "I was unable to fix your vulnerability - please notify operations" else osascript -e 'display notification "You are no longer vulnerable"' echo "You are no longer vulnerable" fi