diff --git a/lib/msf/core/exploit/ftpserver.rb b/lib/msf/core/exploit/ftpserver.rb index a5f6a8a913..fe13dc2223 100644 --- a/lib/msf/core/exploit/ftpserver.rb +++ b/lib/msf/core/exploit/ftpserver.rb @@ -125,6 +125,11 @@ module Exploit::Remote::FtpServer return else + # Allow per-command overrides + if(self.respond_to?("on_client_unknown_command")) + return self.send("on_client_unknown_command", c, cmd.upcase, arg) + end + print_status("#{@state[c][:name]} UNKNOWN '#{cmd} #{arg}'") c.put("500 '#{cmd} #{arg}': command not understood.\r\n") return