From 82706981de8c8a4bdec2c2c99f4127eb8a143a04 Mon Sep 17 00:00:00 2001 From: Joshua Drake Date: Wed, 18 Nov 2009 00:49:20 +0000 Subject: [PATCH] dynamically get ip address length git-svn-id: file:///home/svn/framework3/trunk@7561 4d416f70-5f16-0410-b530-b9f4589650da --- modules/exploits/windows/ftp/httpdx_tolog_format.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/exploits/windows/ftp/httpdx_tolog_format.rb b/modules/exploits/windows/ftp/httpdx_tolog_format.rb index e20e5e4dc3..b72eb2878d 100644 --- a/modules/exploits/windows/ftp/httpdx_tolog_format.rb +++ b/modules/exploits/windows/ftp/httpdx_tolog_format.rb @@ -171,9 +171,8 @@ For now, that will have to be done manually. # proceed with chosen target... connect_login - # TODO: determine runtime (or make irrelevant) - ip_length = 11 - # "\n" + "PWD " + # '\n PWD ' + ip_length = Rex::Socket.source_address(datastore['RHOST']).length num_start = ip_length + 1 + 3 + 1