dynamically get ip address length
git-svn-id: file:///home/svn/framework3/trunk@7561 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
31e9d9929c
commit
82706981de
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue