diff --git a/lib/msf/core/exploit/cmd_stager/http.rb b/lib/msf/core/exploit/cmd_stager/http.rb index f76bb10da402..9f37a162f9da 100644 --- a/lib/msf/core/exploit/cmd_stager/http.rb +++ b/lib/msf/core/exploit/cmd_stager/http.rb @@ -42,7 +42,7 @@ def on_request_uri(cli, request) unless user_agent =~ agent_regex print_status("Sending 404 to #{client}") - send_not_found(cli) + return send_not_found(cli) end print_status("Sending payload to #{client}")