new test for linpeas

This commit is contained in:
patel-bhavin
2022-02-16 16:50:47 -08:00
parent 822dcbdb0e
commit 53a3876091
+28
View File
@@ -94,4 +94,32 @@ atomic_tests:
command: |
chmod +x #{linenum}
bash #{linenum}
name: sh
- name: Linpeas tool execution
description: |
LinPEAS is a script that search for possible paths to escalate privileges on Linux/Unix*/MacOS hosts. The checks are explained on book.hacktricks.xyz
supported_platforms:
- linux
input_arguments:
linpeas:
description: Path to the linpeas shell script
type: Path
default: PathToAtomicsFolder/T1059.004/src/linpeas.sh
linpeas_url:
description: Path to download linPeas shell script
type: Url
default: https://github.com/carlospolop/PEASS-ng/releases/latest/download/linpeas.sh
dependency_executor_name: bash
dependencies:
- description: |
Linpeas must exist on disk at specified location (#{linpeas})
prereq_command: |
if [ -f #{linpeas} ]; then exit 0; else exit 1; fi;
get_prereq_command: |
curl -L #{linpeas_url} --output #{linpeas}
executor:
command: |
chmod +x #{linpeas}
bash #{linpeas}
name: sh