Sort methods
parent
47c0a3b4a7
commit
208420d741
|
@ -107,17 +107,17 @@ module Exploit::Remote::Udp
|
|||
##
|
||||
|
||||
#
|
||||
# Returns the target host
|
||||
# Returns the local host for outgoing connections
|
||||
#
|
||||
def rhost
|
||||
datastore['RHOST']
|
||||
def chost
|
||||
datastore['CHOST']
|
||||
end
|
||||
|
||||
#
|
||||
# Returns the remote port
|
||||
# Returns the local port for outgoing connections
|
||||
#
|
||||
def rport
|
||||
datastore['RPORT']
|
||||
def cport
|
||||
datastore['CPORT']
|
||||
end
|
||||
|
||||
#
|
||||
|
@ -135,20 +135,19 @@ module Exploit::Remote::Udp
|
|||
end
|
||||
|
||||
#
|
||||
# Returns the local host for outgoing connections
|
||||
# Returns the target host
|
||||
#
|
||||
def chost
|
||||
datastore['CHOST']
|
||||
def rhost
|
||||
datastore['RHOST']
|
||||
end
|
||||
|
||||
#
|
||||
# Returns the local port for outgoing connections
|
||||
# Returns the remote port
|
||||
#
|
||||
def cport
|
||||
datastore['CPORT']
|
||||
def rport
|
||||
datastore['RPORT']
|
||||
end
|
||||
|
||||
|
||||
protected
|
||||
|
||||
attr_accessor :udp_sock
|
||||
|
|
Loading…
Reference in New Issue