Metasploit에 새 모듈을 설치하는 방법은 무엇입니까?

Metasploit에 새 모듈을 설치하는 방법은 무엇입니까?

방금 이 모듈을 설치하려고 했습니다. https://github.com/leonjza/metasploit-modules/tree/master/post/hardware/rftransceiver

을(를) 설치하고 폴더를 만들고 Windows 폴더 위의 새 폴더에 파일을 복사하려고 하면 다음 오류가 표시됩니다.

/usr/share/metasploit-framework/lib/msf/core/module_set.rb:191:in `add_module': undefined method `framework=' for #<Module:0x000055b8c8f9e3c8> (NoMethodError)
    from /usr/share/metasploit-framework/lib/msf/core/module_manager/loading.rb:73:in `on_module_load'
    from /usr/share/metasploit-framework/lib/msf/core/modules/loader/base.rb:183:in `load_module'
    from /usr/share/metasploit-framework/lib/msf/core/modules/loader/base.rb:238:in `block in load_modules'
    from /usr/share/metasploit-framework/lib/msf/core/modules/loader/directory.rb:50:in `block (2 levels) in each_module_reference_name'
    from /usr/share/metasploit-framework/vendor/bundle/ruby/2.3.0/gems/rex-core-0.1.12/lib/rex/file.rb:133:in `block in find'
    from /usr/share/metasploit-framework/vendor/bundle/ruby/2.3.0/gems/rex-core-0.1.12/lib/rex/file.rb:132:in `catch'
    from /usr/share/metasploit-framework/vendor/bundle/ruby/2.3.0/gems/rex-core-0.1.12/lib/rex/file.rb:132:in `find'
    from /usr/share/metasploit-framework/lib/msf/core/modules/loader/directory.rb:40:in `block in each_module_reference_name'
    from /usr/share/metasploit-framework/lib/msf/core/modules/loader/directory.rb:30:in `foreach'
    from /usr/share/metasploit-framework/lib/msf/core/modules/loader/directory.rb:30:in `each_module_reference_name'
    from /usr/share/metasploit-framework/lib/msf/core/modules/loader/base.rb:237:in `load_modules'
    from /usr/share/metasploit-framework/lib/msf/core/module_manager/loading.rb:119:in `block in load_modules'
    from /usr/share/metasploit-framework/lib/msf/core/module_manager/loading.rb:117:in `each'
    from /usr/share/metasploit-framework/lib/msf/core/module_manager/loading.rb:117:in `load_modules'
    from /usr/share/metasploit-framework/lib/msf/core/module_manager/module_paths.rb:41:in `block in add_module_path'
    from /usr/share/metasploit-framework/lib/msf/core/module_manager/module_paths.rb:40:in `each'
    from /usr/share/metasploit-framework/lib/msf/core/module_manager/module_paths.rb:40:in `add_module_path'
    from /usr/share/metasploit-framework/lib/msf/base/simple/framework/module_paths.rb:50:in `block in init_module_paths'
    from /usr/share/metasploit-framework/lib/msf/base/simple/framework/module_paths.rb:49:in `each'
    from /usr/share/metasploit-framework/lib/msf/base/simple/framework/module_paths.rb:49:in `init_module_paths'
    from /usr/share/metasploit-framework/lib/msf/ui/console/driver.rb:196:in `initialize'
    from /usr/share/metasploit-framework/lib/metasploit/framework/command/console.rb:62:in `new'
    from /usr/share/metasploit-framework/lib/metasploit/framework/command/console.rb:62:in `driver'
    from /usr/share/metasploit-framework/lib/metasploit/framework/command/console.rb:48:in `start'
    from /usr/share/metasploit-framework/lib/metasploit/framework/command/base.rb:82:in `start'
    from /usr/bin/msfconsole:48:in `<main>'
root@android-HP-ProBook-6550b:/usr/share/metasploit-framework/modules/exploits/windows/download# 

답변1

Windows에서는 이 작업을 수행할 수 없습니다. 공식 문서에서:

"슬프게도 운이 좋지 않습니다. Windows의 모듈 로드 경로는 좀 더 제한적이며 외부 모듈을 허용하지 않습니다."

원천: https://github.com/rapid7/metasploit-framework/wiki/Loading-External-Modules

해결책:칼리리눅스를 사용하세요. 그것은 당신의 삶을 더 쉽게 만들어 줄 것입니다.

관련 정보