From c4eb71a865e8e69924f9816ea8b99eb7202e9e5e Mon Sep 17 00:00:00 2001 From: alibkaba <5981322+alibkaba@users.noreply.github.com> Date: Wed, 3 Jan 2018 15:55:18 -0500 Subject: [PATCH] Update linuxprivchecker.sh I'm glad to see a shell version of it. I also wrote one on my own local enum in shell and would like to contribute to this one instead. --- linuxprivchecker.sh | 55 +++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 29 deletions(-) diff --git a/linuxprivchecker.sh b/linuxprivchecker.sh index 44066ce..cf3c95b 100755 --- a/linuxprivchecker.sh +++ b/linuxprivchecker.sh @@ -1,38 +1,35 @@ #!/bin/bash -###################################80 Columns################################### -# Linux Privilege Escalation Check Script -# -# [Details:] -## Originally forked from the linuxprivchecker.py (Mike Czumak), this script -## is intended to be executed locally on a Linux box to enumerate basic system -## info and search for common privilege escalation vectors such as word -## writable files, misconfigurations, clear-text password and applicable -## exploits. -# -# [Original Author]: Mike Czumak (T_v3rn1x) -- @SecuritySift -# [Contributors]: -## Mike Merrill (linted) -- https://github.com/linted -## James Hogan (5aru) -- https://github.com/5aru -# -# [Modification, Distribution, and Attribution]: -## Permission is herby granted, free of charge, to any person obtaining a copy -## of this software and the associated documentation files (the "Software"), -## to use, copy, modify, merge, publish, distribute, and/or sublicense copies -## of the Software, and to permit persons to whom the Software is furnished to -## do so, subject to the following conditions: +############################################################################################################### +## [Title]: linuxprivchecker.sh -- a Linux Privilege Escalation Check Script +## [Author]: Mike Czumak (T_v3rn1x) -- @SecuritySift +## [Contributors]: Mike Merrill (linted) -- https://github.com/linted +## James Hogan (5aru) -- https://github.com/5aru +##------------------------------------------------------------------------------------------------------------- +## [Details]: +## Similar functions to Mike Czumak's linuxprivchecker.py Linux Privilege Escalation Check Script. +## This script is intended to be executed locally on a Linux box to enumerate basic system info and +## search for common privilege escalation vectors such as world writable files, misconfigurations, clear-text +## passwords and applicable exploits. +##------------------------------------------------------------------------------------------------------------- +## [Warning]: +## This script comes as-is with no promise of functionality or accuracy. +##------------------------------------------------------------------------------------------------------------- +## [Modification, Distribution, and Attribution]: +## Permission is herby granted, free of charge, to any person obtaining a copy of this software and the +## associated documentation files (the "Software"), to use, copy, modify, merge, publish, distribute, and/or +## sublicense copies of the Software, and to permit persons to whom the Software is furnished to do so, subject +## to the following conditions: ## ## The software must maintain original author attribution and may not be sold ## or incorporated into any commercial offering. ## -## THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -## IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -## FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -## AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER -## LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -## FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -## DEALINGS IN THE SOFTWARE. -##################################80 Columns#################################### +## THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ## IMPLIED, INCLUDING BUT NOT +## LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO +## EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER +## IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +## USE OR OTHER DEALINGS IN THE SOFTWARE. +############################################################################################################### ### Useful functions