Browse Source

Sort methods

James Lee 4 years ago
parent
commit
208420d741
No account linked to committer's email address
1 changed files with 12 additions and 13 deletions
  1. 12
    13
      lib/msf/core/exploit/udp.rb

+ 12
- 13
lib/msf/core/exploit/udp.rb View File

@@ -107,17 +107,17 @@ module Exploit::Remote::Udp
107 107
   ##
108 108
 
109 109
   #
110
-  # Returns the target host
110
+  # Returns the local host for outgoing connections
111 111
   #
112
-  def rhost
113
-    datastore['RHOST']
112
+  def chost
113
+    datastore['CHOST']
114 114
   end
115 115
 
116 116
   #
117
-  # Returns the remote port
117
+  # Returns the local port for outgoing connections
118 118
   #
119
-  def rport
120
-    datastore['RPORT']
119
+  def cport
120
+    datastore['CPORT']
121 121
   end
122 122
 
123 123
   #
@@ -135,20 +135,19 @@ module Exploit::Remote::Udp
135 135
   end
136 136
 
137 137
   #
138
-  # Returns the local host for outgoing connections
138
+  # Returns the target host
139 139
   #
140
-  def chost
141
-    datastore['CHOST']
140
+  def rhost
141
+    datastore['RHOST']
142 142
   end
143 143
 
144 144
   #
145
-  # Returns the local port for outgoing connections
145
+  # Returns the remote port
146 146
   #
147
-  def cport
148
-    datastore['CPORT']
147
+  def rport
148
+    datastore['RPORT']
149 149
   end
150 150
 
151
-
152 151
 protected
153 152
 
154 153
   attr_accessor :udp_sock

Loading…
Cancel
Save