rapid7 / metasploit-framework

Metasploit Framework
https://www.metasploit.com/
Other
34.13k stars 13.97k forks source link

failed to unload sqlmap plugin #5221

Closed nixawk closed 9 years ago

nixawk commented 9 years ago

When sqlmap module is loaded, we could not unload it. Unload function is not valid for sqlmap.

msf > load sqlmap
[*] Sqlmap plugin loaded
[*] Successfully loaded plugin: Sqlmap
msf > unload sqlmap
msf > load sqlmap
[-] Failed to load plugin from /home/notfound/sectools/metasploit-framework/plugins/sqlmap: Attempting to load already loaded dispatcher Sqlmap
void-in commented 9 years ago

The problem is not with the unload command. The problem is the symbolic name of the loaded plugin. When you load a plugin, run the 'show plugins' command to see a list of plugin names. The symbolic name of sqlmap plugin is Sqlmap (capital S). Hence running the command 'unload sqlmap' doesn't succeed. If you run 'unload Sqlmap', the plugin will be unloaded successfully and you can reload it without any problem.

Update: Generated PR https://github.com/rapid7/metasploit-framework/pull/5223 to resolve this issue

nixawk commented 9 years ago

Thanks. ^.^

load sqlmap plugin with command "load sqlmap", and release it with "unload Sqlmap". In general, people will type "unload sqlmap". This mindset fools me here.

I'll be careful. Excuse me.