diff --git a/openssl_scan.ps1 b/openssl_scan.ps1 index f8612cc..444cc9d 100644 --- a/openssl_scan.ps1 +++ b/openssl_scan.ps1 @@ -25,7 +25,7 @@ if ($confirm -eq "confirm") { } # search for any DLLs whose name begins with libcrypto - Get-ChildItem -Path $search_directory -Include libcrypto*.dll,libssl*.dll -File -Recurse -ErrorAction SilentlyContinue | Foreach-Object { + Get-ChildItem -Path $search_directory -Include libcrypto*.dll,libssl*.dll,mod_ssl.so,openssl.exe -File -Recurse -ErrorAction SilentlyContinue | Foreach-Object { # use RegEx to parse the dll strings for an OpenSSL Version Number $openssl_version = select-string -Path $_ -Pattern $regex -AllMatches | % { $_.Matches } | % { $_.Value } if ($openssl_version) { diff --git a/openssl_scan.sh b/openssl_scan.sh index 2ad0a8f..04053e7 100644 --- a/openssl_scan.sh +++ b/openssl_scan.sh @@ -23,8 +23,8 @@ if [[ "$confirm" == "confirm" ]]; then echo "strings could not be found, please install it and try again" exit 1 fi - - find "$search_directory" -type f '(' -name "libcrypto*.so*" -o -name "libssl*.so*" -o -name "libssl*.a*" -o -name "libcrypto*.a*" ')' | while read -r file_name; do + + find "$search_directory" -type f '(' -name "libcrypto*.so*" -o -name "libssl*.so*" -o -name "libssl*.a*" -o -name "libcrypto*.a*" -o -name "mod_ssl.so" -o -name "openssl" ')' | while read -r file_name; do strings -- "$file_name" | grep -e "$regex" | while read -r openssl_version; do echo "$openssl_version - $file_name" done