1
0
forked from extern/SSH-Snake

MacOS assumes a new version of Bash from Homebrew.

This commit is contained in:
Joshua Rogers 2024-01-12 01:49:06 +07:00
parent 6e54e542a9
commit cc6b55d722
3 changed files with 4 additions and 3 deletions

View File

@ -69,7 +69,7 @@ SSH-Snake takes a [depth-first approach](https://en.wikipedia.org/wiki/Depth-fir
The name SSH-Snake comes from the fact that the output of the script looks like a snake slithering up and down the network. However unlike the game Snake, SSH-Snake will not die when it bites its own tail (connects to a systems it has already scanned or is currently scanning): it will simply print how it connected there as normal, but return and not re-scan the destination (in order to avoid infinite recursion).
SSH-Snake has been tested on various flavors of Linux, and MacOS. If you encounter a Linux-based OS it isn't compatible with, please submit a report.
SSH-Snake has been tested on various flavors of Linux, and MacOS (with Homebrew Bash installed). If you encounter a Linux-based OS it isn't compatible with, please submit a report.
# Features

View File

@ -1201,7 +1201,7 @@ fi
if [[ "$line" == *"Unable to negotiate with"* ]]; then
continue
fi
if [[ "$line" == "Warning: Identity file"* || "$line" == "Load key"* ]]; then
if [[ "$line" == "Warning: Identity file"* || "$line" == "Load key"* || "$line" == *"No such file or directory"* ]]; then
_ignored_key_files["$key_file"]=1
break
fi

View File

@ -2047,9 +2047,10 @@ recursive_scan() {
#
# Warning: Identity file [file] not accessible: No such file or directory.
# Warning: Identity file [file] not accessible: Permission denied.
# no such identity: [file]: No such file or directory
# Load key [file]: invalid format
# Load key [file]: bad permissions
if [[ "$line" == "Warning: Identity file"* || "$line" == "Load key"* ]]; then
if [[ "$line" == "Warning: Identity file"* || "$line" == "Load key"* || "$line" == *"No such file or directory"* ]]; then
_ignored_key_files["$key_file"]=1
break
fi