Missing Compatible Metasploit<major_version> Class Constant
i've encoded a reversetcp payload with msfvenom and saved it to my home folder, and of course i know that i should change the location of it to " /usr/share/metasploit-framework/modules/payloads/singles/windows/ " however, i keep constantly getting this error every time i reload metasploit :-
" The following modules could not be loaded!
/- /usr/share/metasploit-framework/modules/payloads/singles/windows/meterpreterbeavertcp.rb: Msf::Modules::MetasploitClassCompatibilityError Failed to load module (singles/windows/meterpreterbeavertcp from /usr/share/metasploit-framework/modules/payloads/singles/windows/meterpreterbeavertcp.rb) due to Missing compatible Metasploit<majorversion> class constant"
and i've tried even to change its location to /msf4/, but same error :"
"WARNING! The following modules could not be loaded!
/- /root/.msf4/modules/payloads/windows/singles/reversetcp.rb: Msf::Modules::MetasploitClassCompatibilityError Failed to load module (windows/singles/reversetcp from /root/.msf4/modules/payloads/windows/singles/meterpreterbeavertcp.rb) due to Missing compatible Metasploit<majorversion> class constant"
i've tried to look for a solution everywhere, and i've used Google, but nothing so far.and in case it's relevant i'm trying to use the custom payload for the pdf exploit, and i keep getting "The value specified for payload is not valid ", but i think i should solve the first issue with missing compatible metasploit error, then this one.
Anyway, i appreciate all help i could get here :) .