dynamically get ip address length

git-svn-id: file:///home/svn/framework3/trunk@7561 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2009-11-18 00:49:20 +00:00
parent 31e9d9929c
commit 82706981de
1 changed files with 2 additions and 3 deletions

View File

@ -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
# "<ip>\n" + "PWD "
# '<ip>\n PWD '
ip_length = Rex::Socket.source_address(datastore['RHOST']).length
num_start = ip_length + 1 + 3 + 1