From 5c2e5398adeee78e37646a0280cb5a33319b5846 Mon Sep 17 00:00:00 2001 From: OJ Date: Mon, 11 Apr 2016 10:39:54 +1000 Subject: [PATCH] Fix issue with flushing rev port forwards --- .../meterpreter/ui/console/command_dispatcher/stdapi/net.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/net.rb b/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/net.rb index 4aea13213a..1b1ff9d57b 100644 --- a/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/net.rb +++ b/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/net.rb @@ -533,10 +533,10 @@ class Console::CommandDispatcher::Stdapi::Net next if (opts['MeterpreterRelay'] == nil) if opts['Reverse'] == true - if service.stop_reverse_tcp_relay(rport) - print_status("Successfully stopped reverse TCP relay on :#{rport}") + if service.stop_reverse_tcp_relay(lport) + print_status("Successfully stopped reverse TCP relay on :#{lport}") else - print_error("Failed to stop reverse TCP relay on #{rport}") + print_error("Failed to stop reverse TCP relay on #{lport}") next end else