bug fix
git-svn-id: file:///home/svn/incoming/trunk@3012 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
0c0beb0297
commit
ac9b0edf94
|
@ -135,7 +135,7 @@ class ExploitDriver
|
|||
'Payload' => payload.refname)
|
||||
|
||||
# Call the exploit success handler
|
||||
framework.events.on_exploit_success(exploit, session)
|
||||
exploit.framework.events.on_exploit_success(exploit, session)
|
||||
end
|
||||
|
||||
return session
|
||||
|
|
|
@ -123,10 +123,18 @@ module Session
|
|||
"session_#{name.to_s}"
|
||||
end
|
||||
|
||||
#
|
||||
# This method logs the supplied buffer as coming from the remote side of
|
||||
# the session.
|
||||
#
|
||||
def log_from_remote(buf)
|
||||
rlog(buf, log_source)
|
||||
end
|
||||
|
||||
#
|
||||
# This method logs the supplied buffer as coming from the local side of
|
||||
# the session.
|
||||
#
|
||||
def log_from_local(buf)
|
||||
rlog(buf, log_source)
|
||||
end
|
||||
|
|
|
@ -43,7 +43,11 @@ module Interactive
|
|||
# Returns the remote peer information
|
||||
#
|
||||
def tunnel_peer
|
||||
rstream.peerinfo
|
||||
begin
|
||||
rstream.peerinfo
|
||||
rescue
|
||||
framework.sessions.deregister(sid)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue