Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openssl_scan.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions openssl_scan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down