Hello everyone,
First of all sorry for my english .
I'm just starting to use the metasploit framework and I installed it by following these steps : Metasploit installation from scratch
It seems to work fine but when I try to create a simple Login Module for phpmyadmin, this is what I got :
[-] Auxiliary failed: NameError undefined local variable or method `datastore' for #<Metasploit::Framework::LoginScanner::PhpMyAdmin:0x00000006a54ac8>
[-] Call stack:
[-] [local_installation]/metasploit-framework/lib/msf/core/exploit/http/client.rb:4 77:in `ssl'
[-] [local_installation]/metasploit-framework/lib/metasploit/framework/login_scanne r/http.rb:339:in `set_sane_defaults'
[-] [local_installation]/metasploit-framework/lib/metasploit/framework/login_scanne r/base.rb:82:in `initialize'
[-] [local_installation]/metasploit-framework/lib/msf/core/exploit/ntlm.rb:28:in `initialize'
[-] [local_installation]/metasploit-framework/lib/msf/core/exploit/http/client.rb:3 3:in `initialize'
[-] /root/.msf4/modules/auxiliary/scanner/http/phpmyadmin_login.rb:49:in `new'
[-] /root/.msf4/modules/auxiliary/scanner/http/phpmyadmin_login.rb:49:in `scanner'
[-] /root/.msf4/modules/auxiliary/scanner/http/phpmyadmin_login.rb:130:in `run_host'
[-] [local_installation]/metasploit-framework/lib/msf/core/auxiliary/scanner.rb:116 :in `block (2 levels) in run'
[-] [local_installation]/metasploit-framework/lib/msf/core/thread_manager.rb:100:in `call'
[-] [local_installation]/metasploit-framework/lib/msf/core/thread_manager.rb:100:in `block in spawn'
I tried to use this : How to write a HTTP LoginScanner Module · rapid7/metasploit-framework Wiki · GitHub
Here is my code : http://ift.tt/1GJNi0n
Thanks a lot guys !
from Rapid7 Community : All Content - Metasploit http://ift.tt/1cYa1Ij
No comments:
Post a Comment