$ medusa -h <IP> -n <PORT> -u <USER> -P ~/Tools/SecLists/Passwords/Common-Credentials/2023-200_most_used_passwords.txt -M ssh -t 3
Medusa v2.3 [http://www.foofus.net] (C) JoMo-Kun / Foofus Networks <jmk@foofus.net>
IMPORTANT: Couldn't load "ssh" [/usr/local/lib/medusa/modules/ssh.mod: cannot open shared object file: No such file or directory]. Place the module in the medusa directory, set the MEDUSA_MODULE_NAME environment variable or run the configure script again using --with-default-mod-path=[path].
IMPORTANT: Couldn't load "ssh" [/usr/local/lib/medusa/modules/ssh.mod: cannot open shared object file: No such file or directory]. Place the module in the medusa directory, set the MEDUSA_MODULE_NAME environment variable or run the configure script again using --with-default-mod-path=[path].
IMPORTANT: Couldn't load "ssh" [/usr/local/lib/medusa/modules/ssh.mod: cannot open shared object file: No such file or directory]. Place the module in the medusa directory, set the MEDUSA_MODULE_NAME environment variable or run the configure script again using --with-default-mod-path=[path].
invokeModule failed - see previous errors for an explanation
invokeModule failed - see previous errors for an explanation
invokeModule failed - see previous errors for an explanation
去 /usr/local/lib/medusa/modules/ 確實沒有看到對應的 ssh.mod,當下反應是直接重新安裝一次:
$ git clone https://github.com/jmk-foofus/medusa.git
cd medusa
./configure
make
sudo make install
結果遇到了:
configure: checking for Libssh2 Library files...
checking for main in -lssh2... no
configure: WARNING: *** Libssh2 required for SSH2 module. ***
Libssh2 (http://www.libssh2.org) is not the same as libssh (http://0xbadc0de.be).
Make sure you have the correct library. The SSH2 module will NOT be built.
看這篇安裝 libssh-dev,然後再重新安裝一次:
$ sudo apt install libssh-dev
./configure
make
sudo make install
...<SNIP>...
$ ls /usr/local/lib/medusa/modules/
...<SNIP>...
ssh.mod
...<SNIP>...
然後就有了!其他 module 安裝方式也差不多,安裝對應 package 即可。