|
7 | 7 | class Metasploit3 < Msf::Post
|
8 | 8 |
|
9 | 9 | include Msf::Post::Common
|
10 |
| - include Msf::Post::File |
11 | 10 | include Msf::Post::Windows::Registry
|
12 | 11 |
|
13 | 12 | def initialize(info={})
|
@@ -150,18 +149,6 @@ def getSessions(hostname,username)
|
150 | 149 |
|
151 | 150 | def get_domain_hosts()
|
152 | 151 |
|
153 |
| - client.railgun.add_function('netapi32', 'NetServerEnum', 'DWORD',[ |
154 |
| - ['PWCHAR','servername','in'], |
155 |
| - ['DWORD','level','in'], |
156 |
| - ['PDWORD','bufptr','out'], |
157 |
| - ['DWORD','prefmaxlen','in'], |
158 |
| - ['PDWORD','entriesread','out'], |
159 |
| - ['PDWORD','totalentries','out'], |
160 |
| - ['DWORD','servertype','in'], |
161 |
| - ['PWCHAR','domain','in'], |
162 |
| - ['PDWORD','resume_handle','inout'] |
163 |
| - ]) |
164 |
| - |
165 | 152 | buffersize = 500
|
166 | 153 | servertype = 3 #workstations and servers
|
167 | 154 |
|
|
0 commit comments