Open security-consultant opened 7 years ago
me too i also do it manual then metasploit give that error [-] WARNING! The following modules could not be loaded! [-] /root/.msf4/modules/auxiliary/voip/viproy_sip_enumerate.rb: NameError uninitialized constant Msf::Auxiliary::SIP [-] /root/.msf4/modules/auxiliary/voip/viproy_message_with_invite.rb: NameError uninitialized constant Msf::Auxiliary::SIP [-] /root/.msf4/modules/auxiliary/voip/viproy_sip_register.rb: NameError uninitialized constant Msf::Auxiliary::SIP [-] /root/.msf4/modules/auxiliary/voip/viproy_sip-invite-sdptest.rb: NameError uninitialized constant Msf::Auxiliary::SIP [-] /root/.msf4/modules/auxiliary/voip/viproy_sip_message.rb: NameError uninitialized constant Msf::Auxiliary::SIP [-] /root/.msf4/modules/auxiliary/voip/viproy_msrp_fuzzer_with_invite.rb: NameError uninitialized constant Msf::Auxiliary::SIP [-] /root/.msf4/modules/auxiliary/voip/viproy_boghe_msrp_exploit_poc.rb: NameError uninitialized constant Msf::Auxiliary::SIP [-] /root/.msf4/modules/auxiliary/voip/viproy_sip_bruteforce.rb: NameError uninitialized constant Msf::Auxiliary::SIP [-] /root/.msf4/modules/auxiliary/voip/viproy_msrp_with_invite.rb: NameError uninitialized constant Msf::Auxiliary::SIP [-] /root/.msf4/modules/auxiliary/voip/viproy_skinny_register.rb: NameError uninitialized constant Msf::Auxiliary::Skinny [-] /root/.msf4/modules/auxiliary/voip/viproy_sip_negotiate.rb: NameError uninitialized constant Msf::Auxiliary::SIP [-] /root/.msf4/modules/auxiliary/voip/viproy_boghe_invite_exploit_poc.rb: NameError uninitialized constant Msf::Auxiliary::SIP [-] /root/.msf4/modules/auxiliary/voip/viproy_msrp_header_fuzzer_with_invite.rb: NameError uninitialized constant Msf::Auxiliary::SIP [-] /root/.msf4/modules/auxiliary/voip/viproy_cisco_autoregistration.rb: NameError uninitialized constant Msf::Auxiliary::Skinny [-] /root/.msf4/modules/auxiliary/voip/viproy_skinny_callforward.rb: NameError uninitialized constant Msf::Auxiliary::Skinny [-] /root/.msf4/modules/auxiliary/voip/viproy_sip_options.rb: NameError uninitialized constant Msf::Auxiliary::SIP [-] /root/.msf4/modules/auxiliary/voip/viproy_skinny_call.rb: NameError uninitialized constant Msf::Auxiliary::Skinny [-] /root/.msf4/modules/auxiliary/voip/viproy_sip_invite.rb: NameError uninitialized constant Msf::Auxiliary::SIP [-] /root/.msf4/modules/auxiliary/voip/viproy_sip_proxybouncescan.rb: NameError uninitialized constant Msf::Auxiliary::SIP [-] Star/root/.msf4/modules/auxiliary/voip/viproy_training_sample.rb: NameError uninitialized constant Msf::Auxiliary::SIP [-] /root/.msf4/modules/auxiliary/voip/viproy_sip_subscribe.rb: NameError uninitialized constant Msf::Auxiliary::SIP
Read the installation notes. :)
It worked for me after adding those three lines.
Installation Copy "lib" and "modules" folders' content to Metasploit root directory. Mixins.rb File (lib/msf/core/auxiliary/mixins.rb) should contains the following lines require 'msf/core/auxiliary/sip' require 'msf/core/auxiliary/skinny' require 'msf/core/auxiliary/msrp'
I had the same issue. It is an encoding problem with the CRLF. It is DOS encoded somehow: https://askubuntu.com/questions/304999/not-able-to-execute-a-sh-file-bin-bashm-bad-interpreter
Just open kaliinstall in vim and issue the following command: :set ff=unix :wq
I will try to do a pull request for a fix when I find the time.
Same thing here,... just run:
fromdos kaliinstall.sh
and everything works OK
The Solution Just execute
apt install dos2unix
dos2unix kaliinstall.sh
and then run the script
sh kaliinstall.sh
the module are not loaded in msfconsole even after these steps
Hi, I am trying to get the metasploit modules working but I get an error when I use the installation script, and none of the modules show in metasploit?
This is the result of ./kaliinstall.sh
opt/viproy-voipkit# ./kaliinstall.sh cp: target '/usr/share/metasploit-framework/lib/msf/core/auxiliary/'$'\r' is not a directory cp: target '/usr/share/metasploit-framework/modules/auxiliary/voip/'$'\r' is not a directory You can execute msfconsole now. Viproy modules placed under auxiliary/voip/viproy* Reading package lists... Done Building dependency tree
Reading state information... Done E: Unable to locate package libpcap-dev ' (>= 0) in any repositoryalid gem 'pcaprub ERROR: Possible alternatives: pcaprub, caphub, cappruby, dcas-ruby, gcal-ruby ./kaliinstall.sh: line 9: $'\r': command not found
Libpcap-dev is installed.
Any help appreciated Nick