display who we're sending the stage to, if possible

git-svn-id: file:///home/svn/framework3/trunk@8948 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2010-03-28 21:53:58 +00:00
parent 900fb250a2
commit deeb00e4ae
1 changed files with 6 additions and 2 deletions

View File

@ -100,7 +100,11 @@ module Msf::Payload::Stager
p = (self.stage_prefix || '') + p
end
print_status("Sending stage (#{p.length} bytes)")
if conn.respond_to? :peerhost
print_status("Sending stage (#{p.length} bytes) to #{conn.peerhost}")
else
print_status("Sending stage (#{p.length} bytes)")
end
# Send the stage
conn.put(p)
@ -164,4 +168,4 @@ module Msf::Payload::Stager
#
attr_accessor :stage_prefix
end
end