My thoughts:

* As @Meatballs1 pointed, I don't see any reason to stablish a connection again, on check_login_rights, to check the ADMIN_RIGHTS, something like that should be possible:

```ruby
			if datastore['CHECK_ADMIN']
				#status_code = check_login_rights(domain, user, pass)
				status_code = "NOT_ADMIN"
				begin
					simple.connect("\\\\#{datastore['RHOST']}\\admin$")
					status_code = 'ADMIN_ACCESS'
				rescue
					status_code = "NOT_ADMIN"
				end
			end
```

Is there any reason to establish a full connection again :? Prolly I'm forgetting something. Would love to listen feedback about it.