From a36c2c91077edc5c8bd9b06db597c58ffabc4fd5 Mon Sep 17 00:00:00 2001 From: wonda-tea-coffee Date: Mon, 8 May 2023 19:13:52 +0900 Subject: [PATCH] fix command not found error The following error occurred when evaluating the expression because the space that should have been a space was U+0a00. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` ./linpeas.sh: 3672: ./linpeas.sh:  [: not found ``` --- linPEAS/builder/linpeas_base.sh | 2 +- linPEAS/builder/linpeas_parts/7_software_information.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linPEAS/builder/linpeas_base.sh b/linPEAS/builder/linpeas_base.sh index b1a11d7..748a726 100644 --- a/linPEAS/builder/linpeas_base.sh +++ b/linPEAS/builder/linpeas_base.sh @@ -3378,7 +3378,7 @@ peass{NFS Exports} kadmin_exists="$(command -v kadmin)" klist_exists="$(command -v klist)" kinit_exists="$(command -v kinit)" -if [ "$kadmin_exists" ] || [ "$klist_exists" ] || [ "$kinit_exists" ] || [ "$PSTORAGE_KERBEROS" ] || [ "$DEBUG" ]; then +if [ "$kadmin_exists" ] || [ "$klist_exists" ] || [ "$kinit_exists" ] || [ "$PSTORAGE_KERBEROS" ] || [ "$DEBUG" ]; then print_2title "Searching kerberos conf files and tickets" print_info "http://book.hacktricks.xyz/linux-hardening/privilege-escalation/linux-active-directory" diff --git a/linPEAS/builder/linpeas_parts/7_software_information.sh b/linPEAS/builder/linpeas_parts/7_software_information.sh index 7e04b15..40598a4 100644 --- a/linPEAS/builder/linpeas_parts/7_software_information.sh +++ b/linPEAS/builder/linpeas_parts/7_software_information.sh @@ -326,7 +326,7 @@ peass{NFS Exports} kadmin_exists="$(command -v kadmin)" klist_exists="$(command -v klist)" kinit_exists="$(command -v kinit)" -if [ "$kadmin_exists" ] || [ "$klist_exists" ] || [ "$kinit_exists" ] || [ "$PSTORAGE_KERBEROS" ] || [ "$DEBUG" ]; then +if [ "$kadmin_exists" ] || [ "$klist_exists" ] || [ "$kinit_exists" ] || [ "$PSTORAGE_KERBEROS" ] || [ "$DEBUG" ]; then print_2title "Searching kerberos conf files and tickets" print_info "http://book.hacktricks.xyz/linux-hardening/privilege-escalation/linux-active-directory"